Files
haikuports/net-libs/libtorrent-rasterbar/libtorrent_rasterbar-1.0.6.recipe
2015-11-11 14:42:51 +03:00

84 lines
2.3 KiB
Bash

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/"
COPYRIGHT="2003-2015 Arvid Norberg"
LICENSE="BSD (2-clause)"
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"
PATCHES="libtorrent_rasterbar_x86-1.0.6.patchset"
REVISION="2"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
PROVIDES="
libtorrent_rasterbar${secondaryArchSuffix} = $portVersion
lib:libtorrent_rasterbar$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_chrono$secondaryArchSuffix
lib:libboost_date_time$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libboost_thread$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
"
PROVIDES_devel="
libtorrent_rasterbar${secondaryArchSuffix}_devel = $portVersion
devel:libtorrent_rasterbar$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libtorrent_rasterbar$secondaryArchSuffix == $portVersion base
"
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
"
BUILD()
{
# this CMake setup does not use GNUInstallDirs
cmake -DCMAKE_INSTALL_PREFIX=$prefix
make $jobArgs
}
INSTALL()
{
mkdir -p $includeDir $libDir
make install
mv $prefix/include/libtorrent $includeDir
mv $prefix/lib/*.so* $libDir
mv $prefix/lib/pkgconfig $libDir
rm -r $prefix/include
strip $libDir/libtorrent-rasterbar.so.8
prepareInstalledDevelLib libtorrent-rasterbar
fixPkgconfig
packageEntries devel \
$developDir
}