2 # Copyright (C) 2007-2011 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://libtorrent.rakshasa.no/downloads
16 PKG_MD5SUM:=b804c45c01c40312926bcea6b55bb084
22 include $(INCLUDE_DIR)/package.mk
24 define Package/rtorrent
28 TITLE:=BitTorrent client for ncurses
29 URL:=http://libtorrent.rakshasa.no/
30 DEPENDS:=+libcurl +libtorrent +libncurses +libsigcxx +xmlrpc-c-server +libpthread
31 MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
34 define Package/rtorrent/description
35 rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
36 The client and library is written in C++ with emphasis on speed and
37 efficiency, while delivering equivalent features to those found in GUI based
38 clients in an ncurses client.
41 TARGET_CPPFLAGS += -fno-strict-aliasing -fno-inline
42 TARGET_LDFLAGS += -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
50 define Build/Configure
51 ( cd $(PKG_BUILD_DIR); ./autogen.sh );
52 $(call Build/Configure/Default)
55 define Package/rtorrent/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
60 $(eval $(call BuildPackage,rtorrent))