#!/bin/sh # sit class file # # Christoph Niethammer (C) 2012 # # laki sit command: # PREFIX_BASE=/opt COMPILER=gnu COMPILER_VERSION=4.7.3 MPI=openmpi MPI_VERSION=1.6.5 ./sit numlib/zoltan/3.8 # # hermit sit command: # PREFIX_BASE=/opt/hlrs COMPILER=pgi COMPILER_VERSION=13.9.0 ./sit numlib/zoltan/3.8 CATEGORY="numlib" PACKAGE="zoltan" VERSION="3.8" URL="http://www.labri.fr/perso/pelegrin/scotch/" INSTALLER="Elke Flehmig " # Archive A and package name P A=${PACKAGE}_distrib_v${VERSION}.tar.gz P=Zoltan_v${VERSION} src_prepare() { case $PLATFORM in hermit|hermit1) echo "Building for hermit." CONFIGURE_OPTS="--with-id-type=ullong CC=cc CXX=CC" ;; laki|*) echo "Building for laki." CONFIGURE_OPTS="--with-id-type=ullong CC=mpicc CXX=mpicxx" ;; esac } src_pretest() { sit_info "Checking zoltan ..." make check || sit_fail "Checking zoltan failed" sit_info "Building examples ..." make examples || sit_fail"Building examples failed" } src_postinst() { # mv examples to target (not included in any make install version) mv $BUILDDIR/example $PREFIX # mv documentation to target (not included in make install) mv $SRCDIR/doc $PREFIX }