7d9a03dd4e0e04288aa401895b38239d1bb9e5ae
[openwrt/svn-archive/archive.git] / net / rtorrent / Makefile
1 #
2 # Copyright (C) 2007 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.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://libtorrent.rakshasa.no/downloads/
17 PKG_MD5SUM:=430ac264605fc13be6a5d15180e5c957
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
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 CXX="g++-uc+std" \
46 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
47 LIBS="-lm" \
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
51 endef
52
53 define Package/rtorrent/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
56 endef
57
58 $(eval $(call BuildPackage,rtorrent))
59