aboutsummaryrefslogtreecommitdiff
path: root/libraries/lapack/lapack.SlackBuild
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2017-06-28 00:59:07 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-01 07:42:12 +0700
commite125141f5fea0916137a14991d97cb4ae746cadc (patch)
tree08fdf3c84a6ab93af787f35a5fb13bda8831f419 /libraries/lapack/lapack.SlackBuild
parentb2341ef250ab7f25511d08e96d6abcbfaaf80355 (diff)
libraries/lapack: Updated for version 3.7.1.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Diffstat (limited to 'libraries/lapack/lapack.SlackBuild')
-rw-r--r--libraries/lapack/lapack.SlackBuild30
1 files changed, 14 insertions, 16 deletions
diff --git a/libraries/lapack/lapack.SlackBuild b/libraries/lapack/lapack.SlackBuild
index 9e99603455945..043304447e764 100644
--- a/libraries/lapack/lapack.SlackBuild
+++ b/libraries/lapack/lapack.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for LAPACK
-# Copyright 2014-2016 Kyle Guinn <elyk03@gmail.com>, USA
+# Copyright 2014-2017 Kyle Guinn <elyk03@gmail.com>, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=lapack
SRCNAM=lapack
-VERSION=${VERSION:-3.6.1}
+VERSION=${VERSION:-3.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,7 +41,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="LICENSE README DOCS/lapack.png DOCS/lawn81.tex DOCS/org2.ps"
+DOCS="LICENSE README.md DOCS/lapack.png DOCS/lawn81.tex DOCS/org2.ps"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -61,16 +61,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tgz
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
-# Fix lots of bugs with the cmake build system and .pc files.
-# More importantly, allow building only the LAPACK component.
-patch -p1 < $CWD/patches/generate-pkgconfig.diff
-patch -p1 < $CWD/patches/link-dependencies.diff
-patch -p1 < $CWD/patches/target-cleanup.diff
+# Allow building only the LAPACK component.
patch -p1 < $CWD/patches/cmake-piecewise.diff
# Avoid adding an RPATH entry to the shared lib. It's unnecessary (except for
@@ -85,7 +81,6 @@ cd shared
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DUSE_OPTIMIZED_BLAS=ON \
-DBUILD_LAPACK=ON \
- -DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_SKIP_RPATH=YES \
..
@@ -106,7 +101,6 @@ cd static
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DUSE_OPTIMIZED_BLAS=ON \
-DBUILD_LAPACK=ON \
- -DBUILD_TESTING=OFF \
..
make
make install/strip DESTDIR=$PKG
@@ -116,15 +110,15 @@ cd ..
# 0. Join all escaped newlines so the entire value is replaced.
# 1. Only generate on the LAPACK sources.
# 2. Turn off recursion. Only operate on directories in INPUT.
-# 3. Turn off some repetitive comments.
-# 4. Turn off HAVE_DOT. Graphs are unnecessary for this purpose.
+# 3. Turn off EXCLUDE to not conflict with INPUT.
+# 4. Turn off some repetitive comments.
# 5. Turn off MAN_LINKS. See below.
sed -i \
-e ':a;/\\$/N;s/\\\n//;ta' \
-e 's/^\(INPUT *=\).*/\1 SRC/' \
-e 's/^\(RECURSIVE *=\).*/\1 NO/' \
+ -e 's/^\(EXCLUDE *=\).*/\1/' \
-e 's/^\(REPEAT_BRIEF *=\).*/\1 NO/' \
- -e 's/^\(HAVE_DOT *=\).*/\1 NO/' \
-e 's/^\(MAN_LINKS *=\).*/\1 NO/' \
DOCS/Doxyfile_man
doxygen DOCS/Doxyfile_man
@@ -142,13 +136,17 @@ ln -s sladiv.3.gz $PKG/usr/man/man3/sladiv1.3.gz
ln -s sladiv.3.gz $PKG/usr/man/man3/sladiv2.3.gz
ln -s dladiv.3.gz $PKG/usr/man/man3/dladiv1.3.gz
ln -s dladiv.3.gz $PKG/usr/man/man3/dladiv2.3.gz
+# Remove files that are supplied by BLAS.
+rm $PKG/usr/man/man3/xerbla.3.gz
+rm $PKG/usr/man/man3/xerbla_array.3.gz
# Generate a few more man pages from the INSTALL directory, but copy only a
-# select few. Some are duplicated by BLAS (lsame.f), by LAPACK (ilaver.f),
-# are unused (slamchf77.f, dlamchf77.f), or are test programs.
+# select few. Some are duplicated by BLAS (lsame.f), are unused (slamchf77.f,
+# dlamchf77.f), or are test programs.
rm -rf DOCS/man
sed -i 's/^\(INPUT *=\).*/\1 INSTALL/' DOCS/Doxyfile_man
doxygen DOCS/Doxyfile_man
+gzip -9c DOCS/man/man3/ilaver.f.3 > $PKG/usr/man/man3/ilaver.3.gz
gzip -9c DOCS/man/man3/slamch.f.3 > $PKG/usr/man/man3/slamch.3.gz
gzip -9c DOCS/man/man3/dlamch.f.3 > $PKG/usr/man/man3/dlamch.3.gz
ln -s slamch.3.gz $PKG/usr/man/man3/slamc3.3.gz