2014-06-16 22:13:33 +00:00
|
|
|
#!/bin/bash -l
|
2013-06-12 08:27:24 +00:00
|
|
|
# sit class file
|
|
|
|
#
|
|
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
|
|
|
|
#
|
2013-10-17 10:22:26 +00:00
|
|
|
# laki sit command:
|
|
|
|
# PREFIX_BASE=/opt ./sit numlib/metis/5.1.0
|
|
|
|
#
|
|
|
|
# hermit sit command:
|
|
|
|
# PREFIX_BASE=/opt/hlrs ./sit numlib/metis/5.1.0
|
2013-06-12 08:27:24 +00:00
|
|
|
|
|
|
|
CATEGORY="numlib"
|
|
|
|
PACKAGE="metis"
|
|
|
|
VERSION="5.1.0"
|
|
|
|
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.11.1
|
|
|
|
;;
|
|
|
|
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.1.0_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
|
|
|
|
}
|
|
|
|
|