aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2012-09-06 23:55:47 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2012-09-06 23:55:47 +0800
commit60927953ad91e5d7f1821c6195ca43e2a0d0136a (patch)
tree45d1f4177cabc5c0c983a60a8eae361c80aceadf
parentd2fa5c5925777df540cf791caf9b8bc74064d00c (diff)
downloadfreebsd-ports-gnome-60927953ad91e5d7f1821c6195ca43e2a0d0136a.tar.gz
freebsd-ports-gnome-60927953ad91e5d7f1821c6195ca43e2a0d0136a.tar.zst
freebsd-ports-gnome-60927953ad91e5d7f1821c6195ca43e2a0d0136a.zip
- Add optionsNG
PR: 171194 Submitted by: nemysis <nemysis@gmx.ch>
-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>