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.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. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  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. ifeq ($(BUILD_VARIANT),rpc)
  60. CONFIGURE_ARGS += \
  61. --with-xmlrpc-c
  62. endif
  63. define Build/Configure
  64. ( cd $(PKG_BUILD_DIR); ./autogen.sh );
  65. $(call Build/Configure/Default)
  66. endef
  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))