diff options
Diffstat (limited to 'libraries/lapack/lapack.SlackBuild')
-rw-r--r-- | libraries/lapack/lapack.SlackBuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/lapack/lapack.SlackBuild b/libraries/lapack/lapack.SlackBuild index 492a7c8673..6bd93dafd5 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/' \ |