RTORRENT_SITE=http://libtorrent.rakshasa.no/downloads
RTORRENT_VERSION ?= 0.8.6
RTORRENT_IPK_VERSION ?= 1
RTORRENT_SVN=svn://rakshasa.no/libtorrent/trunk/rtorrent
#RTORRENT_SVN_REV=1037
ifdef RTORRENT_SVN_REV
RTORRENT_SOURCE=rtorrent-svn-$(RTORRENT_SVN_REV).tar.gz
else
RTORRENT_SOURCE=rtorrent-$(RTORRENT_VERSION).tar.gz
endif
RTORRENT_DIR=rtorrent-$(RTORRENT_VERSION)
RTORRENT_UNZIP=zcat
RTORRENT_MAINTAINER=NSLU2 Linux <nslu2-linux@yahoogroups.com>
RTORRENT_DESCRIPTION=rtorrent is a BitTorrent client for ncurses, using the libtorrent library.
RTORRENT_SECTION=net
RTORRENT_PRIORITY=optional
RTORRENT_NCURSES=$(strip \
$(if $(filter ds101g syno-e500, $(OPTWARE_TARGET)), ncurses, \
$(NCURSES_FOR_OPTWARE_TARGET)))
RTORRENT_DEPENDS=libtorrent, $(RTORRENT_NCURSES), libcurl, xmlrpc-c, zlib
RTORRENT_SUGGESTS=dtach, screen, adduser
RTORRENT_CONFLICTS=
#
# RTORRENT_CONFFILES should be a list of user-editable files
RTORRENT_CONFFILES=/opt/etc/rtorrent.conf
#
# RTORRENT_PATCHES should list any patches, in the the order in
# which they should be applied to the source code.
#
RTORRENT_PATCHES=$(RTORRENT_SOURCE_DIR)/uint32_t.patch
#
# If the compilation of the package requires additional
# compilation or linking flags, then list them here.
#
RTORRENT_CPPFLAGS=-O3 -I$(STAGING_INCLUDE_DIR)/$(RTORRENT_NCURSES)
RTORRENT_LDFLAGS=
RTORRENT_CONFIGURE=
ifeq ($(LIBC_STYLE), uclibc)
ifdef TARGET_GXX
RTORRENT_CONFIGURE += CXX=$(TARGET_GXX)
endif
endif
ifeq (ncurses, $(RTORRENT_NCURSES))
RTORRENT_CONFIGURE += ac_cv_search_add_wch=no
RTORRENT_CONFIGURE_OPTS = --without-ncursesw
endif
RTORRENT_CONFIGURE_OPTS += --with-xmlrpc-c
#
# RTORRENT_BUILD_DIR is the directory in which the build is done.
# RTORRENT_SOURCE_DIR is the directory which holds all the
# patches and ipkg control files.
# RTORRENT_IPK_DIR is the directory in which the ipk is built.
# RTORRENT_IPK is the name of the resulting ipk files.
#
# You should not change any of these variables.
#
RTORRENT_BUILD_DIR=$(BUILD_DIR)/rtorrent
RTORRENT_SOURCE_DIR=$(SOURCE_DIR)/rtorrent
RTORRENT_IPK_DIR=$(BUILD_DIR)/rtorrent-$(RTORRENT_VERSION)-ipk
ifdef RTORRENT_SVN_REV
RTORRENT_IPK=$(BUILD_DIR)/rtorrent_$(RTORRENT_VERSION)+r$(RTORRENT_SVN_REV)-$(RTORRENT_IPK_VERSION)_$(TARGET_ARCH).ipk
else
RTORRENT_IPK=$(BUILD_DIR)/rtorrent_$(RTORRENT_VERSION)-$(RTORRENT_IPK_VERSION)_$(TARGET_ARCH).ipk
endif