2014-06-16 09:41:05 +00:00
|
|
|
#
|
2015-11-06 12:02:55 +00:00
|
|
|
# Copyright (C) 2007-2015 OpenWrt.org
|
2014-06-16 09:41:05 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rtorrent
|
2019-07-21 18:35:46 +00:00
|
|
|
PKG_VERSION:=0.9.8
|
2019-09-09 22:16:08 +00:00
|
|
|
PKG_RELEASE:=2
|
2014-06-16 09:41:05 +00:00
|
|
|
|
2018-07-22 16:19:07 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2019-07-21 18:35:46 +00:00
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/rakshasa/rtorrent/tar.gz/v$(PKG_VERSION)?
|
|
|
|
PKG_HASH:=bc889ce1dde475ec56aa72ae996912ff58723226a4f4256fef4f1f8636d991d4
|
2014-06-16 09:41:05 +00:00
|
|
|
|
2019-07-01 23:57:31 +00:00
|
|
|
PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
2014-11-25 07:42:42 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-09-29 16:38:06 +00:00
|
|
|
|
2014-06-16 09:41:05 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
2019-07-01 23:57:31 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2019-09-09 22:16:08 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libtorrent
|
2014-06-16 09:41:05 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/rtorrent/Default
|
|
|
|
SUBMENU:=BitTorrent
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=BitTorrent client for ncurses
|
2019-07-01 23:57:31 +00:00
|
|
|
URL:=https://github.com/rakshasa/rtorrent
|
2019-09-09 22:16:08 +00:00
|
|
|
DEPENDS:=+libcurl +libncurses +libpthread +libopenssl +libstdcpp +zlib
|
2014-06-16 09:41:05 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rtorrent/Default/description
|
|
|
|
rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
|
|
|
|
The client and library is written in C++ with emphasis on speed and
|
|
|
|
efficiency, while delivering equivalent features to those found in GUI based
|
|
|
|
clients in an ncurses client.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rtorrent
|
|
|
|
$(call Package/rtorrent/Default)
|
|
|
|
VARIANT:=norpc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rtorrent/description
|
|
|
|
$(call Package/rtorrent/Default/description)
|
|
|
|
This package is built without xmlrpc support
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rtorrent-rpc
|
|
|
|
$(call Package/rtorrent/Default)
|
|
|
|
VARIANT:=rpc
|
|
|
|
DEPENDS+=+xmlrpc-c-server
|
|
|
|
TITLE+=(with rpc support)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rtorrent-rpc/description
|
|
|
|
$(call Package/rtorrent/Default/description)
|
|
|
|
This package is built with xmlrpc support
|
|
|
|
endef
|
|
|
|
|
2019-07-01 23:57:31 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2019-09-09 22:16:08 +00:00
|
|
|
--enable-static \
|
|
|
|
--disable-shared \
|
2015-04-23 13:52:50 +00:00
|
|
|
--disable-debug \
|
2019-07-01 23:57:31 +00:00
|
|
|
--with-libcurl="$(STAGING_DIR)/usr" \
|
|
|
|
--with-ncurses \
|
|
|
|
$(if $(CONFIG_IPV6),--enable,--disable)-ipv6
|
2014-06-16 09:41:05 +00:00
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),rpc)
|
2019-07-01 23:57:31 +00:00
|
|
|
CONFIGURE_ARGS += --with-xmlrpc-c
|
2014-06-16 09:41:05 +00:00
|
|
|
endif
|
|
|
|
|
2019-07-21 18:35:46 +00:00
|
|
|
TARGET_CXXFLAGS += -faligned-new
|
2019-09-09 22:16:08 +00:00
|
|
|
TARGET_LDFLAGS += -lcrypto -lz
|
2019-07-21 18:35:46 +00:00
|
|
|
|
2014-06-16 09:41:05 +00:00
|
|
|
define Package/rtorrent/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
Package/rtorrent-rpc/install = $(Package/rtorrent/install)
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rtorrent))
|
2014-09-29 16:38:06 +00:00
|
|
|
$(eval $(call BuildPackage,rtorrent-rpc))
|