diff options
Diffstat (limited to 'academic/lapacke/lapacke.SlackBuild')
-rw-r--r-- | academic/lapacke/lapacke.SlackBuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/academic/lapacke/lapacke.SlackBuild b/academic/lapacke/lapacke.SlackBuild index e0c9fe36d0..b7bac2704f 100644 --- a/academic/lapacke/lapacke.SlackBuild +++ b/academic/lapacke/lapacke.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for LAPACKE -# Copyright 2016-2020 Kyle Guinn <elyk03@gmail.com> +# Copyright 2016-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=lapacke 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 LAPACKE 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_LAPACK=ON \ -DBUILD_LAPACKE=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_LAPACK=ON \ -DBUILD_LAPACKE=ON \ -DBUILD_DEPRECATED=ON \ + $use_xblas \ .. make make install/strip DESTDIR=$PKG |