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
11 PKG_VERSION
:=0.13.6-git-1
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
15 PKG_SOURCE_URL
:=https
://github.com
/rakshasa
/libtorrent.git
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_VERSION
:=14e793b75dac95c51ad64ff9cd2dc6772b68c625
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libtorrent
29 TITLE
:=Rakshasa
's BitTorrent library
30 URL:=http://libtorrent.rakshasa.no/
31 DEPENDS:=+libopenssl +libsigcxx +zlib
32 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
35 define Package/libtorrent/description
36 LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on
37 high performance and good code. The library differentiates itself from other
38 implementations by transferring directly from file pages to the network stack.
39 On high-bandwidth connections it is able to seed at 3 times the speed of the
43 TARGET_LDFLAGS += $(LIBGCC_S)
51 --disable-instrumentation \
52 --with-zlib=$(STAGING_DIR)/usr \
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/torrent $(1)/usr/include/
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.{a,so*} $(1)/usr/lib/
60 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent.pc $(1)/usr/lib/pkgconfig/
64 define Package/libtorrent/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.so.* $(1)/usr/lib/
69 $(eval $(call BuildPackage,libtorrent))