From 12ccdaee1454c7b5f84598536af2a5af57abb9f6 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Thu, 13 Aug 2015 02:04:42 +0300 Subject: [PATCH] libtorrent_rasterbar: add recipe for version 1.0.6 --- .../libtorrent_rasterbar-1.0.6.recipe | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 net-libs/libtorrent-rasterbar/libtorrent_rasterbar-1.0.6.recipe diff --git a/net-libs/libtorrent-rasterbar/libtorrent_rasterbar-1.0.6.recipe b/net-libs/libtorrent-rasterbar/libtorrent_rasterbar-1.0.6.recipe new file mode 100644 index 000000000..130306a32 --- /dev/null +++ b/net-libs/libtorrent-rasterbar/libtorrent_rasterbar-1.0.6.recipe @@ -0,0 +1,94 @@ +SUMMARY="An efficient feature complete C++ bittorrent implementation" +DESCRIPTION="libtorrent is a feature complete C++ bittorrent implementation \ +focusing on efficiency and scalability. It runs on embedded devices as well \ +as desktops. It boasts a well documented library interface that is easy to \ +use. It comes with a simple bittorrent client demonstrating the use of the \ +library. + +The main goals of libtorrent are: + + * to be cpu efficient + * to be memory efficient + * to be very easy to use" +HOMEPAGE="http://www.libtorrent.org/" +SOURCE_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_6/libtorrent-rasterbar-$portVersion.tar.gz" +SOURCE_DIR="libtorrent-rasterbar-$portVersion" +CHECKSUM_SHA256="c97de804b77f44591801631aca3869567671df2d3e2afe7f5453d8db2478fd61" +REVISION="1" + +LICENSE="BSD (2-clause)" +COPYRIGHT="2003-2015 Arvid Norberg" + +ARCHITECTURES="x86 x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libtorrent_rasterbar${secondaryArchSuffix} = $portVersion + lib:libtorrent_rasterbar$secondaryArchSuffix + " + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libboost_chrono$secondaryArchSuffix + lib:libboost_date_time$secondaryArchSuffix + lib:libboost_system$secondaryArchSuffix + lib:libboost_thread$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libboost_system$secondaryArchSuffix + devel:libssl$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:pkg_config$secondaryArchSuffix + cmd:make + cmd:cmake + " + +PATCHES="libtorrent_rasterbar_x86-1.0.6.patchset" + +BUILD() +{ + cmake . + make $jobArgs +} + +INSTALL() +{ + mkdir -p $includeDir $libDir + make install + + # this CMake setup does not use GNUInstallDirs + mv $prefix/include/libtorrent $includeDir + mv $prefix/lib/*.so* $libDir + mv $prefix/lib/pkgconfig $libDir + rm -r $prefix/include + + # prepare develop/lib + prepareInstalledDevelLib libtorrent-rasterbar + fixPkgconfig + + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libtorrent_rasterbar${secondaryArchSuffix}_devel = $portVersion + devel:libtorrent_rasterbar$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + libtorrent_rasterbar$secondaryArchSuffix == $portVersion base + "