You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.9 KiB

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