source: packages/libs/libtorrent/Makefile @ 12228

Last change on this file since 12228 was 12228, checked in by nbd, 8 years ago

enable $(FPIC) for a few more packages

  • Property svn:copyright set to Copyright (C) 2007-2008 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
  • Property svn:licence set to GPLv2
File size: 1.8 KB
Line 
1#
2# Copyright (C) 2007-2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=libtorrent
12PKG_VERSION:=0.11.9
13PKG_RELEASE:=3
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://libtorrent.rakshasa.no/downloads/
17PKG_MD5SUM:=8974dc9499b382a09fb952cabcfef9a0
18
19PKG_FIXUP = libtool
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libtorrent
24  SECTION:=libs
25  CATEGORY:=Libraries
26  TITLE:=Rakshasa's BitTorrent library
27  URL:=http://libtorrent.rakshasa.no/
28  DEPENDS:=+libopenssl +libsigcxx
29endef
30
31define Package/libtorrent/description
32 LibTorrent is a BitTorrent library written in C++ for *nix, with a focus
33 on high performance and good code. The library differentiates itself from
34 other implementations by transfering directly from file pages to the
35 network stack. On high-bandwidth connections it is able to seed at 3 times
36 the speed of the official client.
37endef
38
39TARGET_CFLAGS += $(FPIC)
40
41# XXX: rtorrent needs encryption (--enable-openssl)
42CONFIGURE_ARGS+= \
43        --enable-shared \
44        --enable-static \
45        --enable-aligned \
46        --disable-debug \
47        --enable-openssl \
48
49define Build/Compile
50        $(MAKE) -C $(PKG_BUILD_DIR) \
51                DESTDIR="$(PKG_INSTALL_DIR)" \
52                all install
53endef
54
55define 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/
62endef
63
64define Package/libtorrent/install
65        $(INSTALL_DIR) $(1)/usr/lib
66        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.so.* $(1)/usr/lib/
67endef
68
69$(eval $(call BuildPackage,libtorrent))
70
Note: See TracBrowser for help on using the repository browser.