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.

66 lines
1.8 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.8
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/rakshasa/libtorrent/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=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:=https://rakshasa.github.io/rtorrent/
  26. DEPENDS:=+libopenssl +libstdcpp +zlib
  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. CONFIGURE_ARGS += \
  36. --enable-shared \
  37. --enable-static \
  38. --enable-aligned \
  39. --enable-openssl \
  40. --disable-debug \
  41. --disable-instrumentation \
  42. --with-epoll \
  43. --with-zlib=$(STAGING_DIR)/usr \
  44. --without-kqueue
  45. TARGET_CXXFLAGS += -faligned-new
  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 $(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. $(eval $(call BuildPackage,libtorrent))