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.

73 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2007-2013 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.4-git-0
  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:=72e908707f01ee01a9b4918436c64348878b63f7
  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
  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 transfering 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. define Build/Configure
  45. ( cd $(PKG_BUILD_DIR); ./autogen.sh );
  46. $(call Build/Configure/Default)
  47. endef
  48. define Build/InstallDev
  49. $(INSTALL_DIR) $(1)/usr/include
  50. $(CP) $(PKG_INSTALL_DIR)/usr/include/torrent $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.{a,so*} $(1)/usr/lib/
  53. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent.pc $(1)/usr/lib/pkgconfig/
  55. endef
  56. define Package/libtorrent/install
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent.so.* $(1)/usr/lib/
  59. endef
  60. $(eval $(call BuildPackage,libtorrent))