diff -ruN pioneer.orig/Makefile pioneer/Makefile --- pioneer.orig/Makefile 2016-03-27 11:34:57.000000000 +0400 +++ pioneer/Makefile 2016-03-31 13:01:03.011986000 +0400 @@ -63,10 +63,12 @@ SUB_FILES= pkg-message SUB_LIST= QUICKSTART_PATH="${QUICKSTART_PATH}" -OPTIONS_DEFINE= DOCS MODELCOMPILER +OPTIONS_DEFINE= DOCS MODELCOMPILER PROFILER OPTIONS_DEFAULT= MODELCOMPILER MODELCOMPILER_DESC= Build/install modelcompiler tool MODELCOMPILER_PLIST_FILES= bin/${PORTNAME}-modelcompiler +PROFILER_DESC= Build with internal profiler +PROFILER_CONFIGURE_ON= --enable-profiler .include @@ -94,6 +96,14 @@ ${REINPLACE_CMD} -e 's/pioneer modelcompiler/pioneer/' \ ${WRKSRC}/src/Makefile.am +post-patch-PROFILER-off: .SILENT + ${REINPLACE_CMD} -e '/^SUBDIRS/s/ profiler//' \ + ${WRKSRC}/contrib/Makefile.am + ${REINPLACE_CMD} -i '.p.bak' -e '/libjson.a/s| \\|| ; /libprofiler.a/d' \ + ${WRKSRC}/src/Makefile.am + ${REINPLACE_CMD} -i '.p.bak' -e '/contrib\/profiler/d' \ + ${WRKSRC}/configure.ac + post-install: (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) ${INSTALL_DATA} ${WRKSRC}/application-icon/pngs/pioneer-256x256.png \