2013-08-02 12:00:56 +00:00
|
|
|
#!/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>"
|
|
|
|
|
2014-10-31 11:45:51 +00:00
|
|
|
# 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}
|
|
|
|
|
2013-08-02 12:00:56 +00:00
|
|
|
# Archive A and package name P
|
|
|
|
A=${PACKAGE}-${VERSION}.tar.gz
|
|
|
|
P=${PACKAGE}-${VERSION}
|
|
|
|
|
|
|
|
|
|
|
|
# Other interesting configure options:
|
2014-10-31 11:45:51 +00:00
|
|
|
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
|
|
|
|
|
2013-08-02 12:00:56 +00:00
|
|
|
|
|
|
|
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
|
2014-10-31 11:45:51 +00:00
|
|
|
#cd ${PREFIX}/lib
|
|
|
|
#ln -s ../../share/clients/libnanox-instrumentation-ayudame_* .
|
|
|
|
#sit_info "OmpSs clients have been linked into ${PREFIX}/lib/"
|
2013-08-02 12:00:56 +00:00
|
|
|
}
|
|
|
|
|