2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://libtorrent.rakshasa.no
/downloads
/
17 PKG_MD5SUM
:=430ac264605fc13be6a5d15180e5c957
19 PKG_BUILD_DEPENDS
:=libtool
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/rtorrent
27 TITLE
:=BitTorrent client for ncurses
28 URL
:=http
://libtorrent.rakshasa.no
/
29 DEPENDS
:=+libcurl
+libtorrent
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.
46 CXXFLAGS
="$$$$CXXFLAGS -fno-rtti" \
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
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
63 define Package
/rtorrent
/install
64 $(INSTALL_DIR
) $(1)/usr
/bin
65 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/rtorrent
$(1)/usr
/bin
/
68 $(eval
$(call BuildPackage
,rtorrent
))