diff options
author | Eugene Suter <easuter@gmail.com> | 2010-08-17 22:29:30 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-18 14:01:18 -0500 |
commit | 72fdaaaf4ab131e5fd7a6b013d9db120f16ebf88 (patch) | |
tree | adb88b70a5c52394dc0430d2f70bc65639a58795 /libraries/blas/blas.SlackBuild | |
parent | 28085bbb36f6e6461116382a86578f336d00a236 (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/blas.SlackBuild')
-rw-r--r-- | libraries/blas/blas.SlackBuild | 26 |
1 files changed, 15 insertions, 11 deletions
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 \ |