mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
libtorrent_rasterbar: add recipe for version 1.0.6
This commit is contained in:
@@ -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
|
||||
"
|
||||
Reference in New Issue
Block a user