sit script and patch file for parmetis

This commit is contained in:
Elke Flehmig 2013-04-22 08:48:22 +00:00 committed by Christoph Niethammer
parent 6a027ec448
commit d20de5fd01
2 changed files with 47 additions and 0 deletions

39
packages/numlib/parmetis/4.0.2 Executable file
View file

@ -0,0 +1,39 @@
#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
#
CATEGORY="numlib"
PACKAGE="parmetis"
VERSION="4.0.2"
URL="http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download"
INSTALLER="Elke Flehmig <flehmig@hlrs.de>"
# 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
}

View file

@ -0,0 +1,8 @@
33c33
< #define IDXTYPEWIDTH 32
---
> #define IDXTYPEWIDTH 64
43c43
< #define REALTYPEWIDTH 32
---
> #define REALTYPEWIDTH 64