2015-04-26 23:15:07 +00:00
|
|
|
# $Id$
|
2017-03-15 12:39:23 +00:00
|
|
|
# Maintainer:
|
|
|
|
# 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>
|
|
|
|
|
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
|
2018-07-27 16:51:38 +00:00
|
|
|
pkgver=2018_20180618
|
|
|
|
_pkgver=2018_U5
|
2016-09-24 12:19:08 +00:00
|
|
|
_file=${_tag}_src.tgz
|
|
|
|
pkgrel=1
|
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)
|
2015-04-26 23:15:07 +00:00
|
|
|
url='http://www.threadingbuildingblocks.org/'
|
2016-03-03 19:53:44 +00:00
|
|
|
license=(GPL)
|
|
|
|
depends=(gcc-libs)
|
2017-03-15 12:39:23 +00:00
|
|
|
source=(https://github.com/01org/tbb/archive/$_pkgver.tar.gz)
|
2018-07-27 16:51:38 +00:00
|
|
|
sha256sums=('c4c2896af527392496c5e01ef8579058a71b6eebbd695924cd138841c13f07be')
|
2015-04-26 23:15:07 +00:00
|
|
|
|
|
|
|
build() {
|
2017-03-15 12:39:23 +00:00
|
|
|
cd tbb-$_pkgver
|
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() {
|
2017-03-15 12:39:23 +00:00
|
|
|
cd tbb-$_pkgver
|
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
|
2015-04-26 23:15:07 +00:00
|
|
|
}
|