aboutsummaryrefslogtreecommitdiff
path: root/libraries/blas
diff options
context:
space:
mode:
authorEugene Suter <easuter@gmail.com>2010-08-17 22:29:30 -0500
committerErik Hanson <erik@slackbuilds.org>2010-08-18 14:01:18 -0500
commit72fdaaaf4ab131e5fd7a6b013d9db120f16ebf88 (patch)
treeadb88b70a5c52394dc0430d2f70bc65639a58795 /libraries/blas
parent28085bbb36f6e6461116382a86578f336d00a236 (diff)
libraries/blas: Updated for version 20070405.
This commit also changes the versioning of the shared library to use libblas.so.3 as opposed to the full 3.2.2 (inherited from the lapack library). This should allow for less annoying upgrades - thanks to Pablo Santamaria for the tip. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/blas')
-rw-r--r--libraries/blas/README2
-rw-r--r--libraries/blas/blas.SlackBuild26
-rw-r--r--libraries/blas/blas.info2
3 files changed, 17 insertions, 13 deletions
diff --git a/libraries/blas/README b/libraries/blas/README
index e6b80a9d80c0a..c9ab6d871ea71 100644
--- a/libraries/blas/README
+++ b/libraries/blas/README
@@ -1,6 +1,6 @@
Build script for the reference BLAS library provided by Netlib.
The final package will contain static and shared libraries.
-Note: This BLAS implementation is not optimized! If want good
+Note: This BLAS implementation is not optimized! If you want good
performance, then use the BLAS libraries provided by your
CPU vendor.
diff --git a/libraries/blas/blas.SlackBuild b/libraries/blas/blas.SlackBuild
index 44138c9d8875c..99b72613dfaa5 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 \
diff --git a/libraries/blas/blas.info b/libraries/blas/blas.info
index 4a5d06dce3ef3..ef2b1dbf4a626 100644
--- a/libraries/blas/blas.info
+++ b/libraries/blas/blas.info
@@ -1,5 +1,5 @@
PRGNAM="blas"
-VERSION="3.2.1"
+VERSION="20070405"
HOMEPAGE="http://www.netlib.org/blas/"
DOWNLOAD="http://www.netlib.org/blas/blas.tgz"
MD5SUM="7e6af7022440d8688d16be86d55fb358"