add common functions for the new config file format
[openwrt.git] / openwrt / package / ctorrent / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ctorrent
6 PKG_VERSION:=1.3.4-dnh2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=6635e2d0d0ee21faeb85d95cd93c137b
9
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
13 PKG_CAT:=zcat
14 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,CTORRENT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
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" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --sbindir=/usr/sbin \
34 --libexecdir=/usr/lib \
35 --sysconfdir=/etc \
36 --datadir=/usr/share \
37 --localstatedir=/var \
38 --mandir=/usr/man \
39 --infodir=/usr/info \
40 --program-prefix="" \
41 --with-gnu-ld \
42 );
43 touch $@
44
45 $(PKG_BUILD_DIR)/.built:
46 $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
47
48 $(IPKG_CTORRENT):
49 mkdir -p $(IDIR_CTORRENT)
50 $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_CTORRENT)/
51 $(RSTRIP) $(IDIR_CTORRENT)/
52 $(IPKG_BUILD) $(IDIR_CTORRENT) $(PACKAGE_DIR)
This page took 0.04252 seconds and 5 git commands to generate.