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.

92 lines
2.3 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:=rtorrent
  9. PKG_VERSION:=0.9.4-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:=7343e33a6a0d279179b304a380bf011f1c8be64a
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  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:=http://libtorrent.rakshasa.no/
  29. DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +libpthread
  30. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  31. endef
  32. define Package/rtorrent/Default/description
  33. rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
  34. The client and library is written in C++ with emphasis on speed and
  35. efficiency, while delivering equivalent features to those found in GUI based
  36. clients in an ncurses client.
  37. endef
  38. define Package/rtorrent
  39. $(call Package/rtorrent/Default)
  40. VARIANT:=norpc
  41. endef
  42. define Package/rtorrent/description
  43. $(call Package/rtorrent/Default/description)
  44. This package is built without xmlrpc support
  45. endef
  46. define Package/rtorrent-rpc
  47. $(call Package/rtorrent/Default)
  48. VARIANT:=rpc
  49. DEPENDS+=+xmlrpc-c-server
  50. TITLE+=(with rpc support)
  51. endef
  52. define Package/rtorrent-rpc/description
  53. $(call Package/rtorrent/Default/description)
  54. This package is built with xmlrpc support
  55. endef
  56. TARGET_LDFLAGS += -lz -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  57. CONFIGURE_ARGS+= \
  58. --enable-shared \
  59. --disable-static \
  60. --disable-debug \
  61. $(call autoconf_bool,CONFIG_IPV6,ipv6)
  62. ifeq ($(BUILD_VARIANT),rpc)
  63. CONFIGURE_ARGS += \
  64. --with-xmlrpc-c
  65. endif
  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))