2 # Copyright (C) 2007-2015 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
11 PKG_VERSION
:=0.9.6-git-1
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
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
22 PKG_LICENSE_FILES
:=COPYING
28 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
30 include $(INCLUDE_DIR
)/package.mk
32 define Package
/rtorrent
/Default
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
>
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.
49 define Package
/rtorrent
50 $(call Package
/rtorrent
/Default
)
54 define Package
/rtorrent
/description
55 $(call Package
/rtorrent
/Default
/description
)
56 This package is built without xmlrpc support
59 define Package
/rtorrent-rpc
60 $(call Package
/rtorrent
/Default
)
62 DEPENDS
+=+xmlrpc-c-server
63 TITLE
+=(with rpc support
)
66 define Package
/rtorrent-rpc
/description
67 $(call Package
/rtorrent
/Default
/description
)
68 This package is built with xmlrpc support
71 TARGET_LDFLAGS
+= -lz
-lpthread
-Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
79 ifeq ($(BUILD_VARIANT
),rpc
)
85 define Package
/rtorrent
/install
86 $(INSTALL_DIR
) $(1)/usr
/bin
87 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/rtorrent
$(1)/usr
/bin
/
90 Package
/rtorrent-rpc
/install = $(Package
/rtorrent
/install)
92 $(eval
$(call BuildPackage
,rtorrent
))
93 $(eval
$(call BuildPackage
,rtorrent-rpc
))