45 lines
1.2 KiB
Bash
Executable file
45 lines
1.2 KiB
Bash
Executable file
#!/bin/sh
|
|
# sit class file
|
|
#
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
|
|
#
|
|
# laki sit command:
|
|
# PREFIX_BASE=/opt COMPILER=gnu COMPILER_VERSION=4.8.1 MPI=openmpi MPI_VERSION=1.6.5 ./sit numlib/zoltan/3.81
|
|
#
|
|
# hermit sit command:
|
|
# PREFIX_BASE=/opt/hlrs COMPILER=pgi COMPILER_VERSION=13.10.0 ./sit numlib/zoltan/3.81
|
|
|
|
CATEGORY="numlib"
|
|
PACKAGE="zoltan"
|
|
VERSION="3.81"
|
|
URL="http://www.labri.fr/perso/pelegrin/scotch/"
|
|
INSTALLER="Elke Flehmig <flehmig@hlrs.de>"
|
|
|
|
# Archive A and package name P
|
|
A=${PACKAGE}_distrib_v${VERSION}.tar.gz
|
|
P=Zoltan_v${VERSION}
|
|
|
|
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
|
|
}
|