diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/pioneer/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/games/pioneer/Makefile b/games/pioneer/Makefile index 689a8d9339cd..92e22fb8ca5e 100644 --- a/games/pioneer/Makefile +++ b/games/pioneer/Makefile @@ -63,10 +63,12 @@ DESKTOP_ENTRIES="Pioneer" "${COMMENT}" \ 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 <bsd.port.options.mk> @@ -94,6 +96,14 @@ post-patch-MODELCOMPILER-off: .SILENT ${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 \ |