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.2 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.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/rakshasa/rtorrent/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=5d9842fe48c9582fbea2c7bf9f51412c1ccbba07d059b257039ad53b863fe8bb
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/rtorrent/Default
  22. SUBMENU:=BitTorrent
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=BitTorrent client for ncurses
  26. URL:=http://libtorrent.rakshasa.no/
  27. DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +libpthread
  28. MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  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. TARGET_LDFLAGS += -lz -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  55. CONFIGURE_ARGS+= \
  56. --enable-shared \
  57. --disable-static \
  58. --disable-debug \
  59. --disable-ipv6
  60. ifeq ($(BUILD_VARIANT),rpc)
  61. CONFIGURE_ARGS += \
  62. --with-xmlrpc-c
  63. endif
  64. define Package/rtorrent/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
  67. endef
  68. Package/rtorrent-rpc/install = $(Package/rtorrent/install)
  69. $(eval $(call BuildPackage,rtorrent))
  70. $(eval $(call BuildPackage,rtorrent-rpc))