summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libtbb/README7
-rw-r--r--libraries/libtbb/libtbb.SlackBuild87
-rw-r--r--libraries/libtbb/libtbb.info10
-rw-r--r--libraries/libtbb/slack-desc19
4 files changed, 123 insertions, 0 deletions
diff --git a/libraries/libtbb/README b/libraries/libtbb/README
new file mode 100644
index 0000000000..ef790bf552
--- /dev/null
+++ b/libraries/libtbb/README
@@ -0,0 +1,7 @@
+Intel® Threading Building Blocks (TBB) offers a rich and complete
+approach to expressing parallelism in a C++ program. It is a library
+that helps you take advantage of multi-core processor performance
+without having to be a threading expert. Threading Building Blocks is
+not just a threads-replacement library. It represents a higher-level,
+task-based parallelism that abstracts platform details and threading
+mechanisms for scalability and performance.
diff --git a/libraries/libtbb/libtbb.SlackBuild b/libraries/libtbb/libtbb.SlackBuild
new file mode 100644
index 0000000000..94cea8f1c6
--- /dev/null
+++ b/libraries/libtbb/libtbb.SlackBuild
@@ -0,0 +1,87 @@
+#!/bin/sh
+
+# Slackware build script for libtbb
+
+# Written by João Felipe Santos (joao.eel@gmail.com)
+# Copyright (c) 2010 João Felipe Santos
+
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+PRGNAM=libtbb
+VERSION=2.2_20090809oss
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+# We'll let the Makefiles handle CFLAGS - they look correct, but they're a
+# bit convoluted anyway...
+if [ "$ARCH" = "i486" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf tbb22_20090809oss
+tar xvf $CWD/tbb22_20090809oss_src.tgz
+cd tbb22_20090809oss
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+make
+
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
+install -m 0755 build/linux_*/*.so* $PKG/usr/lib${LIBDIRSUFFIX}
+
+mkdir -p $PKG/usr/include
+cp -a include/tbb $PKG/usr/include
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES COPYING README doc/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/libtbb/libtbb.info b/libraries/libtbb/libtbb.info
new file mode 100644
index 0000000000..e1954b10fe
--- /dev/null
+++ b/libraries/libtbb/libtbb.info
@@ -0,0 +1,10 @@
+PRGNAM="libtbb"
+VERSION="2.2_20090809oss"
+HOMEPAGE="http://www.threadingbuildingblocks.org/"
+DOWNLOAD="http://www.threadingbuildingblocks.org/uploads/77/142/2.2/tbb22_20090809oss_src.tgz"
+MD5SUM="c621053887c7ee86932da43e2deb3bff"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="João Felipe Santos"
+EMAIL="joao.eel@gmail.com"
+APPROVED="rworkman"
diff --git a/libraries/libtbb/slack-desc b/libraries/libtbb/slack-desc
new file mode 100644
index 0000000000..a370904390
--- /dev/null
+++ b/libraries/libtbb/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------|
+libtbb: libtbb (Intel Threading Building Blocks)
+libtbb:
+libtbb: Intel® Threading Building Blocks (TBB) offers a rich and
+libtbb: complete approach to expressing parallelism in a C++ program.
+libtbb:
+libtbb: Homepage: http://www.threadingbuildingblocks.org/
+libtbb:
+libtbb:
+libtbb:
+libtbb:
+libtbb: