50 lines
1.6 KiB
Bash
Executable file
50 lines
1.6 KiB
Bash
Executable file
#!/bin/sh
|
|
# sit class file
|
|
#
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
|
|
#
|
|
# laki sit command:
|
|
# TODO! not yet installed with sit
|
|
#
|
|
# hermit sit command:
|
|
# PREFIX_BASE=/opt/hlrs ./sit numlib/zoltan/3.6-parmetis-4.0.3-scotch-6.0.0
|
|
|
|
CATEGORY="numlib"
|
|
PACKAGE="zoltan"
|
|
ZOLTAN_VERSION="3.6"
|
|
VERSION="3.6-parmetis-4.0.3-scotch-6.0.0"
|
|
URL="http://www.labri.fr/perso/pelegrin/scotch/"
|
|
INSTALLER="Elke Flehmig <flehmig@hlrs.de>"
|
|
|
|
# Archive A and package name P
|
|
A=${PACKAGE}_${ZOLTAN_VERSION}.tgz
|
|
P=${PACKAGE}_${ZOLTAN_VERSION}/Zoltan_v3.6
|
|
|
|
module load numlib/scotch/6.0.0
|
|
module load numlib/parmetis/4.0.3
|
|
module load numlib/metis/5.1.0
|
|
|
|
src_prepare() {
|
|
case $PLATFORM in
|
|
hermit|hermit1)
|
|
echo "Building for hermit."
|
|
;;
|
|
laki|*)
|
|
echo "Building for laki."
|
|
;;
|
|
esac
|
|
}
|
|
|
|
CONFIGURE_OPTS="CC=cc CXX=CC --with-id-type=ullong --with-scotch --with-scotch-incdir=/sw/hermit1/hlrs/numlib/scotch/6.0.0/include --with-scotch-libdir=/sw/hermit1/hlrs/numlib/scotch/6.0.0/lib --with-parmetis --with-parmetis-incdir=/sw/hermit1/hlrs/numlib/parmetis/4.0.3/include --with-parmetis-libdir=/sw/hermit1/hlrs/numlib/parmetis/4.0.3/lib --with-libdirs=\"-L/sw/hermit1/hlrs/numlib/metis/5.1.0/lib\" --with-incdirs=\"-I/sw/hermit1/hlrs/numlib/metis/5.1.0/include\" --with-libs=\"-lscotch\""
|
|
|
|
src_pretest() {
|
|
sit_info "Checking zoltan ..."
|
|
make check || sit_fail "Checking zoltan failed"
|
|
}
|
|
|
|
src_postinst() {
|
|
# as examples and doc are already installed with zoltan/3.6, simply set a link:
|
|
cd $PREFIX
|
|
ln -s /sw/hermit1/hlrs/numlib/zoltan/3.6/examples
|
|
ln -s /sw/hermit1/hlrs/numlib/zoltan/3.6/doc
|
|
}
|