branch Attitude Adjustment packages
[12.09/packages.git] / net / rtorrent / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rtorrent
11 PKG_VERSION:=0.8.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://libtorrent.rakshasa.no/downloads
16 PKG_MD5SUM:=b804c45c01c40312926bcea6b55bb084
17
18 PKG_FIXUP:=autoreconf
19 PKG_BUILD_PARALLEL:=1
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/rtorrent
25   SUBMENU:=BitTorrent
26   SECTION:=net
27   CATEGORY:=Network
28   TITLE:=BitTorrent client for ncurses
29   URL:=http://libtorrent.rakshasa.no/
30   DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +xmlrpc-c-server +libpthread
31   MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
32 endef
33
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. 
39 endef
40
41 TARGET_CPPFLAGS += -fno-strict-aliasing -fno-inline
42 TARGET_LDFLAGS += -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
43
44 CONFIGURE_ARGS+= \
45         --enable-shared \
46         --disable-static \
47         --disable-debug \
48         --with-xmlrpc-c
49
50 define Build/Configure
51         ( cd $(PKG_BUILD_DIR); ./autogen.sh );
52         $(call Build/Configure/Default)
53 endef
54
55 define Package/rtorrent/install
56         $(INSTALL_DIR) $(1)/usr/bin
57         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,rtorrent))