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
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
/
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" \
41 --target
=$(GNU_TARGET_NAME
) \
42 --host
=$(GNU_TARGET_NAME
) \
43 --build
=$(GNU_HOST_NAME
) \
48 --libexecdir
=/usr
/lib \
50 --datadir=/usr
/share \
51 --localstatedir
=/var \
60 $(call Build
/Compile
/Default
, DESTDIR
=$(PKG_INSTALL_DIR
) install)
63 define Package
/ctorrent
/install
65 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
68 $(eval
$(call BuildPackage
,ctorrent
))