2022-01-07 16:26:02 +01:00
|
|
|
# Description: High level abstract threading library
|
|
|
|
# URL: https://www.threadingbuildingblocks.org/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-01-17 17:31:08 +01:00
|
|
|
# Depends on: cmake hwloc ninja swig
|
2022-01-07 16:26:02 +01:00
|
|
|
|
|
|
|
name=onetbb
|
|
|
|
version=2021.5.0
|
2022-06-25 15:56:33 +02:00
|
|
|
release=3
|
|
|
|
source=(https://github.com/oneapi-src/oneTBB/archive/v$version/$name-$version.tar.gz
|
|
|
|
824.patch)
|
2022-01-07 16:26:02 +01:00
|
|
|
|
|
|
|
build() {
|
2022-06-25 15:56:33 +02:00
|
|
|
patch -Np1 -d oneTBB-$version -i $SRC/824.patch
|
|
|
|
|
2022-01-07 16:26:02 +01:00
|
|
|
cmake -S oneTBB-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2022-06-25 15:56:33 +02:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -Wno-error=address -Wno-error=uninitialized" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -Wno-error=address -Wno-error=uninitialized" \
|
2022-01-17 17:31:08 +01:00
|
|
|
-D TBB4PY_BUILD=ON \
|
2022-06-25 15:56:33 +02:00
|
|
|
-D TBB_STRICT=OFF \
|
2022-01-07 16:26:02 +01:00
|
|
|
-Wno-dev
|
2022-01-17 17:31:08 +01:00
|
|
|
cmake --build build --target all python_build
|
2022-01-07 16:26:02 +01:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2022-01-17 17:31:08 +01:00
|
|
|
|
2022-01-07 16:26:02 +01:00
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
}
|