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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/dtorrent \
16 http
://www.rahul.net
/dholmes
/ctorrent
/
17 PKG_MD5SUM
:=59b23dd05ff70791cd6449effa7fc3b6
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/uclibc
++.mk
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/ctorrent
/Default
28 DEPENDS
:=$(CXX_DEPENDS
)
29 TITLE
:=console-based BitTorrent client
30 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
31 URL
:=http
://www.rahul.net
/dholmes
/ctorrent
/
34 define Package
/ctorrent
/Default
/description
35 CTorrent is a BitTorrent client written in the C programming language
,
36 known to be a very robust and mature programming language
, which produces
37 fast and optimized application.
40 define Package
/ctorrent
41 $(call Package
/ctorrent
/Default
)
42 TITLE
+= (with OpenSSL support
)
47 define Package
/ctorrent
/description
48 $(call Package
/ctorrent
/Default
/description
)
49 This package is built with OpenSSL support.
52 define Package
/ctorrent-nossl
53 $(call Package
/ctorrent
/Default
)
54 TITLE
+= (with builtin SHA-1
)
58 define Package
/ctorrent-nossl
/description
59 $(call Package
/ctorrent
/Default
/description
)
60 This package is built with builtin
(Steve Reid
's public-domain) SHA-1 support
64 CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
66 ifeq ($(BUILD_VARIANT),ssl)
68 --with-ssl="$(STAGING_DIR)/usr"
71 ifeq ($(BUILD_VARIANT),nossl)
76 define Package/ctorrent/install
77 $(INSTALL_DIR) $(1)/usr/bin
78 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
81 Package/ctorrent-nossl/install = $(Package/ctorrent/install)
83 $(eval $(call BuildPackage,ctorrent))
84 $(eval $(call BuildPackage,ctorrent-nossl))