packages/xmail: fix whitespaces
[packages.git] / net / rtorrent / Makefile
1 #
2 # Copyright (C) 2007-2013 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.9.3-git
12
13 PKG_RELEASE:=$(PKG_SOURCE_VERSION)-1
14
15 PKG_SOURCE_PROTO:=git
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
20
21 PKG_FIXUP:=autoreconf
22 PKG_BUILD_PARALLEL:=1
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/rtorrent
28   SUBMENU:=BitTorrent
29   SECTION:=net
30   CATEGORY:=Network
31   TITLE:=BitTorrent client for ncurses
32   URL:=http://libtorrent.rakshasa.no/
33   DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +xmlrpc-c-server +libpthread
34 endef
35
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. 
41 endef
42
43 TARGET_LDFLAGS += -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
44
45 CONFIGURE_ARGS+= \
46         --enable-shared \
47         --disable-static \
48         --disable-debug \
49         --with-xmlrpc-c
50
51 define Build/Configure
52         ( cd $(PKG_BUILD_DIR); ./autogen.sh );
53         $(call Build/Configure/Default)
54 endef
55
56 define Package/rtorrent/install
57         $(INSTALL_DIR) $(1)/usr/bin
58         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
59 endef
60
61 $(eval $(call BuildPackage,rtorrent))