diff options
author | David Huffman <storedbox@outlook.com> | 2016-01-06 14:54:10 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-01-08 13:26:15 +0000 |
commit | a42b037abb9a6b56934304964ac5a607c7d52237 (patch) | |
tree | 959bd51d725c53eaa9bb05dbddba946acc55f1fb /testing/libtbb/APKBUILD | |
parent | a184f707e410ecef750ba133379c20a90ee6c50b (diff) | |
download | aports-a42b037abb9a6b56934304964ac5a607c7d52237.tar.bz2 aports-a42b037abb9a6b56934304964ac5a607c7d52237.tar.xz |
testing/libtbb: new aport
https://threadingbuildingblocks.org
IntelĀ® Threading Building Blocks
Provides version 4.4 update 2
Diffstat (limited to 'testing/libtbb/APKBUILD')
-rw-r--r-- | testing/libtbb/APKBUILD | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/testing/libtbb/APKBUILD b/testing/libtbb/APKBUILD new file mode 100644 index 0000000000..b12a969ca2 --- /dev/null +++ b/testing/libtbb/APKBUILD @@ -0,0 +1,82 @@ +# Contributor: David Huffman <storedbox@outlook.com> +# Maintainer: David Huffman <storedbox@outlook.com> + +pkgname=libtbb +pkgver=4.4.2 +_pkgverstr=tbb44_20151115oss +pkgrel=0 +pkgdesc="IntelĀ® TBB, a widely used C++ template library for task parallelism" +url="https://threadingbuildingblocks.org" +arch="x86 x86_64" +license="GPL2" +subpackages="$pkgname-debug $pkgname-dev $pkgname-doc" +source="https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/${_pkgverstr}_src.tgz" + +_builddir="$srcdir/$_pkgverstr" +prepare() { + local i + cd "$_builddir" + for i in "$startdir"/*; do + case $i in + *.patch) msg $i; patch --verbose -p1 -i $i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +_install_libs() { + local buildtype libsuffix lib builddir + buildtype="_$1" + libsuffix="$2" + lib="${3:-$subpkgdir}/usr/lib" + builddir=$(find "$_builddir/build" -maxdepth 1 -name "*$buildtype" -type d) || return 1 + [ "$buildtype" != "_debug" ] && buildtype='' + mkdir -p "$lib" || return 1 + mv "$builddir/libtbb${buildtype}.so$libsuffix" \ + "$builddir/libtbbmalloc${buildtype}.so$libsuffix" \ + "$builddir/libtbbmalloc_proxy${buildtype}.so$libsuffix" \ + "$lib/" || return 1 +} + +package() { + _install_libs release .2 "$pkgdir" || return 1 +} + +debug() { + pkgdesc="$pkgdesc (debug symbols)" + + _install_libs debug .2 || return 1 +} + +dev() { + pkgdesc="$pkgdesc (development files)" + + local prefix + prefix="$subpkgdir/usr" + cd "$_builddir" + mkdir -p "$prefix" || return 1 + rm include/index.html && mv include "$prefix/" || return 1 + _install_libs release && _install_libs debug || return 1 +} + +doc() { + arch="noarch" + pkgdesc="$pkgdesc (documentation)" + + local share doc licenses + share="$subpkgdir/usr/share" + doc="$share/doc" + licensesdir="$share/licenses/$pkgname" + cd "$_builddir" + mkdir -p "$doc" "$licensesdir" || return 1 + mv doc/ "$doc/$pkgname-$pkgver" || return 1 + mv COPYING "$licensesdir/" || return 1 +} + +md5sums="7fae6a6bbca68bbdc18e844d6721d5e4 tbb44_20151115oss_src.tgz" +sha256sums="3dd5c4fc85c18f49307d3cde4ce937bda230679f7fe2906112e5c8dee4cc77bb tbb44_20151115oss_src.tgz" +sha512sums="a5e831fdc56767bf6e823afaa85a041d0a78ef04f506ba2c088a133893810d17433a4c2a7b7845526e5f34b68f78dcdb6106814ddb54da49ea7b03225067997a tbb44_20151115oss_src.tgz" |