lxc: use generic autoreconf fixup
[feed/packages.git] / libs / libtorrent / Makefile
1 #
2 # Copyright (C) 2007-2013 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.4-git-0
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:=72e908707f01ee01a9b4918436c64348878b63f7
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19
20 PKG_FIXUP:=autoreconf
21 PKG_BUILD_PARALLEL:=1
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libtorrent
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Rakshasa's BitTorrent library
30 URL:=http://libtorrent.rakshasa.no/
31 DEPENDS:=+libopenssl +libsigcxx
32 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
33 endef
34
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 transfering 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
40 official client.
41 endef
42
43 TARGET_LDFLAGS += $(LIBGCC_S)
44
45 CONFIGURE_ARGS+= \
46 --enable-shared \
47 --enable-static \
48 --enable-aligned \
49 --disable-debug \
50 --enable-openssl \
51 --disable-instrumentation \
52 --with-zlib=$(STAGING_DIR)/usr
53
54 define Build/Configure
55 ( cd $(PKG_BUILD_DIR); ./autogen.sh );
56 $(call Build/Configure/Default)
57 endef
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/include
61 $(CP) $(PKG_INSTALL_DIR)/usr/include/torrent $(1)/usr/include/
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.{a,so*} $(1)/usr/lib/
64 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent.pc $(1)/usr/lib/pkgconfig/
66 endef
67
68 define Package/libtorrent/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.so.* $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,libtorrent))