sit/packages/numlib/zoltan/3.6
2024-03-28 02:45:19 +01:00

47 lines
1.1 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.7.3 MPI=openmpi MPI_VERSION=1.6.4 ./sit numlib/zoltan/3.6
#
# hermit sit command:
# TODO! not yet installed with sit...
CATEGORY="numlib"
PACKAGE="zoltan"
VERSION="3.6"
URL="http://www.labri.fr/perso/pelegrin/scotch/"
INSTALLER="Elke Flehmig <flehmig@hlrs.de>"
# Archive A and package name P
A=${PACKAGE}_${VERSION}.tgz
P=${PACKAGE}_${VERSION}/Zoltan_v3.6
src_prepare() {
case $PLATFORM in
hermit|hermit1)
echo "Building for hermit."
;;
laki|*)
echo "Building for laki."
;;
esac
}
CONFIGURE_OPTS="--with-id-type=ullong CC=mpicc CXX=mpicxx"
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
}