56 lines
1.4 KiB
Bash
Executable file
56 lines
1.4 KiB
Bash
Executable file
#!/bin/sh
|
|
# sit class file
|
|
#
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
|
|
#
|
|
|
|
CATEGORY="debugger"
|
|
PACKAGE="temanejo"
|
|
# if VERSIOn not set assume 1.0
|
|
: ${VERSION:="1.0"}
|
|
URL="http://www.hlrs.de/temanejo/"
|
|
INSTALLER="Jose Gracia <gracia@hlrs.de>"
|
|
|
|
# build with Temanejo gui (0|1)
|
|
enable_gui=${enable_gui:=1}
|
|
# install modulefile
|
|
enable_module=${enable_module:=1}
|
|
MODULE_TEMPLATE=${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/modulefiles/HLRS_temanejo_modulefile.in
|
|
# build OmpSs plugin; set to path to OmpSs installation
|
|
enable_ompss=${enable_ompss:=0}
|
|
enable_ompt=${enable_ompt:=0}
|
|
|
|
# Archive A and package name P
|
|
A=${PACKAGE}-${VERSION}.tar.gz
|
|
P=${PACKAGE}-${VERSION}
|
|
|
|
|
|
# Other interesting configure options:
|
|
CONFIGURE_OPTS+=" "
|
|
|
|
if [ $enable_module == 1 ] ; then
|
|
CONFIGURE_OPTS+=" --enable-modulefile=${MODULE_TEMPLATE} "
|
|
fi
|
|
if [ $enable_gui == 0 ]; then
|
|
CONFIGURE_OPTS+=" --disable-temanejo "
|
|
fi
|
|
if [ $enable_ompss != 0 ]; then
|
|
CONFIGURE_OPTS+=" --with-ompss=$enable_ompss "
|
|
fi
|
|
if [ $enable_ompt != 0 ]; then
|
|
CONFIGURE_OPTS+=" --enable-ompt "
|
|
fi
|
|
|
|
|
|
src_postinst() {
|
|
# set link to module file
|
|
cd ${PREFIX}/../modulefiles
|
|
ln -s ../${VERSION}/modulefile/${VERSION} .
|
|
sit_info "Modulefile has been linked into ${PREFIX}/../modulefiles"
|
|
|
|
# set link to latest ayudame clients for OmpSs
|
|
#cd ${PREFIX}/lib
|
|
#ln -s ../../share/clients/libnanox-instrumentation-ayudame_* .
|
|
#sit_info "OmpSs clients have been linked into ${PREFIX}/lib/"
|
|
}
|
|
|