2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/dtorrent \
17 http
://www.rahul.net
/dholmes
/ctorrent
/
18 PKG_MD5SUM
:=59b23dd05ff70791cd6449effa7fc3b6
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/ctorrent
/Default
29 TITLE
:=console-based BitTorrent client
30 URL
:=http
://www.rahul.net
/dholmes
/ctorrent
/
33 define Package
/ctorrent
/Default
/description
34 CTorrent is a BitTorrent client written in the C programming language
,
35 known to be a very robust and mature programming language
, which produces
36 fast and optimized application.
39 define Package
/ctorrent
40 $(call Package
/ctorrent
/Default
)
41 TITLE
+= (with builtin SHA-1 support
)
44 define Package
/ctorrent
/description
45 $(call Package
/ctorrent
/Default
/description
)
46 This package is built with builtin
(Steve Reid
's public-domain) SHA-1 support
49 define Package/ctorrent-openssl
50 $(call Package/ctorrent/Default)
52 TITLE+= (with OpenSSL support)
55 define Package/ctorrent-openssl/description
56 $(call Package/ctorrent/Default/description)
57 This package is built with OpenSSL support.
62 $(STAMP_BUILT)-$(2): $(STAMP_PREPARED)
63 -$(MAKE) -C $(PKG_BUILD_DIR) clean
64 $(call Build/Configure/Default,$(3))
65 $(MAKE) -C $(PKG_BUILD_DIR)
66 ( cd $(PKG_BUILD_DIR); mv -f $(PKG_NAME) $(PKG_NAME)-$(2) )
69 $(STAMP_BUILT): $(STAMP_BUILT)-$(2)
71 define Package/$(1)/install
72 $(INSTALL_DIR) $$(1)/usr/bin
73 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME)-$(2) $$(1)/usr/bin/$(PKG_NAME)
80 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
82 ifneq ($(SDK)$(CONFIG_PACKAGE_ctorrent),)
84 $(call Build/Template,ctorrent,with-ssl, \
89 $(eval $(Build/with-ssl))
91 ifneq ($(SDK)$(CONFIG_PACKAGE_ctorrent-openssl),)
92 define Build/with-openssl
93 $(call Build/Template,ctorrent-openssl,with-openssl, \
94 --with-ssl="$(STAGING_DIR)/usr" \
98 $(eval $(Build/with-openssl))
100 $(eval $(call BuildPackage,ctorrent))
101 $(eval $(call BuildPackage,ctorrent-openssl))