[package] add gcc-4.4.0 fixes from #5118
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rtorrent
11
12 PKG_REV:=1087
13 PKG_VERSION:=0.8.4_r$(PKG_REV)
14 PKG_RELEASE:=2
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/rtorrent
26 SUBMENU:=BitTorrent
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=BitTorrent client for ncurses
30 URL:=http://libtorrent.rakshasa.no/
31 DEPENDS:=+libcurl +libtorrent +libncurses +xmlrpc-c
32 endef
33
34 define Package/rtorrent/description
35 rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
36 The client and library are written in C++ with emphasis on speed and
37 efficiency, while delivering equivalent features to those found in GUI
38 based clients in an ncurses client.
39 endef
40
41 TARGET_CPPFLAGS += \
42 -fno-strict-aliasing -fno-inline \
43
44 CONFIGURE_ARGS+= \
45 --enable-shared \
46 --disable-static \
47 --disable-debug \
48 --disable-tls \
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 Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 all install
60 endef
61
62 define Package/rtorrent/install
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(CP) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
65 endef
66
67 $(eval $(call BuildPackage,rtorrent))