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-0
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
:=7343e33a6a0d279179b304a380bf011f1c8be64a
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
21 PKG_LICENSE_FILES
:=COPYING
27 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/rtorrent
/Default
35 TITLE
:=BitTorrent client for ncurses
36 URL
:=http
://libtorrent.rakshasa.no
/
37 DEPENDS
:=+libcurl
+libtorrent
+libncursesw
+libsigcxx
+libpthread
38 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
41 define Package
/rtorrent
/Default
/description
42 rTorrent is a BitTorrent client for ncurses
, using the libtorrent library.
43 The client and library is written in C
++ with emphasis on speed and
44 efficiency
, while delivering equivalent features to those found in GUI based
45 clients in an ncurses client.
48 define Package
/rtorrent
49 $(call Package
/rtorrent
/Default
)
53 define Package
/rtorrent
/description
54 $(call Package
/rtorrent
/Default
/description
)
55 This package is built without xmlrpc support
58 define Package
/rtorrent-rpc
59 $(call Package
/rtorrent
/Default
)
61 DEPENDS
+=+xmlrpc-c-server
62 TITLE
+=(with rpc support
)
65 define Package
/rtorrent-rpc
/description
66 $(call Package
/rtorrent
/Default
/description
)
67 This package is built with xmlrpc support
70 TARGET_LDFLAGS
+= -lz
-lpthread
-Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
77 ifeq ($(BUILD_VARIANT
),rpc
)
83 define Build
/Configure
84 ( cd
$(PKG_BUILD_DIR
); .
/autogen.sh
);
85 $(call Build
/Configure
/Default
)
88 define Package
/rtorrent
/install
89 $(INSTALL_DIR
) $(1)/usr
/bin
90 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/rtorrent
$(1)/usr
/bin
/
93 Package
/rtorrent-rpc
/install = $(Package
/rtorrent
/install)
95 $(eval
$(call BuildPackage
,rtorrent
))
96 $(eval
$(call BuildPackage
,rtorrent-rpc
))