diff --git a/packages/performance/scorep/scorep-1.4.2 b/packages/performance/scorep/scorep-1.4.2 index 355936a..a19ddf2 100755 --- a/packages/performance/scorep/scorep-1.4.2 +++ b/packages/performance/scorep/scorep-1.4.2 @@ -21,5 +21,16 @@ P="${PACKAGE}-${VERSION}" CONFIGURE_OPTS=" \ --enable-shared \ --enable-static \ + --with-gui \ " +PAPI_BASE=$(dirname $(dirname $(which papi_avail))) +if [ ! -z $PAPI_BASE ] +then + CONFIGURE_OPTS+=" --with-papi-header=$PAPI_BASE/include --with-papi-lib=$PAPI_BASE/lib " +fi + +src_prepare () { + patch -p2 < $SCLASS_DIR/$SCLASSFILE-0001.patch +} +