aboutsummaryrefslogtreecommitdiff
path: root/libraries/blas/blas.SlackBuild
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2017-12-14 22:37:20 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-12-21 08:19:39 +0700
commit38ef20f3998e52d869bcf345f37772d67d67acdd (patch)
tree7688a781dee92fed0856672df56f79a322c57f1b /libraries/blas/blas.SlackBuild
parent20a46ee734d75053f500bed27ad4dd0a070a3930 (diff)
libraries/blas: Updated for version 3.8.0.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Diffstat (limited to 'libraries/blas/blas.SlackBuild')
-rw-r--r--libraries/blas/blas.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/libraries/blas/blas.SlackBuild b/libraries/blas/blas.SlackBuild
index 62bd5f9e21c20..94de7720f78d8 100644
--- a/libraries/blas/blas.SlackBuild
+++ b/libraries/blas/blas.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=blas
SRCNAM=lapack
-VERSION=${VERSION:-3.7.1}
+VERSION=${VERSION:-3.8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -90,19 +90,21 @@ 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 \
- -DBUILD_BLAS=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 \
+ -DBUILD_BLAS=ON \
+ ..
+ make
+ make install/strip DESTDIR=$PKG
+ cd ..
+fi
# Generate man pages. Requires some fix-ups:
# 0. Join all escaped newlines so the entire value is replaced.