06ee3464bc27cd6aae1e1c5cbbe871d6b247317a
2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_VERSION
:=0.12.4_r
$(PKG_REV
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=svn
://rakshasa.no
/libtorrent
/trunk
/libtorrent
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=$(PKG_REV
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libtorrent
28 TITLE
:=Rakshasa
's BitTorrent library
29 URL:=http://libtorrent.rakshasa.no/
30 DEPENDS:=+libopenssl +libsigcxx
33 define Package/libtorrent/description
34 LibTorrent is a BitTorrent library written in C++ for *nix, with a focus
35 on high performance and good code. The library differentiates itself from
36 other implementations by transfering directly from file pages to the
37 network stack. On high-bandwidth connections it is able to seed at 3 times
38 the speed of the official client.
41 TARGET_CFLAGS += $(FPIC)
44 -fno-strict-aliasing -fno-inline \
46 # XXX: rtorrent needs encryption (--enable-openssl)
54 define Build/Configure
55 (cd $(PKG_BUILD_DIR); ./autogen.sh );
56 $(call Build/Configure/Default)
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
65 define Build/InstallDev
66 $(INSTALL_DIR) $(1)/usr/include
67 $(CP) $(PKG_INSTALL_DIR)/usr/include/torrent $(1)/usr/include/
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.{a,so*} $(1)/usr/lib/
70 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent.pc $(1)/usr/lib/pkgconfig/
74 define Package/libtorrent/install
75 $(INSTALL_DIR) $(1)/usr/lib
76 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.so.* $(1)/usr/lib/
79 $(eval $(call BuildPackage,libtorrent))