source: packages/net/ctorrent/Makefile @ 20568

Last change on this file since 20568 was 20568, checked in by nico, 6 years ago

[packages] ctorrent: fix build failure on brcm-2.4 with gcc-3.4.6 (closes: #6988)

  • Property copyright set to Copyright (C) 2006-2008 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ctorrent
11PKG_VERSION:=dnh3.3.2
12PKG_RELEASE:=5
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/dtorrent \
16        http://www.rahul.net/dholmes/ctorrent/
17PKG_MD5SUM:=59b23dd05ff70791cd6449effa7fc3b6
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/ctorrent/Default
24  SUBMENU:=BitTorrent
25  SECTION:=net
26  CATEGORY:=Network
27  DEPENDS:=+uclibcxx
28  TITLE:=console-based BitTorrent client
29  URL:=http://www.rahul.net/dholmes/ctorrent/
30endef
31
32define Package/ctorrent/Default/description
33        CTorrent is a BitTorrent client written in the C programming language,
34        known to be a very robust and mature programming language, which produces
35        fast and optimized application.
36endef
37
38define Package/ctorrent
39$(call Package/ctorrent/Default)
40  TITLE+= (with OpenSSL support)
41  DEPENDS+=+libopenssl
42  VARIANT:=ssl
43endef
44
45define Package/ctorrent/description
46$(call Package/ctorrent/Default/description)
47 This package is built with OpenSSL support.
48endef
49
50define Package/ctorrent-nossl
51$(call Package/ctorrent/Default)
52  TITLE+= (with builtin SHA-1)
53  VARIANT:=nossl
54endef
55
56define Package/ctorrent-nossl/description
57$(call Package/ctorrent/Default/description)
58 This package is built with builtin (Steve Reid's public-domain) SHA-1 support
59endef
60
61CONFIGURE_VARS += \
62        CXX="g++-uc" \
63        CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
64        LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++ $(LIBGCC_S) -lc"
65
66ifeq ($(BUILD_VARIANT),ssl)
67        CONFIGURE_ARGS += \
68                --with-ssl="$(STAGING_DIR)/usr"
69endif
70
71ifeq ($(BUILD_VARIANT),nossl)
72        CONFIGURE_ARGS += \
73                --with-ssl=no
74endif
75
76define Package/ctorrent/install
77        $(INSTALL_DIR) $(1)/usr/bin
78        $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
79endef
80
81Package/ctorrent-nossl/install = $(Package/ctorrent/install)
82
83$(eval $(call BuildPackage,ctorrent))
84$(eval $(call BuildPackage,ctorrent-nossl))
Note: See TracBrowser for help on using the repository browser.