privoxy: fix uci configuration parsing after upstream OpenWrt changes
[feed/packages.git] / net / rtorrent / Makefile
1 #
2 # Copyright (C) 2007-2015 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:=rtorrent
11 PKG_VERSION:=0.9.6-git-1
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/rakshasa/rtorrent.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=62cb5a4605c0664bc522e0e0da9c72f09cf643a9
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19 PKG_MIRROR_HASH:=3c6834b12ebfa8d62618f6e9dbc06dfa593861fa0b435d2fd1bddb0e886fc77b
20
21 PKG_LICENSE:=GPL-2.0
22 PKG_LICENSE_FILES:=COPYING
23
24 PKG_FIXUP:=autoreconf
25 PKG_BUILD_PARALLEL:=1
26 PKG_INSTALL:=1
27
28 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/rtorrent/Default
33 SUBMENU:=BitTorrent
34 SECTION:=net
35 CATEGORY:=Network
36 TITLE:=BitTorrent client for ncurses
37 URL:=http://libtorrent.rakshasa.no/
38 DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +libpthread
39 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
40 endef
41
42 define Package/rtorrent/Default/description
43 rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
44 The client and library is written in C++ with emphasis on speed and
45 efficiency, while delivering equivalent features to those found in GUI based
46 clients in an ncurses client.
47 endef
48
49 define Package/rtorrent
50 $(call Package/rtorrent/Default)
51 VARIANT:=norpc
52 endef
53
54 define Package/rtorrent/description
55 $(call Package/rtorrent/Default/description)
56 This package is built without xmlrpc support
57 endef
58
59 define Package/rtorrent-rpc
60 $(call Package/rtorrent/Default)
61 VARIANT:=rpc
62 DEPENDS+=+xmlrpc-c-server
63 TITLE+=(with rpc support)
64 endef
65
66 define Package/rtorrent-rpc/description
67 $(call Package/rtorrent/Default/description)
68 This package is built with xmlrpc support
69 endef
70
71 TARGET_LDFLAGS += -lz -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
72
73 CONFIGURE_ARGS+= \
74 --enable-shared \
75 --disable-static \
76 --disable-debug \
77 --disable-ipv6
78
79 ifeq ($(BUILD_VARIANT),rpc)
80 CONFIGURE_ARGS += \
81 --with-xmlrpc-c
82 endif
83
84
85 define Package/rtorrent/install
86 $(INSTALL_DIR) $(1)/usr/bin
87 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
88 endef
89
90 Package/rtorrent-rpc/install = $(Package/rtorrent/install)
91
92 $(eval $(call BuildPackage,rtorrent))
93 $(eval $(call BuildPackage,rtorrent-rpc))