PKGBUILDs/extra/intel-tbb/PKGBUILD

42 lines
1.4 KiB
Bash
Raw Normal View History

2018-12-30 14:19:24 +00:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
2017-03-15 12:39:23 +00:00
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
2015-04-26 23:15:07 +00:00
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Denis Martinez <deuns.martinez AT gmail.com>
2019-10-16 00:23:09 +00:00
# Contributor: Bogdan Burlacu <bogdan.burlacu AT pm.me>
2015-04-26 23:15:07 +00:00
2015-10-27 04:09:40 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# Romain Reignier <rom.reignier AT gmail.com>
2018-09-22 00:36:44 +00:00
# - add specfic CXXFLAGS for ARM
2015-04-26 23:15:07 +00:00
pkgname=intel-tbb
2019-10-16 00:23:09 +00:00
pkgver=2019.9
2018-12-30 14:19:24 +00:00
_tagname=${pkgver/./_U}
2019-10-26 18:33:45 +00:00
pkgrel=2
2015-04-26 23:15:07 +00:00
pkgdesc='High level abstract threading library'
2017-12-02 21:06:56 +00:00
arch=(x86_64)
2019-05-25 19:19:22 +00:00
url='https://www.threadingbuildingblocks.org/'
2016-03-03 19:53:44 +00:00
license=(GPL)
depends=(gcc-libs)
2019-10-16 00:23:09 +00:00
makedepends=(cmake inetutils)
2018-12-30 14:19:24 +00:00
source=($pkgname-$pkgver.tar.gz::https://github.com/01org/tbb/archive/$_tagname.tar.gz)
2019-10-16 00:23:09 +00:00
sha256sums=('15652f5328cf00c576f065e5cd3eaf3317422fe82afb67a9bcec0dc065bd2abe')
2015-04-26 23:15:07 +00:00
build() {
2018-12-30 14:19:24 +00:00
cd tbb-$_tagname
2018-09-22 00:36:44 +00:00
[[ $CARCH != "aarch64" ]] && CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=0"
2015-10-27 04:09:40 +00:00
[[ $CARCH == "aarch64" ]] && CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=1"
2015-04-26 23:15:07 +00:00
make
}
package() {
2018-12-30 14:19:24 +00:00
cd tbb-$_tagname
2015-10-01 23:34:37 +00:00
install -d "$pkgdir"/usr/lib
install -m755 build/linux_*/*.so* "$pkgdir"/usr/lib
install -d "$pkgdir"/usr/include
cp -a include/tbb "$pkgdir"/usr/include
2019-10-16 00:23:09 +00:00
cmake \
-DINSTALL_DIR="$pkgdir"/usr/lib/cmake/TBB \
-DSYSTEM_NAME=Linux -DTBB_VERSION_FILE="$pkgdir"/usr/include/tbb/tbb_stddef.h \
-P cmake/tbb_config_installer.cmake
2015-04-26 23:15:07 +00:00
}