mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
92 lines
2.3 KiB
Bash
92 lines
2.3 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="5"
|
|
SOURCE_URI="https://github.com/01org/tbb/archive/${portVersion/./_U}.tar.gz"
|
|
CHECKSUM_SHA256="b8dbab5aea2b70cf07844f86fa413e549e099aa3205b6a04059ca92ead93a372"
|
|
SOURCE_DIR="oneTBB-${portVersion/./_U}"
|
|
PATCHES="tbb-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="2"
|
|
|
|
PROVIDES="
|
|
tbb2018.5$secondaryArchSuffix = $portVersion
|
|
lib:libtbb$secondaryArchSuffix = $portVersion
|
|
lib:libtbbmalloc$secondaryArchSuffix = $portVersion
|
|
lib:libtbbmalloc_proxy$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
CONFLICTS="
|
|
tbb$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
tbb2018.5${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libtbb$secondaryArchSuffix = $portVersion
|
|
devel:libtbbmalloc$secondaryArchSuffix = $portVersion
|
|
devel:libtbbmalloc_proxy$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
tbb2018.5$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
defineDebugInfoPackage tbb2018.5$secondaryArchSuffix \
|
|
$libDir/libtbb.so.$libVersion \
|
|
$libDir/libtbbmalloc.so.$libVersion \
|
|
$libDir/libtbbmalloc_proxy.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
export CXXFLAGS="-Wno-changes-meaning"
|
|
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 $jobArgs test
|
|
}
|