summaryrefslogtreecommitdiff
path: root/academic/metis/metis.SlackBuild
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2011-05-31 18:12:49 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-06-13 01:31:18 -0400
commitb2d62ba24b7e4de0db6b731ae67c9dbfdd9f0e26 (patch)
tree3592a8c7878d68e83ffd21d5223602a1b1b59521 /academic/metis/metis.SlackBuild
parent8b09d01ef9da7469aa51413381bb196768d3b147 (diff)
downloadslackbuilds-b2d62ba24b7e4de0db6b731ae67c9dbfdd9f0e26.tar.gz
academic/metis: Updated for version 4.0.3.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
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