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
  10. PKG_RELEASE:=$(PKG_SOURCE_VERSION)-1
  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:=6a3234eaa79f15857260df31f98711ef24266191
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  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. endef
  29. define Package/rtorrent/Default/description
  30. rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
  31. The client and library is written in C++ with emphasis on speed and
  32. efficiency, while delivering equivalent features to those found in GUI based
  33. clients in an ncurses client.
  34. endef
  35. define Package/rtorrent
  36. $(call Package/rtorrent/Default)
  37. VARIANT:=norpc
  38. endef
  39. define Package/rtorrent/description
  40. $(call Package/rtorrent/Default/description)
  41. This package is built without xmlrpc support
  42. endef
  43. define Package/rtorrent-rpc
  44. $(call Package/rtorrent/Default)
  45. VARIANT:=rpc
  46. DEPENDS+=+xmlrpc-c-server
  47. TITLE+=(with rpc support)
  48. endef
  49. define Package/rtorrent-rpc/description
  50. $(call Package/rtorrent/Default/description)
  51. This package is built with xmlrpc support
  52. endef
  53. TARGET_LDFLAGS += -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  54. CONFIGURE_ARGS+= \
  55. --enable-shared \
  56. --disable-static \
  57. --disable-debug
  58. ifeq ($(BUILD_VARIANT),rpc)
  59. CONFIGURE_ARGS += \
  60. --with-xmlrpc-c
  61. endif
  62. define Build/Configure
  63. ( cd $(PKG_BUILD_DIR); ./autogen.sh );
  64. $(call Build/Configure/Default)
  65. endef
  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))