academic/sundials: Updated for version 3.1.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
R. S. Ananda Murthy 2018-08-02 19:22:21 +07:00 committed by Willy Sudiarto Raharjo
parent c642a454b2
commit c4c5787c5b
3 changed files with 18 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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=""