summaryrefslogtreecommitdiff
path: root/games/openra
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-07-19 07:42:21 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-07-19 07:42:21 +0000
commitaa96a521bcc5bb3d23d35a3efb214fe0a214ea33 (patch)
treee4f10c30a8c04f8d60e32e86e645cc614c9b2850 /games/openra
parentdevel/ponscripter-sekai: expose DOCS option (diff)
Convert my ports to target option helpers
Notes
Notes: svn path=/head/; revision=392488
Diffstat (limited to 'games/openra')
-rw-r--r--games/openra/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/games/openra/Makefile b/games/openra/Makefile
index c0e8cd927111..1882a81f868b 100644
--- a/games/openra/Makefile
+++ b/games/openra/Makefile
@@ -71,8 +71,6 @@ ZENITY_RUN_DEPENDS=xdg-open:${PORTSDIR}/devel/xdg-utils \
zenity:${PORTSDIR}/x11/zenity
ZENITY_DESC= Use native crash dialog
-.include <bsd.port.options.mk>
-
post-extract:
@${MKDIR} ${WRKSRC}/thirdparty/download
@${CP} -v ${DISTFILES:C/:.*//:N*.tar*:N*.zip:S,^,${_DISTDIR}/,} \
@@ -102,19 +100,15 @@ post-patch:
${REINPLACE_CMD} -e 's/"BSD"/"${OPSYS}"/' \
${WRKSRC}/OpenRA.Game/Platform.cs
-post-build:
-.if ${PORT_OPTIONS:MDOCS}
+post-build-DOCS-on:
@${ECHO_MSG} Generating HTML documentation...
@for f in ${WRKSRC}/*.md; do \
${ECHO_MSG} markdown $$f -\> $${f%.md}.html; \
markdown $$f >$${f%.md}.html; \
done
-.endif
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
-.endif
.include <bsd.port.mk>