3 include $(TOPDIR
)/rules.mk
6 PKG_VERSION
:=1.3.4-dnh2
8 PKG_MD5SUM
:=6635e2d0d0ee21faeb85d95cd93c137b
10 PKG_SOURCE_URL
:=http
://www.rahul.net
/dholmes
/ctorrent
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-dnh2
14 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,CTORRENT
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
:
21 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
25 LDFLAGS
="-static -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
34 --libexecdir
=/usr
/lib \
36 --datadir=/usr
/share \
37 --localstatedir
=/var \
45 $(PKG_BUILD_DIR
)/.built
:
46 $(MAKE
) STAGING_DIR
=$(STAGING_DIR
) DESTDIR
=$(PKG_INSTALL_DIR
) -C
$(PKG_BUILD_DIR
) install
49 mkdir
-p
$(IDIR_CTORRENT
)
50 $(CP
) $(PKG_INSTALL_DIR
)/* $(IDIR_CTORRENT
)/
51 $(RSTRIP
) $(IDIR_CTORRENT
)/
52 $(IPKG_BUILD
) $(IDIR_CTORRENT
) $(PACKAGE_DIR
)