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.

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