update libnfnetlink to 0.0.39
[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:=2
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
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 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
46 LIBS="-lm" \
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Package/rtorrent/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(CP) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
57 endef
58
59 $(eval $(call BuildPackage,rtorrent))