diff --git a/packages/numlib/parmetis/4.0.2 b/packages/numlib/parmetis/4.0.2 index 4cfeb76..c6b02a9 100755 --- a/packages/numlib/parmetis/4.0.2 +++ b/packages/numlib/parmetis/4.0.2 @@ -11,7 +11,14 @@ 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 +case $PLATFORM in + hermit|hermit1) + module load tools/cmake/2.8.10 + ;; + laki) + module load tools/cmake/2.8.10.2 + ;; +esac # Archive A and package name P A=${PACKAGE}-${VERSION}.tar.gz @@ -24,6 +31,15 @@ src_prepare() { sit_info "patching metis.h with 64bit width" cd $SRCDIR/metis/include patch metis.h < $SRC_POOL/4.0.2_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.2_Makefile_patch_cray + ;; + esac } src_configure() {