From b2d62ba24b7e4de0db6b731ae67c9dbfdd9f0e26 Mon Sep 17 00:00:00 2001 From: Kyle Guinn <elyk03@gmail.com> Date: Tue, 31 May 2011 18:12:49 -0400 Subject: academic/metis: Updated for version 4.0.3. Signed-off-by: dsomero <xgizzmo@slackbuilds.org> --- academic/metis/metis.SlackBuild | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'academic/metis/metis.SlackBuild') 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 -- cgit v1.2.3