summaryrefslogtreecommitdiffstats
path: root/libraries/lapack/lapack.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/lapack/lapack.SlackBuild')
-rw-r--r--libraries/lapack/lapack.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/libraries/lapack/lapack.SlackBuild b/libraries/lapack/lapack.SlackBuild
index 8b79c83e17..6bd93dafd5 100644
--- a/libraries/lapack/lapack.SlackBuild
+++ b/libraries/lapack/lapack.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for LAPACK
-# Copyright 2014-2017 Kyle Guinn <elyk03@gmail.com>, USA
+# Copyright 2014-2021 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,8 +24,8 @@
PRGNAM=lapack
SRCNAM=lapack
-VERSION=${VERSION:-3.8.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.9.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -38,7 +38,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
+PKG=$TMP/package-$PRGNAM-$VERSION
OUTPUT=${OUTPUT:-/tmp}
DOCS="LICENSE README.md DOCS/lapack.png DOCS/lawn81.tex DOCS/org2.ps"
@@ -69,6 +69,10 @@ chmod -R u+w,go-w,a+rX-st .
# Allow building only the LAPACK component.
patch -p1 < $CWD/patches/cmake-piecewise.diff
+if pkg-config --exists xblas; then
+ use_xblas='-DUSE_XBLAS=ON'
+fi
+
# Avoid adding an RPATH entry to the shared lib. It's unnecessary (except for
# running the test suite), and it's broken on 64-bit (needs LIBDIRSUFFIX).
mkdir -p shared
@@ -82,6 +86,7 @@ cd shared
-DUSE_OPTIMIZED_BLAS=ON \
-DBUILD_LAPACK=ON \
-DBUILD_DEPRECATED=ON \
+ $use_xblas \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_SKIP_RPATH=YES \
..
@@ -104,6 +109,7 @@ if [ "${STATIC:-no}" != "no" ]; then
-DUSE_OPTIMIZED_BLAS=ON \
-DBUILD_LAPACK=ON \
-DBUILD_DEPRECATED=ON \
+ $use_xblas \
..
make
make install/strip DESTDIR=$PKG
@@ -119,7 +125,7 @@ fi
# 5. Turn off MAN_LINKS. See below.
sed -i \
-e ':a;/\\$/N;s/\\\n//;ta' \
- -e 's/^\(INPUT *=\).*/\1 SRC/' \
+ -e 's/^\(INPUT *=\).*/\1 SRC SRC\/DEPRECATED/' \
-e 's/^\(RECURSIVE *=\).*/\1 NO/' \
-e 's/^\(EXCLUDE *=\).*/\1/' \
-e 's/^\(REPEAT_BRIEF *=\).*/\1 NO/' \