| 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= ctorrent
|
|---|
| 10 | PKG_VERSION:= 1.3.4-dnh2
|
|---|
| 11 | PKG_RELEASE:= 1
|
|---|
| 12 | PKG_MD5SUM:= 6635e2d0d0ee21faeb85d95cd93c137b
|
|---|
| 13 | PKG_SOURCE_URL:= http://www.rahul.net/dholmes/ctorrent/
|
|---|
| 14 | WRKSRC= ${WRKDIR}/$(PKG_NAME)-dnh2
|
|---|
| 15 |
|
|---|
| 16 | include $(TOPDIR)/mk/package.mk
|
|---|
| 17 |
|
|---|
| 18 | $(eval $(call PKG_template,CTORRENT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 19 |
|
|---|
| 20 | $(WRKBUILD)/.configured:
|
|---|
| 21 | (cd $(WRKBUILD); rm -rf config.cache; \
|
|---|
| 22 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 23 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 24 | CXXFLAGS="-fno-builtin -fno-rtti -nostdinc++" \
|
|---|
| 25 | CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
|
|---|
| 26 | LDFLAGS="-lgcc_s -luClibc++ -lc -lm -nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|---|
| 27 | ./configure \
|
|---|
| 28 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 29 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 30 | --build=$(GNU_HOST_NAME) \
|
|---|
| 31 | --prefix=/usr \
|
|---|
| 32 | --exec-prefix=/usr \
|
|---|
| 33 | --bindir=/usr/bin \
|
|---|
| 34 | --sbindir=/usr/sbin \
|
|---|
| 35 | --libexecdir=/usr/lib \
|
|---|
| 36 | --sysconfdir=/etc \
|
|---|
| 37 | --datadir=/usr/share \
|
|---|
| 38 | --localstatedir=/var \
|
|---|
| 39 | --mandir=/usr/man \
|
|---|
| 40 | --infodir=/usr/info \
|
|---|
| 41 | --program-prefix="" \
|
|---|
| 42 | --with-gnu-ld \
|
|---|
| 43 | );
|
|---|
| 44 | touch $@
|
|---|
| 45 |
|
|---|
| 46 | $(WRKBUILD)/.built:
|
|---|
| 47 | $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(WRKINST) -C $(WRKBUILD) install
|
|---|
| 48 | touch $@
|
|---|
| 49 |
|
|---|
| 50 | $(IPKG_CTORRENT):
|
|---|
| 51 | mkdir -p $(IDIR_CTORRENT)
|
|---|
| 52 | $(CP) $(WRKINST)/* $(IDIR_CTORRENT)/
|
|---|
| 53 | $(RSTRIP) $(IDIR_CTORRENT)/
|
|---|
| 54 | $(IPKG_BUILD) $(IDIR_CTORRENT) $(PACKAGE_DIR)
|
|---|