From 18ad1dbf44ae09f255bdc0923c3a7e154c25dcf0 Mon Sep 17 00:00:00 2001 From: Romain Reignier Date: Mon, 27 Apr 2015 01:15:07 +0200 Subject: [PATCH] Add extra/intel-tbb for armv7h --- extra/intel-tbb/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 extra/intel-tbb/PKGBUILD diff --git a/extra/intel-tbb/PKGBUILD b/extra/intel-tbb/PKGBUILD new file mode 100644 index 000000000..430f186aa --- /dev/null +++ b/extra/intel-tbb/PKGBUILD @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Stéphane Gaudreault +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Denis Martinez + +# ALARM: Romain Reignier +# - add armv7h architecture +# - add specfic CXXFLAGS for armv7h + +buildarch=4 + +pkgname=intel-tbb +pkgver=4.3_20150209 +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/tbb${pkgver/\./}oss_src.tgz") +sha1sums=('cb17bee2a9c98a2b98f3ff16208c1c1fae29e6ab') + +build() { + cd tbb${pkgver/\./}oss + CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=0" + make +} + +package() { + cd tbb${pkgver/\./}oss + 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 +}