From d8da62e78224273a277c7f8d2a5e948d60adf49d Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Fri, 31 Oct 2014 11:45:51 +0000 Subject: [PATCH] update temanejo package --- packages/debugger/temanejo/temanejo-1.0_any | 30 ++++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/packages/debugger/temanejo/temanejo-1.0_any b/packages/debugger/temanejo/temanejo-1.0_any index 2a4886b..b9e171e 100755 --- a/packages/debugger/temanejo/temanejo-1.0_any +++ b/packages/debugger/temanejo/temanejo-1.0_any @@ -11,16 +11,32 @@ PACKAGE="temanejo" URL="http://www.hlrs.de/temanejo/" INSTALLER="Jose Gracia " +# 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/" }