libraries/tbb: Use proper symlinks to installed libraries

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2012-08-09 23:58:45 -05:00
parent e2e8c6e5be
commit 93a38dd8ec

View file

@ -5,7 +5,7 @@
PRGNAM=tbb
VERSION=${VERSION-4.0u5}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRCVERSION=${SRCVERSION:-40_20120613oss}
@ -54,9 +54,12 @@ find . \
make
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
mv build/linux_*_release/\
{libtbb.so{,.2},libtbbmalloc.so{,.2},libtbbmalloc_proxy.so{,.2}} \
$PKG/usr/lib${LIBDIRSUFFIX}
# The *.so (no numerical suffix) files should be symlinks, but they're not,
# so we'll do that correct ourselves
mv build/linux_*_release/*.so.* $PKG/usr/lib${LIBDIRSUFFIX}
ln -s libtbb.so.2 $PKG/usr/lib${LIBDIRSUFFIX}/libtbb.so
ln -s libtbbmalloc.so.2 $PKG/usr/lib${LIBDIRSUFFIX}/libtbbmalloc.so
ln -s libtbbmalloc_proxy.so.2 $PKG/usr/lib${LIBDIRSUFFIX}/libtbbmalloc_proxy.so
mv include $PKG/usr