diff options
Diffstat (limited to 'libraries/blas/blas.SlackBuild')
-rw-r--r-- | libraries/blas/blas.SlackBuild | 30 |
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. |