# Maintainer: # Contributor: Stéphane Gaudreault # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Denis Martinez # ALARM: Kevin Mihelich # Romain Reignier # - add specfic CXXFLAGS for armv7h and aarch64 buildarch=12 pkgname=intel-tbb pkgver=2019 _file=${_tag}_src.tgz pkgrel=1 pkgdesc='High level abstract threading library' arch=(x86_64) url='http://www.threadingbuildingblocks.org/' license=(GPL) depends=(gcc-libs) source=($pkgname-$pkgver.tar.gz::https://github.com/01org/tbb/archive/$pkgver.tar.gz) sha256sums=('4d149895826cea785cd3b9a14f4aa743b6ef0df520eca7ee27d438fdc3d73399') build() { cd tbb-$pkgver [[ $CARCH == "armv7h" ]] && CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=0" [[ $CARCH == "aarch64" ]] && CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=1" make } package() { cd tbb-$pkgver 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 }