blob: 5543ccdf61d987cd53ff30c37eae9f908ecc8352 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Template file for 'tbb'
pkgname=tbb
version=2022.1.0
revision=1
build_style=cmake
configure_args="-DTBB_STRICT=OFF -DTBB_TEST=OFF"
makedepends="libgomp-devel libhwloc-devel"
short_desc="Intel Threading Building Blocks"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="Apache-2.0"
homepage="https://oneapi-src.github.io/oneTBB/"
changelog="https://raw.githubusercontent.com/oneapi-src/oneTBB/v${version}/RELEASE_NOTES.md"
distfiles="https://github.com/oneapi-src/oneTBB/archive/refs/tags/v${version}.tar.gz"
checksum=ed067603ece0dc832d2881ba5c516625ac2522c665d95f767ef6304e34f961b5
make_check=no # checks fail upstream on i686
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*)
hostmakedepends+=" python3-setuptools python3-devel python3-distutils-extra swig"
makedepends+=" python3-devel"
configure_args+=" -DTBB4PY_BUILD=ON"
;;
esac
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" libucontext-devel"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-lucontext"
fi
post_install() {
# The Python package is installed as an egg, which is deprecated
# and isn't added to the Python path, so just unpack it.
local f sitelib
sitelib="${DESTDIR}/${py3_sitelib}"
for f in "${sitelib}"/TBB*-"py${py3_ver}"*.egg/EGG-INFO; do
[ -d "${f}" ] || continue
mv "${f}" "${f%-"py${py3_ver}"*.egg/EGG-INFO}-py${py3_ver}.egg-info"
done
for f in "${sitelib}"/TBB*.egg/*; do
[ -e "${f}" ] || continue
mv "${f}" "${DESTDIR}/${py3_sitelib}"
done
# Clean up the egg directory to confirm it was successfully unpacked
for f in "${sitelib}"/*.egg; do
[ -e "${f}" ] || continue
rmdir "${f}"
done
# Make sure the post-install hook finds this shlib for renaming
for f in "${sitelib}"/tbb/_api*.so; do
[ -e "${f}" ] || continue
chmod 0755 "${f}"
done
}
tbb-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}
|