aboutsummaryrefslogtreecommitdiff
path: root/games/secretmaryochronicles/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2012-09-06 15:55:47 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2012-09-06 15:55:47 +0000
commit3792801bfbb45464ab2e3daf084a9e12151e56b3 (patch)
tree45d1f4177cabc5c0c983a60a8eae361c80aceadf /games/secretmaryochronicles/Makefile
parentb37cc7bd79c9e2462724129670384559d74defb8 (diff)
downloadports-3792801bfbb45464ab2e3daf084a9e12151e56b3.tar.gz
ports-3792801bfbb45464ab2e3daf084a9e12151e56b3.zip
Notes
Diffstat (limited to 'games/secretmaryochronicles/Makefile')
-rw-r--r--games/secretmaryochronicles/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/games/secretmaryochronicles/Makefile b/games/secretmaryochronicles/Makefile
index 96132a2c71ca..9309f76371ea 100644
--- a/games/secretmaryochronicles/Makefile
+++ b/games/secretmaryochronicles/Makefile
@@ -37,6 +37,10 @@ DATADIR= ${PREFIX}/share/smc
WRKSRC= ${WRKDIR}/smc
+PORTDOCS= controls.html history.html style.css
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/autogen.sh
@@ -45,14 +49,12 @@ run-autotools:
@${REINPLACE_CMD} -e '/^LIBS =/ s|$$|$$(INTLLIBS)|' \
${WRKSRC}/src/Makefile.in
-.if !defined(NOPORTDOCS)
-PORTDOCS= controls.html history.html style.css
-
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
+. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
-.endfor
+. endfor
.endif
.include <bsd.port.mk>