aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2018-08-02 19:22:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-02 19:22:21 +0700
commitc4c5787c5b3d32ad8de66d99c56a857310213237 (patch)
treee89ada3d01160e2e68f65c7495ea7cf64e30b5df
parentc642a454b25dec2a022e9df871280c6a56a05e50 (diff)
academic/sundials: Updated for version 3.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/sundials/README2
-rw-r--r--academic/sundials/sundials.SlackBuild18
-rw-r--r--academic/sundials/sundials.info6
3 files changed, 18 insertions, 8 deletions
diff --git a/academic/sundials/README b/academic/sundials/README
index b41b6d760e2cb..6a191d973ba79 100644
--- a/academic/sundials/README
+++ b/academic/sundials/README
@@ -6,4 +6,4 @@ supply their own data structures underneath the solvers, and allow
for easy incorporation of user-supplied linear solvers and
preconditioners.
-Optional dependencies: blas and lapack
+Optional dependencies: blas, lapack, suitesparse
diff --git a/academic/sundials/sundials.SlackBuild b/academic/sundials/sundials.SlackBuild
index fcf76299aafe6..67f79222913e9 100644
--- a/academic/sundials/sundials.SlackBuild
+++ b/academic/sundials/sundials.SlackBuild
@@ -2,7 +2,9 @@
# Slackware build script for sundials
-# Copyright 2014 R. S. Ananda Murthy, Mysore, India
+# Copyright 2014 R. S. Ananda Murthy, Mysuru, India (rsamurti@gmail.com)
+# Patch for detecting KLU library developed by Guan Xin (guanx.bac@gmail.com)
+#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sundials
-VERSION=${VERSION:-3.1.0}
+VERSION=${VERSION:-3.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,6 +56,12 @@ else
LIBDIRSUFFIX=""
fi
+if [ -f /usr/include/suitesparse/klu.h ]; then
+ KLU="-DKLU_ENABLE=BOOL:ON -DKLU_INCLUDE_DIR=/usr/include/suitesparse -DKLU_LIBRARY_DIR=/usr/lib$LIBDIRSUFFIX"
+else
+ KLU=""
+fi
+
set -e
rm -rf $PKG
@@ -81,7 +89,9 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DBUILD_SHARED_LIBS=BOOL:ON \
- -DCMAKE_BUILD_TYPE=Release ..
+ -DCMAKE_BUILD_TYPE=Release \
+ $KLU \
+ ..
make
make install DESTDIR=$PKG
cd ..
@@ -90,7 +100,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README INSTALL_GUIDE.pdf LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md INSTALL_GUIDE.pdf LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/examples $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/academic/sundials/sundials.info b/academic/sundials/sundials.info
index c903417ee4b9c..609a18e7f3bf8 100644
--- a/academic/sundials/sundials.info
+++ b/academic/sundials/sundials.info
@@ -1,8 +1,8 @@
PRGNAM="sundials"
-VERSION="3.1.0"
+VERSION="3.1.1"
HOMEPAGE="https://computation.llnl.gov/projects/sundials"
-DOWNLOAD="https://computation.llnl.gov/projects/sundials/download/sundials-3.1.0.tar.gz"
-MD5SUM="1a84ca41c7f71067e03d519ddbcd9dae"
+DOWNLOAD="https://computation.llnl.gov/projects/sundials/download/sundials-3.1.1.tar.gz"
+MD5SUM="e63f4de0be5be97f750b30b0fa11ef34"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""