added sit script for metis
This commit is contained in:
parent
d165e6c0f9
commit
a4f0318828
2 changed files with 56 additions and 0 deletions
48
packages/numlib/metis/5.0.3
Executable file
48
packages/numlib/metis/5.0.3
Executable file
|
@ -0,0 +1,48 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# sit class file
|
||||||
|
#
|
||||||
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
|
||||||
|
#
|
||||||
|
|
||||||
|
CATEGORY="numlib"
|
||||||
|
PACKAGE="metis"
|
||||||
|
VERSION="5.0.3"
|
||||||
|
URL="http://glaros.dtc.umn.edu/gkhome/metis/metis/overview"
|
||||||
|
INSTALLER="Elke Flehmig <flehmig@hlrs.de>"
|
||||||
|
|
||||||
|
# cmake 2.8 or higher is required
|
||||||
|
case $PLATFORM in
|
||||||
|
hermit|hermit1)
|
||||||
|
module load tools/cmake/2.8.10
|
||||||
|
module swap PrgEnv-cray PrgEnv-gnu
|
||||||
|
;;
|
||||||
|
laki)
|
||||||
|
module load tools/cmake/2.8.10.2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# 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/include
|
||||||
|
patch metis.h < $SRC_POOL/5.0.3_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
|
||||||
|
}
|
||||||
|
|
8
packages/numlib/metis/5.0.3_metis.h_patch
Normal file
8
packages/numlib/metis/5.0.3_metis.h_patch
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
33c33
|
||||||
|
< #define IDXTYPEWIDTH 32
|
||||||
|
---
|
||||||
|
> #define IDXTYPEWIDTH 64
|
||||||
|
43c43
|
||||||
|
< #define REALTYPEWIDTH 32
|
||||||
|
---
|
||||||
|
> #define REALTYPEWIDTH 64
|
Loading…
Reference in a new issue