update temanejo package

This commit is contained in:
Jose Gracia 2014-10-31 11:45:51 +00:00 committed by Christoph Niethammer
parent 04e48efa99
commit d8da62e782

View file

@ -11,16 +11,32 @@ PACKAGE="temanejo"
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}
# Archive A and package name P
A=${PACKAGE}-${VERSION}.tar.gz
P=${PACKAGE}-${VERSION}
# Other interesting configure options:
MODULE_TEMPLATE=${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/modulefiles/HLRS_temanejo_modulefile.in
CONFIGURE_OPTS=" \
--enable-modulefile=${MODULE_TEMPLATE} \
"
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
src_postinst() {
# set link to module file
@ -29,8 +45,8 @@ src_postinst() {
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/"
#cd ${PREFIX}/lib
#ln -s ../../share/clients/libnanox-instrumentation-ayudame_* .
#sit_info "OmpSs clients have been linked into ${PREFIX}/lib/"
}