exfatprogs: update to 1.2.5
[feed/packages.git] / libs / libtorrent / Makefile
1 #
2 # Copyright (C) 2007-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libtorrent
11 PKG_VERSION:=0.13.8
12 PKG_RELEASE:=2
13
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
17
18 PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libtorrent
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=Rakshasa's BitTorrent library
32 URL:=https://rakshasa.github.io/rtorrent/
33 DEPENDS:=+libopenssl +libstdcpp +zlib
34 BUILDONLY:=1
35 endef
36
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
42 official client.
43 endef
44
45 CONFIGURE_ARGS += \
46 --enable-shared \
47 --enable-static \
48 --enable-aligned \
49 --enable-openssl \
50 --disable-debug \
51 --disable-instrumentation \
52 --with-epoll \
53 --with-zlib=$(STAGING_DIR)/usr \
54 --without-kqueue
55
56 TARGET_CXXFLAGS += -faligned-new
57
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/
65 endef
66
67 $(eval $(call BuildPackage,libtorrent))