sit/packages/numlib/parmetis/4.0.3

61 lines
1.5 KiB
Groff
Raw Permalink Normal View History

#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
#
# laki sit command:
2014-04-16 09:26:53 +00:00
# PREFIX_BASE=/opt COMPILER=gnu COMPILER_VERSION=4.8.1 MPI=openmpi MPI_VERSION=1.6.5 ./sit numlib/parmetis/4.0.3
#
# hermit sit command:
2014-04-16 09:26:53 +00:00
# PREFIX_BASE=/opt/hlrs COMPILER=pgi COMPILER_VERSION=13.10.0 ./sit numlib/parmetis/4.0.3
CATEGORY="numlib"
PACKAGE="parmetis"
VERSION="4.0.3"
URL="http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download"
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
;;
laki)
2013-12-19 09:55:53 +00:00
module load tools/cmake/2.8.12
;;
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/metis/include
patch metis.h < $SRC_POOL/4.0.3_metis.h_patch
# on cray, replace mpicc and mpicxx with cray mpi compiler commands
case $PLATFORM in
hermit|hermit1)
sit_info "patching Makefile with cray mpi compiler on hermit"
cd $SRCDIR
patch Makefile < $SRC_POOL/4.0.3_Makefile_patch_cray
;;
esac
}
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
}