Fix rtorrent dependency against libsigcxx
[openwrt/svn-archive/archive.git] / net / rtorrent / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=rtorrent
12 PKG_VERSION:=0.7.9
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://libtorrent.rakshasa.no/downloads/
17 PKG_MD5SUM:=136202fdd540a92aafbcee29f849d228
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/rtorrent
24 SUBMENU:=BitTorrent
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=BitTorrent client for ncurses
28 URL:=http://libtorrent.rakshasa.no/
29 DEPENDS:=+libcurl +libtorrent +libncurses +libsigcxx
30 endef
31
32 define Package/rtorrent/description
33 rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
34 The client and library are written in C++ with emphasis on speed and
35 efficiency, while delivering equivalent features to those found in GUI
36 based clients in an ncurses client.
37 endef
38
39 CONFIGURE_ARGS+= \
40 --enable-shared \
41 --disable-static \
42 --disable-debug \
43
44 CONFIGURE_VARS += \
45 LIBS="-lm -luClibc++" \
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/rtorrent/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(CP) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
56 endef
57
58 $(eval $(call BuildPackage,rtorrent))