[packages] stunnel: remove private libtool copy, extend crosscompile fixes to ac...
[openwrt/svn-archive/archive.git] / net / ctorrent / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ctorrent
11 PKG_VERSION:=dnh3.3.2
12 PKG_RELEASE:=5
13
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
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ctorrent/Default
24 SUBMENU:=BitTorrent
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+uclibcxx
28 TITLE:=console-based BitTorrent client
29 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
30 URL:=http://www.rahul.net/dholmes/ctorrent/
31 endef
32
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.
37 endef
38
39 define Package/ctorrent
40 $(call Package/ctorrent/Default)
41 TITLE+= (with OpenSSL support)
42 DEPENDS+=+libopenssl
43 VARIANT:=ssl
44 endef
45
46 define Package/ctorrent/description
47 $(call Package/ctorrent/Default/description)
48 This package is built with OpenSSL support.
49 endef
50
51 define Package/ctorrent-nossl
52 $(call Package/ctorrent/Default)
53 TITLE+= (with builtin SHA-1)
54 VARIANT:=nossl
55 endef
56
57 define Package/ctorrent-nossl/description
58 $(call Package/ctorrent/Default/description)
59 This package is built with builtin (Steve Reid's public-domain) SHA-1 support
60 endef
61
62 CONFIGURE_VARS += \
63 CXX="g++-uc" \
64 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
65 LIBS="-nodefaultlibs -luClibc++ $(LIBGCC_S) -lc"
66
67 ifeq ($(BUILD_VARIANT),ssl)
68 CONFIGURE_ARGS += \
69 --with-ssl="$(STAGING_DIR)/usr"
70 endif
71
72 ifeq ($(BUILD_VARIANT),nossl)
73 CONFIGURE_ARGS += \
74 --with-ssl=no
75 endif
76
77 define Package/ctorrent/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
80 endef
81
82 Package/ctorrent-nossl/install = $(Package/ctorrent/install)
83
84 $(eval $(call BuildPackage,ctorrent))
85 $(eval $(call BuildPackage,ctorrent-nossl))