PKGBUILDs/extra/intel-tbb/PKGBUILD

38 lines
1.1 KiB
Bash
Raw Normal View History

2015-04-26 23:15:07 +00:00
# $Id$
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Denis Martinez <deuns.martinez AT gmail.com>
2015-10-27 04:09:40 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# Romain Reignier <rom.reignier AT gmail.com>
# - add specfic CXXFLAGS for armv7h and aarch64
2015-04-26 23:15:07 +00:00
2015-10-27 04:09:40 +00:00
buildarch=12
2015-04-26 23:15:07 +00:00
pkgname=intel-tbb
2015-11-30 18:50:51 +00:00
pkgver=4.4_20151115
2015-10-01 23:34:37 +00:00
_dir=tbb${pkgver/\./}oss
2015-12-10 05:32:08 +00:00
pkgrel=2
2015-04-26 23:15:07 +00:00
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/tbb${pkgver/\./}oss_src.tgz")
2015-11-30 18:50:51 +00:00
sha1sums=('5d81fe397e97e74a5645ce30c5b218852c799f07')
2015-04-26 23:15:07 +00:00
build() {
2015-10-01 23:34:37 +00:00
cd $_dir
2015-10-27 04:09:40 +00:00
[[ $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"
2015-04-26 23:15:07 +00:00
make
}
package() {
2015-10-01 23:34:37 +00:00
cd $_dir
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
2015-04-26 23:15:07 +00:00
}