diff options
Diffstat (limited to 'academic/sundials')
-rw-r--r-- | academic/sundials/README | 2 | ||||
-rw-r--r-- | academic/sundials/sundials.SlackBuild | 18 | ||||
-rw-r--r-- | academic/sundials/sundials.info | 6 |
3 files changed, 18 insertions, 8 deletions
diff --git a/academic/sundials/README b/academic/sundials/README index b41b6d760e..6a191d973b 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 fcf76299aa..67f7922291 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 c903417ee4..609a18e7f3 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="" |