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.

67 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. BUILDONLY:=1
  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. CONFIGURE_ARGS += \
  37. --enable-shared \
  38. --enable-static \
  39. --enable-aligned \
  40. --enable-openssl \
  41. --disable-debug \
  42. --disable-instrumentation \
  43. --with-epoll \
  44. --with-zlib=$(STAGING_DIR)/usr \
  45. --without-kqueue
  46. TARGET_CXXFLAGS += -faligned-new
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/include
  49. $(CP) $(PKG_INSTALL_DIR)/usr/include/torrent $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.a $(1)/usr/lib/
  52. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent.pc $(1)/usr/lib/pkgconfig/
  54. endef
  55. $(eval $(call BuildPackage,libtorrent))