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:=1
  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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_REMOVE_FILES:=autogen.sh
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/rtorrent/Default
  24. SUBMENU:=BitTorrent
  25. SECTION:=net
  26. CATEGORY:=Network
  27. TITLE:=BitTorrent client for ncurses
  28. URL:=https://github.com/rakshasa/rtorrent
  29. DEPENDS:=+libcurl +libtorrent +libncurses +libpthread
  30. endef
  31. define Package/rtorrent/Default/description
  32. rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
  33. The client and library is written in C++ with emphasis on speed and
  34. efficiency, while delivering equivalent features to those found in GUI based
  35. clients in an ncurses client.
  36. endef
  37. define Package/rtorrent
  38. $(call Package/rtorrent/Default)
  39. VARIANT:=norpc
  40. endef
  41. define Package/rtorrent/description
  42. $(call Package/rtorrent/Default/description)
  43. This package is built without xmlrpc support
  44. endef
  45. define Package/rtorrent-rpc
  46. $(call Package/rtorrent/Default)
  47. VARIANT:=rpc
  48. DEPENDS+=+xmlrpc-c-server
  49. TITLE+=(with rpc support)
  50. endef
  51. define Package/rtorrent-rpc/description
  52. $(call Package/rtorrent/Default/description)
  53. This package is built with xmlrpc support
  54. endef
  55. CONFIGURE_ARGS += \
  56. --enable-shared \
  57. --disable-static \
  58. --disable-debug \
  59. --with-libcurl="$(STAGING_DIR)/usr" \
  60. --with-ncurses \
  61. $(if $(CONFIG_IPV6),--enable,--disable)-ipv6
  62. ifeq ($(BUILD_VARIANT),rpc)
  63. CONFIGURE_ARGS += --with-xmlrpc-c
  64. endif
  65. TARGET_CXXFLAGS += -faligned-new
  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))