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.

93 lines
2.4 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.6-git-1
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/rakshasa/rtorrent.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=62cb5a4605c0664bc522e0e0da9c72f09cf643a9
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_MIRROR_HASH:=3c6834b12ebfa8d62618f6e9dbc06dfa593861fa0b435d2fd1bddb0e886fc77b
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_FIXUP:=autoreconf
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_INSTALL:=1
  22. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/rtorrent/Default
  25. SUBMENU:=BitTorrent
  26. SECTION:=net
  27. CATEGORY:=Network
  28. TITLE:=BitTorrent client for ncurses
  29. URL:=http://libtorrent.rakshasa.no/
  30. DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +libpthread
  31. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  32. endef
  33. define Package/rtorrent/Default/description
  34. rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
  35. The client and library is written in C++ with emphasis on speed and
  36. efficiency, while delivering equivalent features to those found in GUI based
  37. clients in an ncurses client.
  38. endef
  39. define Package/rtorrent
  40. $(call Package/rtorrent/Default)
  41. VARIANT:=norpc
  42. endef
  43. define Package/rtorrent/description
  44. $(call Package/rtorrent/Default/description)
  45. This package is built without xmlrpc support
  46. endef
  47. define Package/rtorrent-rpc
  48. $(call Package/rtorrent/Default)
  49. VARIANT:=rpc
  50. DEPENDS+=+xmlrpc-c-server
  51. TITLE+=(with rpc support)
  52. endef
  53. define Package/rtorrent-rpc/description
  54. $(call Package/rtorrent/Default/description)
  55. This package is built with xmlrpc support
  56. endef
  57. TARGET_LDFLAGS += -lz -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  58. CONFIGURE_ARGS+= \
  59. --enable-shared \
  60. --disable-static \
  61. --disable-debug \
  62. --disable-ipv6
  63. ifeq ($(BUILD_VARIANT),rpc)
  64. CONFIGURE_ARGS += \
  65. --with-xmlrpc-c
  66. endif
  67. define Package/rtorrent/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
  70. endef
  71. Package/rtorrent-rpc/install = $(Package/rtorrent/install)
  72. $(eval $(call BuildPackage,rtorrent))
  73. $(eval $(call BuildPackage,rtorrent-rpc))