| 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 |
|
|---|
| 14 | PKG_SOURCE_URL:= http://www.rahul.net/dholmes/ctorrent/
|
|---|
| 15 | PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 16 |
|
|---|
| 17 | WRKSRC= ${WRKDIR}/$(PKG_NAME)-dnh2
|
|---|
| 18 |
|
|---|
| 19 | include $(TOPDIR)/mk/package.mk
|
|---|
| 20 |
|
|---|
| 21 | $(eval $(call PKG_template,CTORRENT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 22 |
|
|---|
| 23 | $(WRKBUILD)/.configured:
|
|---|
| 24 | (cd $(WRKBUILD); rm -rf config.cache; \
|
|---|
| 25 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 26 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 27 | CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
|
|---|
| 28 | LDFLAGS="-static -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|---|
| 29 | ./configure \
|
|---|
| 30 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 31 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 32 | --build=$(GNU_HOST_NAME) \
|
|---|
| 33 | --prefix=/usr \
|
|---|
| 34 | --exec-prefix=/usr \
|
|---|
| 35 | --bindir=/usr/bin \
|
|---|
| 36 | --sbindir=/usr/sbin \
|
|---|
| 37 | --libexecdir=/usr/lib \
|
|---|
| 38 | --sysconfdir=/etc \
|
|---|
| 39 | --datadir=/usr/share \
|
|---|
| 40 | --localstatedir=/var \
|
|---|
| 41 | --mandir=/usr/man \
|
|---|
| 42 | --infodir=/usr/info \
|
|---|
| 43 | --program-prefix="" \
|
|---|
| 44 | --with-gnu-ld \
|
|---|
| 45 | );
|
|---|
| 46 | touch $@
|
|---|
| 47 |
|
|---|
| 48 | $(WRKBUILD)/.built:
|
|---|
| 49 | $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(WRKINST) -C $(WRKBUILD) install
|
|---|
| 50 | touch $@
|
|---|
| 51 |
|
|---|
| 52 | $(IPKG_CTORRENT):
|
|---|
| 53 | mkdir -p $(IDIR_CTORRENT)
|
|---|
| 54 | $(CP) $(WRKINST)/* $(IDIR_CTORRENT)/
|
|---|
| 55 | $(RSTRIP) $(IDIR_CTORRENT)/
|
|---|
| 56 | $(IPKG_BUILD) $(IDIR_CTORRENT) $(PACKAGE_DIR)
|
|---|