From 72fdaaaf4ab131e5fd7a6b013d9db120f16ebf88 Mon Sep 17 00:00:00 2001 From: Eugene Suter Date: Tue, 17 Aug 2010 22:29:30 -0500 Subject: 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 --- libraries/blas/README | 2 +- libraries/blas/blas.SlackBuild | 26 +++++++++++++++----------- libraries/blas/blas.info | 2 +- 3 files changed, 17 insertions(+), 13 deletions(-) (limited to 'libraries/blas') diff --git a/libraries/blas/README b/libraries/blas/README index e6b80a9d80..c9ab6d871e 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 44138c9d88..99b72613df 100644 --- a/libraries/blas/blas.SlackBuild +++ b/libraries/blas/blas.SlackBuild @@ -4,20 +4,23 @@ # Written by Eugene Suter -# 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 4a5d06dce3..ef2b1dbf4a 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" -- cgit v1.2.3