969b0e99f05eac8ff9c644b751f85093c3e04547
[openwrt/svn-archive/archive.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_REV:=1209
12 PKG_VERSION:=0.8.6_r$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=svn://rakshasa.no/libtorrent/trunk/rtorrent
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=svn
20
21 PKG_FIXUP:=libtool
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/rtorrent
27 SUBMENU:=BitTorrent
28 SECTION:=net
29 CATEGORY:=Network
30 TITLE:=BitTorrent client for ncurses
31 URL:=http://libtorrent.rakshasa.no/
32 DEPENDS:=+libcurl +libtorrent +libncurses +libsigcxx +xmlrpc-c-server +libpthread
33 MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
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 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.
41 endef
42
43 TARGET_CPPFLAGS += -fno-strict-aliasing -fno-inline
44 TARGET_LDFLAGS += -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
45
46 CONFIGURE_ARGS+= \
47 --enable-shared \
48 --disable-static \
49 --disable-debug \
50 --with-xmlrpc-c
51
52 define Build/Configure
53 ( cd $(PKG_BUILD_DIR); ./autogen.sh );
54 $(call Build/Configure/Default)
55 endef
56
57 define Package/rtorrent/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
60 endef
61
62 $(eval $(call BuildPackage,rtorrent))