2012-11-27 08:54:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# sit class file
|
|
|
|
#
|
|
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
|
|
|
|
#
|
|
|
|
|
|
|
|
CATEGORY="performance"
|
|
|
|
PACKAGE="extrae"
|
|
|
|
VERSION="2.3"
|
2012-11-27 09:04:14 +00:00
|
|
|
URL="http://www.bsc.es/computer-sciences/extrae"
|
2012-11-27 08:54:47 +00:00
|
|
|
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
|
|
|
|
|
|
|
# Archive A and package name P
|
|
|
|
A=${PACKAGE}-${VERSION}.tar.bz2
|
|
|
|
P=${PACKAGE}-${VERSION}
|
|
|
|
|
|
|
|
enable_papi=${enable_papi:=1}
|
|
|
|
|
|
|
|
MAKEOPTS="-j1"
|
|
|
|
|
|
|
|
# Other interesting configure options:
|
|
|
|
#--disable-doc \
|
|
|
|
CONFIGURE_OPTS="\
|
|
|
|
--with-mpi=$MPI_DIR \
|
|
|
|
--without-pacx \
|
|
|
|
--enable-sampling \
|
|
|
|
--enable-posix-clock \
|
|
|
|
--without-unwind \
|
|
|
|
--without-dyninst \
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
|
|
# use PAPI
|
|
|
|
if [ $enable_papi != 0 ] ; then
|
|
|
|
PAPI_DIR=$(dirname $(dirname $(which papi_avail)))
|
|
|
|
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi=$PAPI_DIR"
|
|
|
|
else
|
|
|
|
CONFIGURE_OPTS="$CONFIGURE_OPTS --without-papi"
|
|
|
|
fi
|
|
|
|
|
|
|
|
BUILDDIR="${SRCDIR}"
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
mkdir -p $PREFIX
|
|
|
|
make install || sit_fail "Installation failed"
|
|
|
|
}
|