packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.
[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_BUILD_DEPENDS:=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/Configure
50 $(call Build/Configure/Default,)
51 $(call libtool_disable_rpath)
52 $(SED) 's|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec="$(STAGING_DIR)/usr/lib"|g' \
53 $(PKG_BUILD_DIR)/libtool
54 $(SED) 's|^postdeps=.*|postdeps=|g' $(PKG_BUILD_DIR)/libtool
55 endef
56
57 define Build/Compile
58 $(MAKE) -C $(PKG_BUILD_DIR) all
59 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
60 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
61 endef
62
63 define Package/rtorrent/install
64 $(INSTALL_DIR) $(1)/usr/bin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
66 endef
67
68 $(eval $(call BuildPackage,rtorrent))
69