2 # Copyright (C) 2007-2015 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/rakshasa
/libtorrent
/tar.gz
/v
$(PKG_VERSION
)?
16 PKG_HASH
:=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
18 PKG_MAINTAINER
:=Rosen Penev
<rosenp@gmail.com
>
19 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libtorrent
31 TITLE
:=Rakshasa
's BitTorrent library
32 URL:=https://rakshasa.github.io/rtorrent/
33 DEPENDS:=+libopenssl +libstdcpp +zlib
37 define Package/libtorrent/description
38 LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on
39 high performance and good code. The library differentiates itself from other
40 implementations by transferring directly from file pages to the network stack.
41 On high-bandwidth connections it is able to seed at 3 times the speed of the
51 --disable-instrumentation \
53 --with-zlib=$(STAGING_DIR)/usr \
56 TARGET_CXXFLAGS += -faligned-new
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/torrent $(1)/usr/include/
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.a $(1)/usr/lib/
63 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent.pc $(1)/usr/lib/pkgconfig/
67 $(eval $(call BuildPackage,libtorrent))