diff options
Diffstat (limited to 'academic/cblas/cblas.SlackBuild')
-rw-r--r-- | academic/cblas/cblas.SlackBuild | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/academic/cblas/cblas.SlackBuild b/academic/cblas/cblas.SlackBuild index 5e72cecfdd0c7..c2e125fc178af 100644 --- a/academic/cblas/cblas.SlackBuild +++ b/academic/cblas/cblas.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=cblas SRCNAM=lapack -VERSION=${VERSION:-3.7.1} +VERSION=${VERSION:-3.8.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -92,21 +92,23 @@ 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_C_FLAGS:STRING="$SLKCFLAGS" \ - -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_CBLAS=ON \ - .. - make - make install/strip DESTDIR=$PKG -cd .. +if [ "${STATIC:-no}" != "no" ]; then + mkdir -p static + cd static + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -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_CBLAS=ON \ + .. + make + make install/strip DESTDIR=$PKG + cd .. +fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION |