diff options
author | Eugene Suter <easuter@gmail.com> | 2010-08-17 22:36:22 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-18 14:01:18 -0500 |
commit | b7265ca413b650ff74d46e4c117e66171f620d27 (patch) | |
tree | 43a5e6f831c9b5a1cb5c589b576533994dbfdf23 /libraries | |
parent | 72fdaaaf4ab131e5fd7a6b013d9db120f16ebf88 (diff) |
libraries/lapack: Updated for version 3.2.2.
This commit also changes the versioning of the shared library
to use liblapack.so.3 as opposed to the full 3.2.2, even though
the filename is still the same. 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')
-rw-r--r-- | libraries/lapack/lapack.SlackBuild | 31 | ||||
-rw-r--r-- | libraries/lapack/lapack.info | 6 |
2 files changed, 20 insertions, 17 deletions
diff --git a/libraries/lapack/lapack.SlackBuild b/libraries/lapack/lapack.SlackBuild index 6b7dd871c95f..03c28a6630b6 100644 --- a/libraries/lapack/lapack.SlackBuild +++ b/libraries/lapack/lapack.SlackBuild @@ -1,29 +1,29 @@ #!/bin/sh -# Slackware build script for BLAS and LAPACK libraries. +# Slackware build script for LAPACK libraries. # Written by Eugene Suter <easuter@gmail.com> - -# Licence: Read the LICENCE file in the tarball +# Thanks to Pablo Santamaria <pablosantamaria@gmail.com> for fixing the +# shared library version problem (major version consistency between updates) PRGNAM=lapack -VERSION=${VERSION:-3.2.1} +VERSION=${VERSION:-3.2.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: +MAJOR=$(echo $VERSION | cut -d. -f1) + 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 CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM +PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then @@ -47,7 +47,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tgz +tar xvf $CWD/$PRGNAM.tgz cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -66,21 +66,24 @@ make OPTS="$SLKCFLAGS" NOOPT="$NOOPTFLAGS" lapacklib # Build dynamic libraries (it would be really nice for the netlib folks to # include this already...) -#LAPACK only. We assume blas is already insralled in /usr/lib +# LAPACK only. We assume blas is already installed in /usr/lib${LIBDIRSUFFIX} ( mkdir shared_$PRGNAM cd shared_$PRGNAM ar -x ../lib$PRGNAM.a - gcc -fPIC -lgfortran -shared *.o -Wl,-soname,$PRGNAM.so.$VERSION \ - -o lib$PRGNAM.so.$VERSION + gcc -fPIC -lgfortran -shared *.o -W1,-soname,lib$PRGNAM.so.$MAJOR \ + -o lib$PRGNAM.so.$VERSION ) mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} cp lib$PRGNAM.a $PKG/usr/lib${LIBDIRSUFFIX} cp shared_$PRGNAM/lib$PRGNAM.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX} -( cd $PKG/usr/lib${LIBDIRSUFFIX} - chmod 755 lib$PRGNAM.so.$VERSION - ln -s lib$PRGNAM.so.$VERSION lib$PRGNAM.so + +( + cd $PKG/usr/lib${LIBDIRSUFFIX} + chmod 755 *.so.* + ln -s lib$PRGNAM.so.$VERSION lib$PRGNAM.so.$MAJOR + ln -s lib$PRGNAM.so.$MAJOR lib$PRGNAM.so ) find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ diff --git a/libraries/lapack/lapack.info b/libraries/lapack/lapack.info index 312e01dee441..f0f49f4d7db1 100644 --- a/libraries/lapack/lapack.info +++ b/libraries/lapack/lapack.info @@ -1,8 +1,8 @@ PRGNAM="lapack" -VERSION="3.2.1" +VERSION="3.2.2" HOMEPAGE="http://www.netlib.org/lapack/" -DOWNLOAD="http://www.netlib.org/lapack/lapack-3.2.1.tgz" -MD5SUM="a3202a4f9e2f15ffd05d15dab4ac7857" +DOWNLOAD="http://www.netlib.org/lapack/lapack.tgz" +MD5SUM="10832891c9e8100f81108c1ec7da0da4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Eugene Suter" |