Files
haikuports/dev-cpp/tbb/tbb-2018.3.recipe
miqlas 39c9f535c8 TBB : bunp (#2408)
* TBB : bunp

* Cleanup, thanks fbrosson!
2018-04-09 18:11:29 +02:00

84 lines
2.1 KiB
Bash

SUMMARY="High level abstract threading library"
DESCRIPTION="Threading Building Blocks (TBB) is a C++ template library \
developed by Intel for parallel programming on multi-core processors. Using \
TBB, a computation is broken down into tasks that can run in parallel. The \
library manages and schedules threads to execute these tasks."
HOMEPAGE="https://www.threadingbuildingblocks.org/"
COPYRIGHT="2005-2018 Intel Corporation"
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://github.com/01org/tbb/archive/${portVersion/./_U}.tar.gz"
CHECKSUM_SHA256="23793c8645480148e9559df96b386b780f92194c80120acce79fcdaae0d81f45"
SOURCE_DIR="tbb-${portVersion/./_U}"
PATCHES="tbb-${portVersion/./_U}.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
tbb$secondaryArchSuffix = $portVersion
lib:libtbb$secondaryArchSuffix = $portVersion
lib:libtbbmalloc$secondaryArchSuffix = $portVersion
lib:libtbbmalloc_proxy$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
tbb${secondaryArchSuffix}_devel = $portVersion
devel:libtbb$secondaryArchSuffix = $portVersion
devel:libtbbmalloc$secondaryArchSuffix = $portVersion
devel:libtbbmalloc_proxy$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
tbb$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:find
cmd:gcc$secondaryArchSuffix
"
defineDebugInfoPackage tbb$secondaryArchSuffix \
$libDir/libtbb.so.2 \
$libDir/libtbbmalloc.so.2 \
$libDir/libtbbmalloc_proxy.so.2
BUILD()
{
make $jobArgs
}
INSTALL()
{
mkdir -p $libDir $includeDir
cd build
LIB_LOCATION=`find . -maxdepth 1 -type d |grep release`
cd $LIB_LOCATION
cp libtbb.so.2 libtbbmalloc.so.2 libtbbmalloc_proxy.so.2 $libDir
ln -s $libDir/libtbb.so.2 $libDir/libtbb.so
ln -s $libDir/libtbbmalloc.so.2 $libDir/libtbbmalloc.so
ln -s $libDir/libtbbmalloc_proxy.so.2 $libDir/libtbbmalloc_proxy.so
cd ../..
cp -R include/serial include/tbb $includeDir
prepareInstalledDevelLibs libtbb libtbbmalloc libtbbmalloc_proxy
# devel package
packageEntries devel $developDir
}
TEST()
{
make test
}