mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# $Id$
|
|
# Maintainer: 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_20161004
|
|
_tag=tbb${pkgver/\./}oss
|
|
_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=(http://threadingbuildingblocks.org/sites/default/files/software_releases/source/$_file)
|
|
sha1sums=('77900d798b641755281390720f9f0a3f8ba21cbb')
|
|
|
|
build() {
|
|
cd $_tag
|
|
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 $_tag
|
|
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
|
|
}
|