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
10 PKG_NAME
:=ctorrent-svn
12 PKG_VERSION
:=r
$(PKG_REV
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://dtorrent.svn.sourceforge.net
/svnroot
/dtorrent
/dtorrent
/trunk
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=$(PKG_REV
)
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_CHECK_FORMAT_SECURITY
:=0
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/ctorrent-svn
/Default
31 TITLE
:=console-based BitTorrent client
32 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
33 URL
:=http
://www.rahul.net
/dholmes
/ctorrent
/
36 define Package
/ctorrent-svn
/Default
/description
37 CTorrent is a BitTorrent client written in the C programming language
,
38 known to be a very robust and mature programming language
, which produces
39 fast and optimized application.
42 define Package
/ctorrent-svn
43 $(call Package
/ctorrent-svn
/Default
)
44 TITLE
+= (with OpenSSL support
)
49 define Package
/ctorrent-svn
/description
50 $(call Package
/ctorrent-svn
/Default
/description
)
51 This package is built with OpenSSL support.
54 define Package
/ctorrent-svn-nossl
55 $(call Package
/ctorrent-svn
/Default
)
56 TITLE
+= (with builtin SHA-1
)
60 define Package
/ctorrent-svn-nossl
/description
61 $(call Package
/ctorrent-svn
/Default
/description
)
62 This package is built with builtin
(Steve Reid
's public-domain) SHA-1 support
67 LIBS="-nodefaultlibs -luClibc++ $(LIBGCC_S) -lc"
69 ifeq ($(BUILD_VARIANT),ssl)
71 --with-ssl="$(STAGING_DIR)/usr"
74 ifeq ($(BUILD_VARIANT),nossl)
79 define Build/Configure
80 (cd $(PKG_BUILD_DIR); touch \
87 $(call Build/Configure/Default)
90 define Package/ctorrent-svn/install
91 $(INSTALL_DIR) $(1)/usr/bin
92 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ctorrent $(1)/usr/bin/ctorrent
95 Package/ctorrent-svn-nossl/install = $(Package/ctorrent-svn/install)
97 $(eval $(call BuildPackage,ctorrent-svn))
98 $(eval $(call BuildPackage,ctorrent-svn-nossl))