1SUMMARY="BitTorrent Client using libtorrent"
2DESCRIPTION="rTorrent is a text-based ncurses BitTorrent client written in C++, \
3based on the libTorrent libraries for Unix, whose author's goal is 'a \
4focus on high performance and good code'."
5HOMEPAGE="http://libtorrent.rakshasa.no/"
6COPYRIGHT="2005-2019 Jari Sundell"
7LICENSE="GNU LGPL v2"
8REVISION="1"
9SOURCE_URI="https://github.com/rakshasa/rtorrent/releases/download/v$portVersion/rtorrent-$portVersion.tar.gz"
10CHECKSUM_SHA256="9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af"
11PATCHES="rtorrent-$portVersion.patchset"
12
13ARCHITECTURES="all ?x86_gcc2"
14SECONDARY_ARCHITECTURES="x86"
15
16PROVIDES="
17	rtorrent$secondaryArchSuffix = $portVersion
18	cmd:rtorrent$secondaryArchSuffix = $portVersion
19	"
20REQUIRES="
21	haiku$secondaryArchSuffix
22	lib:libcppunit$secondaryArchSuffix
23	lib:libcrypto$secondaryArchSuffix
24	lib:libcurl$secondaryArchSuffix
25	lib:libgettextpo$secondaryArchSuffix
26	lib:libncursesw$secondaryArchSuffix
27	lib:libsigc_2.0$secondaryArchSuffix
28	lib:libssl$secondaryArchSuffix
29	lib:libtorrent$secondaryArchSuffix
30	lib:libz$secondaryArchSuffix
31	"
32
33BUILD_REQUIRES="
34	haiku${secondaryArchSuffix}_devel
35	devel:libcppunit$secondaryArchSuffix
36	devel:libcurl$secondaryArchSuffix
37	devel:libgettextlib$secondaryArchSuffix
38	devel:libncursesw${secondaryArchSuffix}
39	devel:libsigc_2.0$secondaryArchSuffix
40	devel:libtorrent$secondaryArchSuffix
41	"
42BUILD_PREREQUIRES="
43	cmd:autoreconf
44	cmd:g++$secondaryArchSuffix
45	cmd:gettext$secondaryArchSuffix
46	cmd:ld$secondaryArchSuffix
47	cmd:libtoolize$secondaryArchSuffix
48	cmd:make
49	cmd:pkg_config$secondaryArchSuffix
50	cmd:sed
51	cmd:strip$secondaryArchSuffix
52	"
53
54BUILD()
55{
56	autoreconf -vfi
57	export CFLAGS=-D_BSD_SOURCE
58	export LDFLAGS=-lnetwork
59	runConfigure ./configure
60	make $jobArgs
61}
62
63INSTALL()
64{
65	make install
66	strip $binDir/*
67}
68
69TEST()
70{
71	make check
72}
73