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