summaryrefslogtreecommitdiff
path: root/academic/metis/metis.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/metis/metis.SlackBuild')
-rw-r--r--academic/metis/metis.SlackBuild23
1 files changed, 11 insertions, 12 deletions
diff --git a/academic/metis/metis.SlackBuild b/academic/metis/metis.SlackBuild
index 8639fb116c..8c58628e72 100644
--- a/academic/metis/metis.SlackBuild
+++ b/academic/metis/metis.SlackBuild
@@ -4,8 +4,7 @@
# Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM=metis
-VERSION=${VERSION:-4.0.1}
-SRCVERSION=${SRCVERSION:-4.0}
+VERSION=${VERSION:-4.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -19,10 +18,10 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
+PKG=$TMP/package-$PRGNAM-$VERSION
OUTPUT=${OUTPUT:-/tmp}
-DOCS="CHANGES FILES INSTALL VERSION"
+DOCS="CHANGES FILES INSTALL LICENSE VERSION"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -38,34 +37,34 @@ else
LIBDIRSUFFIX=""
fi
+# Recommended by SuiteSparse
+SLKCFLAGS="$SLKCFLAGS -fexceptions -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVERSION
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$SRCVERSION
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-st .
-# The C standard reserves all names that begin with underscores. Metis
-# ignores this and now we have naming conflicts with glibc. Right now only
-# __log2 conflicts, but this should fix the problem for good.
-sed -i 's/__/metis__/g' Lib/rename.h
-
patch -p1 < $CWD/autotoolize.diff
autoreconf -vif
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --infodir=/usr/info \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-shared \
+ --disable-static \
--build=$ARCH-slackware-linux
make