2 # Copyright (C) 2007-2013 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.4-git
12 PKG_RELEASE
:=$(PKG_SOURCE_VERSION
)-1
15 PKG_SOURCE_URL
:=https
://github.com
/rakshasa
/rtorrent.git
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_VERSION
:=6a3234eaa79f15857260df31f98711ef24266191
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
24 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/rtorrent
/Default
32 TITLE
:=BitTorrent client for ncurses
33 URL
:=http
://libtorrent.rakshasa.no
/
34 DEPENDS
:=+libcurl
+libtorrent
+libncursesw
+libsigcxx
+libpthread
35 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
38 define Package
/rtorrent
/Default
/description
39 rTorrent is a BitTorrent client for ncurses
, using the libtorrent library.
40 The client and library is written in C
++ with emphasis on speed and
41 efficiency
, while delivering equivalent features to those found in GUI based
42 clients in an ncurses client.
45 define Package
/rtorrent
46 $(call Package
/rtorrent
/Default
)
50 define Package
/rtorrent
/description
51 $(call Package
/rtorrent
/Default
/description
)
52 This package is built without xmlrpc support
55 define Package
/rtorrent-rpc
56 $(call Package
/rtorrent
/Default
)
58 DEPENDS
+=+xmlrpc-c-server
59 TITLE
+=(with rpc support
)
62 define Package
/rtorrent-rpc
/description
63 $(call Package
/rtorrent
/Default
/description
)
64 This package is built with xmlrpc support
67 TARGET_LDFLAGS
+= -lz
-lpthread
-Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
74 ifeq ($(BUILD_VARIANT
),rpc
)
80 define Build
/Configure
81 ( cd
$(PKG_BUILD_DIR
); .
/autogen.sh
);
82 $(call Build
/Configure
/Default
)
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))