summaryrefslogtreecommitdiff
path: root/libraries/lapack/lapack.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/lapack/lapack.SlackBuild')
-rw-r--r--libraries/lapack/lapack.SlackBuild32
1 files changed, 17 insertions, 15 deletions
diff --git a/libraries/lapack/lapack.SlackBuild b/libraries/lapack/lapack.SlackBuild
index 043304447e..1397b7a9bf 100644
--- a/libraries/lapack/lapack.SlackBuild
+++ b/libraries/lapack/lapack.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=lapack
SRCNAM=lapack
-VERSION=${VERSION:-3.7.1}
+VERSION=${VERSION:-3.8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -91,20 +91,22 @@ cd ..
# cmake doesn't appear to let us build both shared and static libs
# at the same time, so build it twice. This may build a non-PIC library
# on some architectures, which should be faster.
-mkdir -p static
-cd static
- cmake \
- -DCMAKE_Fortran_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=None \
- -DCMAKE_RULE_MESSAGES=OFF \
- -DCMAKE_VERBOSE_MAKEFILE=TRUE \
- -DUSE_OPTIMIZED_BLAS=ON \
- -DBUILD_LAPACK=ON \
- ..
- make
- make install/strip DESTDIR=$PKG
-cd ..
+if [ "${STATIC:-no}" != "no" ]; then
+ mkdir -p static
+ cd static
+ cmake \
+ -DCMAKE_Fortran_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_RULE_MESSAGES=OFF \
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE \
+ -DUSE_OPTIMIZED_BLAS=ON \
+ -DBUILD_LAPACK=ON \
+ ..
+ make
+ make install/strip DESTDIR=$PKG
+ cd ..
+fi
# Generate man pages. Also requires some fix-ups:
# 0. Join all escaped newlines so the entire value is replaced.