aboutsummaryrefslogtreecommitdiff
path: root/libraries/blas/blas.SlackBuild
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2017-06-27 23:31:48 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-01 07:42:11 +0700
commitb2341ef250ab7f25511d08e96d6abcbfaaf80355 (patch)
tree1fe09d1e5ce72a5c7f41c8bbeabe4783e24fdae7 /libraries/blas/blas.SlackBuild
parentdc2d9c09ae4167c87b760453ecc61bc234c9983d (diff)
libraries/blas: Updated for version 3.7.1.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Diffstat (limited to 'libraries/blas/blas.SlackBuild')
-rw-r--r--libraries/blas/blas.SlackBuild20
1 files changed, 7 insertions, 13 deletions
diff --git a/libraries/blas/blas.SlackBuild b/libraries/blas/blas.SlackBuild
index 3812bd5ef1f51..62bd5f9e21c20 100644
--- a/libraries/blas/blas.SlackBuild
+++ b/libraries/blas/blas.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for BLAS
-# Copyright 2014-2016 Kyle Guinn <elyk03@gmail.com>, USA
+# Copyright 2014-2017 Kyle Guinn <elyk03@gmail.com>, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=blas
SRCNAM=lapack
-VERSION=${VERSION:-3.6.1}
+VERSION=${VERSION:-3.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,16 +61,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tgz
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
-# Fix lots of bugs with the cmake build system and .pc files.
-# More importantly, allow building only the BLAS component.
-patch -p1 < $CWD/patches/generate-pkgconfig.diff
-patch -p1 < $CWD/patches/link-dependencies.diff
-patch -p1 < $CWD/patches/target-cleanup.diff
+# Allow building only the BLAS component.
patch -p1 < $CWD/patches/cmake-piecewise.diff
# Avoid adding an RPATH entry to the shared lib. It's unnecessary (except for
@@ -84,7 +80,6 @@ cd shared
-DCMAKE_RULE_MESSAGES=OFF \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DBUILD_BLAS=ON \
- -DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_SKIP_RPATH=YES \
..
@@ -104,7 +99,6 @@ cd static
-DCMAKE_RULE_MESSAGES=OFF \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DBUILD_BLAS=ON \
- -DBUILD_TESTING=OFF \
..
make
make install/strip DESTDIR=$PKG
@@ -115,16 +109,16 @@ cd ..
# 1. Replace "LAPACK" with "BLAS" in headers/footers.
# 2. Only generate on the BLAS sources.
# 3. Turn off recursion. Only operate on directories in INPUT.
-# 4. Turn off some repetitive comments.
-# 5. Turn off HAVE_DOT. Graphs are unnecessary for this purpose.
+# 4. Turn off EXCLUDE to not conflict with INPUT.
+# 5. Turn off some repetitive comments.
# 6. Turn off MAN_LINKS. See below.
sed -i \
-e ':a;/\\$/N;s/\\\n//;ta' \
-e 's/^\(PROJECT_NAME *=\).*/\1 BLAS/' \
-e 's/^\(INPUT *=\).*/\1 BLAS\/SRC/' \
-e 's/^\(RECURSIVE *=\).*/\1 NO/' \
+ -e 's/^\(EXCLUDE *=\).*/\1/' \
-e 's/^\(REPEAT_BRIEF *=\).*/\1 NO/' \
- -e 's/^\(HAVE_DOT *=\).*/\1 NO/' \
-e 's/^\(MAN_LINKS *=\).*/\1 NO/' \
DOCS/Doxyfile_man
doxygen DOCS/Doxyfile_man