summaryrefslogtreecommitdiff
path: root/academic/sundials/sundials.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/sundials/sundials.SlackBuild')
-rw-r--r--academic/sundials/sundials.SlackBuild23
1 files changed, 6 insertions, 17 deletions
diff --git a/academic/sundials/sundials.SlackBuild b/academic/sundials/sundials.SlackBuild
index 669d3917db..f3658e990a 100644
--- a/academic/sundials/sundials.SlackBuild
+++ b/academic/sundials/sundials.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sundials
-VERSION=${VERSION:-2.5.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.6.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,21 +71,9 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cd build
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-../configure \
- --prefix=$PKG/usr \
- --libdir=$PKG/usr/lib${LIBDIRSUFFIX} \
- --build=$ARCH-slackware-linux \
- F77=gfortran \
- --disable-mpi \
- --with-cflags=-fPIC \
- --enable-shared \
- --enable-static=no
-
+cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=BOOL:ON "../"
make
-make install
+make DESTDIR="$PKG/" install
cd ..
@@ -93,8 +81,9 @@ 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_NOTES LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README 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
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh