aboutsummaryrefslogtreecommitdiff
path: root/libraries/lapack/lapack.SlackBuild
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2021-04-10 17:50:55 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-17 11:47:42 +0700
commitceb3f5693abc2804d93b0c9e6b9e4a8d7848d13b (patch)
treea3b241df718dfff938d5f10c2ef85f99494d9dd2 /libraries/lapack/lapack.SlackBuild
parenta70d396d5036e1d14cd529ee469afa703b6b8bb1 (diff)
libraries/lapack: Updated for version 3.9.1.
Signed-off-by: Kyle Guinn <elyk03@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/lapack/lapack.SlackBuild')
-rw-r--r--libraries/lapack/lapack.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/lapack/lapack.SlackBuild b/libraries/lapack/lapack.SlackBuild
index 492a7c8673a74..6bd93dafd54a7 100644
--- a/libraries/lapack/lapack.SlackBuild
+++ b/libraries/lapack/lapack.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for LAPACK
-# Copyright 2014-2020 Kyle Guinn <elyk03@gmail.com>
+# Copyright 2014-2021 Kyle Guinn <elyk03@gmail.com>
# 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.9.0}
+VERSION=${VERSION:-3.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -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/' \