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.

90 lines
2.3 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:=rtorrent
  9. PKG_VERSION:=0.9.8
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/rakshasa/rtorrent/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=bc889ce1dde475ec56aa72ae996912ff58723226a4f4256fef4f1f8636d991d4
  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. PKG_BUILD_DEPENDS:=libtorrent
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/rtorrent/Default
  23. SUBMENU:=BitTorrent
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=BitTorrent client for ncurses
  27. URL:=https://github.com/rakshasa/rtorrent
  28. DEPENDS:=+libcurl +libncurses +libpthread +libopenssl +libstdcpp +zlib
  29. endef
  30. define Package/rtorrent/Default/description
  31. rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
  32. The client and library is written in C++ with emphasis on speed and
  33. efficiency, while delivering equivalent features to those found in GUI based
  34. clients in an ncurses client.
  35. endef
  36. define Package/rtorrent
  37. $(call Package/rtorrent/Default)
  38. VARIANT:=norpc
  39. endef
  40. define Package/rtorrent/description
  41. $(call Package/rtorrent/Default/description)
  42. This package is built without xmlrpc support
  43. endef
  44. define Package/rtorrent-rpc
  45. $(call Package/rtorrent/Default)
  46. VARIANT:=rpc
  47. DEPENDS+=+xmlrpc-c-server
  48. TITLE+=(with rpc support)
  49. endef
  50. define Package/rtorrent-rpc/description
  51. $(call Package/rtorrent/Default/description)
  52. This package is built with xmlrpc support
  53. endef
  54. CONFIGURE_ARGS += \
  55. --enable-static \
  56. --disable-shared \
  57. --disable-debug \
  58. --with-libcurl="$(STAGING_DIR)/usr" \
  59. --with-ncurses \
  60. $(if $(CONFIG_IPV6),--enable,--disable)-ipv6
  61. ifeq ($(BUILD_VARIANT),rpc)
  62. CONFIGURE_ARGS += --with-xmlrpc-c
  63. endif
  64. TARGET_CXXFLAGS += -faligned-new
  65. TARGET_LDFLAGS += -lcrypto -lz
  66. define Package/rtorrent/install
  67. $(INSTALL_DIR) $(1)/usr/bin
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
  69. endef
  70. Package/rtorrent-rpc/install = $(Package/rtorrent/install)
  71. $(eval $(call BuildPackage,rtorrent))
  72. $(eval $(call BuildPackage,rtorrent-rpc))