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.3-git
13 PKG_RELEASE:=$(PKG_SOURCE_VERSION)-1
16 PKG_SOURCE_URL:=https://github.com/rakshasa/rtorrent.git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=7689059dbc1ee05f855eb28883cbe59d162d4431
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
25 include $(INCLUDE_DIR)/package.mk
27 define Package/rtorrent
31 TITLE:=BitTorrent client for ncurses
32 URL:=http://libtorrent.rakshasa.no/
33 DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +xmlrpc-c-server +libpthread
36 define Package/rtorrent/description
37 rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
38 The client and library is written in C++ with emphasis on speed and
39 efficiency, while delivering equivalent features to those found in GUI based
40 clients in an ncurses client.
43 TARGET_LDFLAGS += -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
51 define Build/Configure
52 ( cd $(PKG_BUILD_DIR); ./autogen.sh );
53 $(call Build/Configure/Default)
56 define Package/rtorrent/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
61 $(eval $(call BuildPackage,rtorrent))