Ingen beskrivning

Makefile 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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:=2
  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_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. ifeq ($(BUILD_VARIANT),rpc)
  62. CONFIGURE_ARGS += \
  63. --with-xmlrpc-c
  64. endif
  65. define Build/Configure
  66. ( cd $(PKG_BUILD_DIR); ./autogen.sh );
  67. $(call Build/Configure/Default)
  68. endef
  69. define Package/rtorrent/install
  70. $(INSTALL_DIR) $(1)/usr/bin
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
  72. endef
  73. Package/rtorrent-rpc/install = $(Package/rtorrent/install)
  74. $(eval $(call BuildPackage,rtorrent))
  75. $(eval $(call BuildPackage,rtorrent-rpc))