1SUMMARY="BitTorrent library written in C++ for *nix" 2DESCRIPTION="libtorrent is a C++ implementation of the BitTorrent protocol \ 3with the goals of being efficient and easy to use." 4HOMEPAGE="http://libtorrent.rakshasa.no/" 5COPYRIGHT="2005-2019 Jari Sundell" 6LICENSE="GNU LGPL v2" 7REVISION="1" 8SOURCE_URI="https://github.com/rakshasa/rtorrent/releases/download/v0.9.8/libtorrent-$portVersion.tar.gz" 9CHECKSUM_SHA256="ed115a28f4ae8cfcd33b94a597c076ca74fd549867a26e4fac9505c27288e983" 10PATCHES="libtorrent-$portVersion.patchset" 11 12ARCHITECTURES="all ?x86_gcc2" 13SECONDARY_ARCHITECTURES="x86" 14 15PROVIDES=" 16 libtorrent$secondaryArchSuffix = $portVersion 17 lib:libtorrent$secondaryArchSuffix = $portVersion compat >= 0.13 18 " 19REQUIRES=" 20 haiku$secondaryArchSuffix 21 cmd:gettext$secondaryArchSuffix 22 lib:libcppunit$secondaryArchSuffix 23 lib:libcrypto$secondaryArchSuffix 24 lib:libz$secondaryArchSuffix 25 " 26 27PROVIDES_devel=" 28 libtorrent${secondaryArchSuffix}_devel = $portVersion 29 devel:libtorrent$secondaryArchSuffix = $portVersion compat >= 0.13 30 " 31REQUIRES_devel=" 32 haiku${secondaryArchSuffix}_devel 33 libtorrent$secondaryArchSuffix == $portVersion base 34 cmd:gettext$secondaryArchSuffix 35 cmd:pkg_config$secondaryArchSuffix 36 devel:libcppunit$secondaryArchSuffix 37 devel:libz$secondaryArchSuffix 38 " 39 40BUILD_REQUIRES=" 41 haiku${secondaryArchSuffix}_devel 42 devel:libcppunit$secondaryArchSuffix 43 devel:libcrypto$secondaryArchSuffix 44 devel:libgettextlib$secondaryArchSuffix 45 devel:libz$secondaryArchSuffix 46 " 47BUILD_PREREQUIRES=" 48 cmd:autoreconf 49 cmd:g++$secondaryArchSuffix 50 cmd:ld$secondaryArchSuffix 51 cmd:libtoolize$secondaryArchSuffix 52 cmd:make 53 cmd:pkg_config$secondaryArchSuffix 54 cmd:strip$secondaryArchSuffix 55 " 56 57BUILD() 58{ 59 autoreconf -vfi 60 export CFLAGS=-D_BSD_SOURCE 61 runConfigure ./configure --disable-mincore 62 make $jobArgs 63} 64 65INSTALL() 66{ 67 make install 68 rm -f $libDir/libtorrent.la 69 70 strip $libDir/*.so 71 72 prepareInstalledDevelLibs libtorrent 73 fixPkgconfig 74 75 packageEntries devel \ 76 $developDir 77} 78 79TEST() 80{ 81 make check 82} 83