From 477be3c194e26ef778b9634f7c60d1ab3f0c082e Mon Sep 17 00:00:00 2001 From: miqlas Date: Fri, 22 Jul 2016 18:49:30 +0200 Subject: [PATCH] libtorrent update (#681) Fixed recipe --- net-libs/libtorrent/libtorrent-0.13.6.recipe | 79 ++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 net-libs/libtorrent/libtorrent-0.13.6.recipe diff --git a/net-libs/libtorrent/libtorrent-0.13.6.recipe b/net-libs/libtorrent/libtorrent-0.13.6.recipe new file mode 100644 index 000000000..5fc2b0e66 --- /dev/null +++ b/net-libs/libtorrent/libtorrent-0.13.6.recipe @@ -0,0 +1,79 @@ +SUMMARY="BitTorrent library written in C++ for *nix" +DESCRIPTION="libtorrent is a C++ implementation of the BitTorrent protocol \ +with the goals of being efficient and easy to use." +HOMEPAGE="http://libtorrent.rakshasa.no/" +COPYRIGHT="2005-2016 Jari Sundell" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/rakshasa/libtorrent/archive/$portVersion.zip" +CHECKSUM_SHA256="6841043785e0800cc6a7d8f9a1d213495946e3103c2557aaba63fcd78d7b2597" + +ARCHITECTURES="x86 ?x86_gcc2 ?x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libtorrent$secondaryArchSuffix = $portVersion + lib:libtorrent$secondaryArchSuffix = $portVersion compat >= 0.13 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libz$secondaryArchSuffix + lib:libcrypto$secondaryArchSuffix + cmd:gettext$secondaryArchSuffix + " + +PROVIDES_devel=" + libtorrent${secondaryArchSuffix}_devel = $portVersion + devel:libtorrent$secondaryArchSuffix = $portVersion compat >= 0.13 + " +REQUIRES_devel=" + haiku${secondaryArchSuffix}_devel + libtorrent$secondaryArchSuffix == $portVersion base + cmd:pkg_config$secondaryArchSuffix_devel + cmd:gettext$secondaryArchSuffix_devel + devel:libcppunit$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcppunit$secondaryArchSuffix + devel:libcrypto$secondaryArchSuffix + devel:libgettextlib$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:libtoolize$secondaryArchSuffix + cmd:autoreconf + cmd:g++$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:strip$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -vfi + export CFLAGS=-D_BSD_SOURCE + runConfigure ./configure --disable-mincore + make $jobArgs +} + +INSTALL() +{ + make install + + strip $libDir/* + + prepareInstalledDevelLibs libtorrent + fixPkgconfig + + packageEntries devel \ + $developDir +} + +TEST() +{ + make check +}