2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
13 PKG_VERSION:=0.8.6_r$(PKG_REV)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=svn://rakshasa.no/libtorrent/trunk/rtorrent
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
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 +libncurses +libsigcxx +xmlrpc-c +libpthread
36 define Package/rtorrent/description
37 rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
38 The client and library are written in C++ with emphasis on speed and
39 efficiency, while delivering equivalent features to those found in GUI
40 based clients in an ncurses client.
43 ifneq ($(CONFIG_GCC_VERSION_3_4)$(CONFIG_GCC_VERSION_4_1),)
44 TARGET_CPPFLAGS += -fno-strict-aliasing
47 TARGET_LDFLAGS += -lpthread
55 define Build/Configure
56 (cd $(PKG_BUILD_DIR); ./autogen.sh );
57 $(call Build/Configure/Default)
60 define Package/rtorrent/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
65 $(eval $(call BuildPackage,rtorrent))