mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# $Id$
|
|
# Maintainer:
|
|
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
|
|
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
|
# Contributor: Denis Martinez <deuns.martinez AT gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# Romain Reignier <rom.reignier AT gmail.com>
|
|
# - add specfic CXXFLAGS for armv7h and aarch64
|
|
|
|
buildarch=12
|
|
|
|
pkgname=intel-tbb
|
|
pkgver=2017_20170604
|
|
_pkgver=2017_U7
|
|
_file=${_tag}_src.tgz
|
|
pkgrel=1
|
|
pkgdesc='High level abstract threading library'
|
|
arch=(i686 x86_64)
|
|
url='http://www.threadingbuildingblocks.org/'
|
|
license=(GPL)
|
|
depends=(gcc-libs)
|
|
source=(https://github.com/01org/tbb/archive/$_pkgver.tar.gz)
|
|
sha256sums=('755b7dfaf018f5d8ae3bf2e8cfa0fa4672372548e8cc043ed1eb5b22a9bf5b72')
|
|
|
|
build() {
|
|
cd tbb-$_pkgver
|
|
export CXXFLAGS+=" -fno-lifetime-dse" # FS#49898
|
|
[[ $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
|
|
}
|