diff options
author | Kyle Guinn <elyk03@gmail.com> | 2017-12-14 23:49:40 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-12-21 08:19:39 +0700 |
commit | 0ce1634d97fbdd8bb021aaa2cf27d6cf9c623449 (patch) | |
tree | 0130942b0382dab84d107f60cf8a585f7baf92e0 /libraries/lapack/lapack.SlackBuild | |
parent | 53e9010822997189ddb44e7d037323c5c9a4b98b (diff) |
libraries/lapack: Updated for version 3.8.0.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Diffstat (limited to 'libraries/lapack/lapack.SlackBuild')
-rw-r--r-- | libraries/lapack/lapack.SlackBuild | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/libraries/lapack/lapack.SlackBuild b/libraries/lapack/lapack.SlackBuild index 043304447e764..1397b7a9bf0c1 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. |