at: bump version
[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.6-git-1
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE_PROTO:=git
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
19 PKG_MIRROR_HASH:=0971c21d0e6b7028bc319e97c82bdb213c17dfc503fc0f89b809e5ed7ce98142
20
21 PKG_FIXUP:=autoreconf
22 PKG_BUILD_PARALLEL:=1
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libtorrent
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=Rakshasa's BitTorrent library
31 URL:=http://libtorrent.rakshasa.no/
32 DEPENDS:=+libopenssl +libsigcxx +zlib
33 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
34 endef
35
36 define Package/libtorrent/description
37 LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on
38 high performance and good code. The library differentiates itself from other
39 implementations by transferring directly from file pages to the network stack.
40 On high-bandwidth connections it is able to seed at 3 times the speed of the
41 official client.
42 endef
43
44 TARGET_LDFLAGS += $(LIBGCC_S)
45
46 CONFIGURE_ARGS+= \
47 --enable-shared \
48 --enable-static \
49 --enable-aligned \
50 --disable-debug \
51 --enable-openssl \
52 --disable-instrumentation \
53 --with-zlib=$(STAGING_DIR)/usr \
54 --disable-ipv6
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/torrent $(1)/usr/include/
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.{a,so*} $(1)/usr/lib/
61 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent.pc $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Package/libtorrent/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.so.* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libtorrent))