From d20de5fd01ef1b3f36d19aa7ce5e722d9c9322b8 Mon Sep 17 00:00:00 2001 From: Elke Flehmig Date: Mon, 22 Apr 2013 08:48:22 +0000 Subject: [PATCH] sit script and patch file for parmetis --- packages/numlib/parmetis/4.0.2 | 39 ++++++++++++++++++++ packages/numlib/parmetis/4.0.2_metis.h_patch | 8 ++++ 2 files changed, 47 insertions(+) create mode 100755 packages/numlib/parmetis/4.0.2 create mode 100644 packages/numlib/parmetis/4.0.2_metis.h_patch diff --git a/packages/numlib/parmetis/4.0.2 b/packages/numlib/parmetis/4.0.2 new file mode 100755 index 0000000..4cfeb76 --- /dev/null +++ b/packages/numlib/parmetis/4.0.2 @@ -0,0 +1,39 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2012 +# + +CATEGORY="numlib" +PACKAGE="parmetis" +VERSION="4.0.2" +URL="http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download" +INSTALLER="Elke Flehmig " + +# cmake 2.8 or higher is required +module load tools/cmake/2.8.10.2 + +# Archive A and package name P +A=${PACKAGE}-${VERSION}.tar.gz +P=${PACKAGE}-${VERSION} + +BUILDDIR=$SRCDIR + +src_prepare() { +# set 64bit width for elementary data types + sit_info "patching metis.h with 64bit width" + cd $SRCDIR/metis/include + patch metis.h < $SRC_POOL/4.0.2_metis.h_patch +} + +src_configure() { + make config prefix=$PREFIX +} + +src_install() { + make install + +# mv manual to target (not included in make install) + sit_info "Installing manual" + cd $SRCDIR/manual; mv manual.pdf $PREFIX +} diff --git a/packages/numlib/parmetis/4.0.2_metis.h_patch b/packages/numlib/parmetis/4.0.2_metis.h_patch new file mode 100644 index 0000000..443373f --- /dev/null +++ b/packages/numlib/parmetis/4.0.2_metis.h_patch @@ -0,0 +1,8 @@ +33c33 +< #define IDXTYPEWIDTH 32 +--- +> #define IDXTYPEWIDTH 64 +43c43 +< #define REALTYPEWIDTH 32 +--- +> #define REALTYPEWIDTH 64