Files
haikuports/net-p2p/rtorrent/rtorrent-0.9.7.recipe
2019-05-24 16:14:07 -04:00

73 lines
1.8 KiB
Bash

SUMMARY="BitTorrent Client using libtorrent"
DESCRIPTION="rTorrent is a text-based ncurses BitTorrent client written in C++, \
based on the libTorrent libraries for Unix, whose author's goal is 'a \
focus on high performance and good code'."
HOMEPAGE="http://libtorrent.rakshasa.no/"
COPYRIGHT="2005-2018 Jari Sundell"
LICENSE="GNU LGPL v2"
REVISION="2"
SOURCE_URI="https://github.com/rakshasa/rtorrent/releases/download/v$portVersion/rtorrent-$portVersion.tar.gz"
CHECKSUM_SHA256="5d9842fe48c9582fbea2c7bf9f51412c1ccbba07d059b257039ad53b863fe8bb"
PATCHES="rtorrent-$portVersion.patchset"
ARCHITECTURES="x86 ?x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
rtorrent$secondaryArchSuffix = $portVersion
cmd:rtorrent$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcppunit$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libgettextpo$secondaryArchSuffix
lib:libncursesw$secondaryArchSuffix
lib:libsigc_2.0$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libtorrent$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcppunit$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libgettextlib$secondaryArchSuffix
devel:libncursesw${secondaryArchSuffix}
devel:libsigc_2.0$secondaryArchSuffix
devel:libtorrent$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:g++$secondaryArchSuffix
cmd:gettext$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:sed
cmd:strip$secondaryArchSuffix
"
BUILD()
{
autoreconf -vfi
export CFLAGS=-D_BSD_SOURCE
export LDFLAGS=-lnetwork
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
strip $binDir/*
}
TEST()
{
make check
}