summaryrefslogtreecommitdiff
path: root/libraries/blas/blas.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/blas/blas.SlackBuild')
-rw-r--r--libraries/blas/blas.SlackBuild26
1 files changed, 15 insertions, 11 deletions
diff --git a/libraries/blas/blas.SlackBuild b/libraries/blas/blas.SlackBuild
index 44138c9d88..99b72613df 100644
--- a/libraries/blas/blas.SlackBuild
+++ b/libraries/blas/blas.SlackBuild
@@ -4,20 +4,23 @@
# Written by Eugene Suter <easuter@gmail.com>
-# License is unclear (possibly public domain), so contact
-# netlib.org for more information.
+# Version number is now timestamp on source tarball
+# since no official version is given on website
PRGNAM=blas
-VERSION=${VERSION:-3.2.1} # Not entirely sure about this version number
-BUILD=${BUILD:-1} # but it matches the current LAPACK version
+VERSION=${VERSION:-20070405}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+# Shared library version
+# This should match the versioning of blas
+SOVERS=3.2.2
+SOMAJOR=3
+
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
@@ -62,16 +65,17 @@ ranlib $PRGNAM\_LINUX.a
mkdir shared
( cd shared
ar -x ../$PRGNAM\_LINUX.a
- gcc -fPIC -lgfortran -shared *.o -W1,-soname,$PRGNAM.so.$VERSION \
- -o lib$PRGNAM.so.$VERSION
+ gcc -fPIC -lgfortran -shared *.o -W1,-soname,$PRGNAM.so.$SOMAJOR \
+ -o lib$PRGNAM.so.$SOVERS
)
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
cp ${PRGNAM}_LINUX.a $PKG/usr/lib${LIBDIRSUFFIX}/libblas.a
-cp shared/lib$PRGNAM.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}
+cp shared/lib$PRGNAM.so.$SOVERS $PKG/usr/lib${LIBDIRSUFFIX}
( cd $PKG/usr/lib${LIBDIRSUFFIX}
- chmod 755 *.so.*
- ln -s lib$PRGNAM.so.$VERSION lib$PRGNAM.so
+ chmod 0755 *.so.*
+ ln -s lib$PRGNAM.so.$SOVERS lib$PRGNAM.so.$SOMAJOR
+ ln -s lib$PRGNAM.so.$SOMAJOR lib$PRGNAM.so
)
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \