1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=1.3.4-dnh2
13 PKG_MD5SUM:=6635e2d0d0ee21faeb85d95cd93c137b
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
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21 include $(INCLUDE_DIR)/package.mk
23 define Package/ctorrent
26 TITLE:=console-based BitTorrent client
27 DESCRIPTION:=CTorrent is a BitTorrent client written in the C programming language, known to\\\
28 be a very robust and mature programming language, which produces fast and\\\
29 optimized application.\\\
30 URL:=http://www.rahul.net/dholmes/ctorrent/
33 define Build/Configure
34 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
38 LDFLAGS="-static -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
40 --target=$(GNU_TARGET_NAME) \
41 --host=$(GNU_TARGET_NAME) \
42 --build=$(GNU_HOST_NAME) \
47 --libexecdir=/usr/lib \
49 --datadir=/usr/share \
50 --localstatedir=/var \
59 $(call Build/Compile/Default, DESTDIR=$(PKG_INSTALL_DIR) install)
62 define Package/ctorrent/install
64 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
67 $(eval $(call BuildPackage,ctorrent))