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>
This commit is contained in:
Eugene Suter 2010-08-17 22:29:30 -05:00 committed by Erik Hanson
parent 28085bbb36
commit 72fdaaaf4a
3 changed files with 17 additions and 13 deletions

View file

@ -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.

View file

@ -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 \

View file

@ -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"