111d985f1bcda3107e04c81cb2013593fe0e2c69
[openwrt/svn-archive/archive.git] / net / ctorrent / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ctorrent
11 PKG_VERSION:=1.3.4-dnh2
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=6635e2d0d0ee21faeb85d95cd93c137b
14
15 PKG_SOURCE_URL:=http://www.rahul.net/dholmes/ctorrent/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-dnh2
18 PKG_CAT:=zcat
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ctorrent
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libopenssl
27 TITLE:=console-based BitTorrent client
28 DESCRIPTION:=CTorrent is a BitTorrent client written in the C programming language, known to\\\
29 be a very robust and mature programming language, which produces fast and\\\
30 optimized application.\\\
31 URL:=http://www.rahul.net/dholmes/ctorrent/
32 endef
33
34 define Build/Configure
35 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS)" \
38 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
39 LDFLAGS="-static -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
40 ./configure \
41 --target=$(GNU_TARGET_NAME) \
42 --host=$(GNU_TARGET_NAME) \
43 --build=$(GNU_HOST_NAME) \
44 --prefix=/usr \
45 --exec-prefix=/usr \
46 --bindir=/usr/bin \
47 --sbindir=/usr/sbin \
48 --libexecdir=/usr/lib \
49 --sysconfdir=/etc \
50 --datadir=/usr/share \
51 --localstatedir=/var \
52 --mandir=/usr/man \
53 --infodir=/usr/info \
54 --program-prefix="" \
55 --with-gnu-ld \
56 );
57 endef
58
59 define Build/Compile
60 $(call Build/Compile/Default, DESTDIR=$(PKG_INSTALL_DIR) install)
61 endef
62
63 define Package/ctorrent/install
64 mkdir -p $(1)
65 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
66 endef
67
68 $(eval $(call BuildPackage,ctorrent))