sit/packages/performance/scalasca/scalasca-1.4
Christoph Niethammer 068686efb3 Moved sit class files into sub directories for all the packages.
Moved packages into sub directories easing the use of additional
installation files (e.g. patches).

Calling sit now with the following syntax:

[OPTIONS] ./sit <category>/<package>/<package>-<version>
2024-03-28 02:43:56 +01:00

45 lines
1.1 KiB
Bash
Executable file

#!/bin/sh
# sit class file
#
# Rainer Keller, HLRS (2011)
#
CATEGORY="performance"
PACKAGE="scalasca"
VERSION="1.4"
URL="http://www.scalasca.org/"
INSTALLER="Rainer Keller <keller@hlrs.de>"
# Archive A and package name P
A="scalasca-${VERSION}.tar.gz"
P="scalasca-${VERSION}"
enable_papi=${enable_papi:=1}
# From configure:
# additional options [ONLY TO BE USED IF DIRECTED BY configure]:
# [--compiler=(gnu|pgi|intel|path|ibm|sun)] # Compiler selection
# # (Linux only)
# [--mpi=(mpich|mpich2|lam|openmpi|intel|intel2| # MPI-Lib selection
# hp|scali|mpibull2|bullxmpi|sun|ibmpoe)] # (Linux/Solaris only)
# use PAPI
if [ $enable_papi != 0 ] ; then
module load papi
PAPI_DIR=$(dirname $(dirname $(which papi_avail)))
CONFIGURE_OPTS="${CONFIGURE_OPTS} --with-papi=$PAPI_DIR"
fi
BUILDDIR="${SRCDIR}"
LOGDIR=${LOGDIR:="/tmp/$USER-$PACKAGE-$VERSION/"}
# GRRRR Scalasca is creating their own build-directory (messy configure...)
src_build() {
cd build-linux-${COMPILER}-${MPI}
make
cd -
}