Browse Source

l/libatlas: Upgraded to libatlas-3.9.25.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
b3e17ddf99
  1. 1
      l/libatlas/atlas3.8.3.tar.gz.sha1
  2. 1
      l/libatlas/atlas3.9.25.tar.bz2.sha1
  3. 44
      l/libatlas/libatlas.SlackBuild
  4. 17
      l/libatlas/make.inc

1
l/libatlas/atlas3.8.3.tar.gz.sha1

@ -1 +0,0 @@
5f2787f6a52821ee02f39d8addacc5feb074dd3a atlas3.8.3.tar.gz

1
l/libatlas/atlas3.9.25.tar.bz2.sha1

@ -0,0 +1 @@
ab1b8b44a0f7f44ce0e7635af9d1200d087b08db atlas3.9.25.tar.bz2

44
l/libatlas/libatlas.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009 Damien Goutte-Gattat
# Copyright (C) 2008,2009,2010 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -40,9 +40,9 @@
# Source packages infos
ATLAS_NAMESRC=${ATLAS_NAMESRC:-atlas}
ATLAS_VERSION=${ATLAS_VERSION:-3.8.3}
ATLAS_ARCHIVE=${ATLAS_ARCHIVE:-${ATLAS_NAMESRC}$ATLAS_VERSION.tar.gz}
ATLAS_URL=${ATLAS_URL:-http://garr.dl.sourceforge.net/sourceforge/math-atlas}
ATLAS_VERSION=${ATLAS_VERSION:-3.9.25}
ATLAS_ARCHIVE=${ATLAS_ARCHIVE:-${ATLAS_NAMESRC}$ATLAS_VERSION.tar.bz2}
ATLAS_URL=${ATLAS_URL:-http://downloads.sourceforge.net/math-atlas}
LAPACK_NAMESRC=${LAPACK_NAMESRC:-lapack}
LAPACK_VERSION=${LAPACK_VERSION:-3.2.1}
@ -53,7 +53,7 @@ LAPACK_URL=${LAPACK_URL:-http://www.netlib.org/lapack}
NAMEPKG=${NAMEPKG:-libatlas}
VERSION=${VERSION:-$ATLAS_VERSION}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
# Directories
@ -102,38 +102,32 @@ sha1sum -c $LAPACK_ARCHIVE.sha1
ATLAS_DIRNAME=$(tar ft $ATLAS_ARCHIVE | head -n 1 | cut -d / -f 1)
LAPACK_DIRNAME=$(tar ft $LAPACK_ARCHIVE | head -n 1 | cut -d / -f 1)
# Extract the archives
# Extract and configure
cd $TMP
tar xf $CWD/$LAPACK_ARCHIVE
tar xf $CWD/$ATLAS_ARCHIVE
# Build the temporary Lapack library
cd $LAPACK_DIRNAME
sed "s/-m32/-m$BITS/" $CWD/make.inc > make.inc
make lib
# Build the ATLAS library (static)
mkdir -p $TMP/$ATLAS_DIRNAME/build
cd $TMP/$ATLAS_DIRNAME/build
../configure \
--prefix=/usr \
--with-netlib-lapack=$TMP/$LAPACK_DIRNAME/lapack_LINUX.a \
--shared \
--libdir=/usr/lib$LIBDIRSUFFIX \
--with-netlib-lapack-tarfile=$CWD/$LAPACK_ARCHIVE \
-b $BITS -D c -DPentiumCPS=$MHZ -Fa alg -fPIC
# Tweak the generated Makefile to set the soname of shared libraries
# to the full path of the file (do not set the soname at all)
sed -i 's/-soname [^ ]\+//' lib/Makefile
# Build
make
make install DESTDIR=$PKG/usr
if [ "x$ARCH" = xx86_64 ]; then
mv $PKG/usr/lib $PKG/usr/lib64
fi
make install DESTDIR=$PKG/usr LIBINSTdir=$PKG/usr/lib$LIBDIRSUFFIX
# Build the ATLAS library (shared)
cd $TMP/$ATLAS_DIRNAME/build/lib
make shared
install -s -m 0644 *.so $PKG/usr/lib$LIBDIRSUFFIX
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION/lapack
cd $TMP/$LAPACK_DIRNAME
install -m 644 LICENSE README $PKG/usr/doc/$NAMEPKG-$VERSION/lapack
cd $TMP/$ATLAS_DIRNAME
install -m 0644 INSTALL.txt README doc/* $PKG/usr/doc/$NAMEPKG-$VERSION

17
l/libatlas/make.inc

@ -1,17 +0,0 @@
SHELL = /bin/sh
PLAT = _LINUX
FORTRAN = gfortran
OPTS = -O -fPIC -m32
DRVOPTS = $(OPTS)
NOOPT = -fPIC -m32
LOADER = $(FORTRAN)
LOADOPTS = $(OPTS)
TIMER = INT_ETIME
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
BLASLIB = ../../blas$(PLAT).a
LAPACKLIB = lapack$(PLAT).a
TMGLIB = tmglib$(PLAT).a
EIGSRCLIB = eigsrv$(PLAT).a
LINSRCLIB = linsrc$(PLAT).a
Loading…
Cancel
Save