aboutsummaryrefslogtreecommitdiffstats
path: root/games/fmars/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/fmars/Makefile')
-rw-r--r--games/fmars/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/fmars/Makefile b/games/fmars/Makefile
index e49301f9578b..297e4d13b1a3 100644
--- a/games/fmars/Makefile
+++ b/games/fmars/Makefile
@@ -23,7 +23,8 @@ USE_GMAKE= yes
ALL_TARGET= x${PORTNAME}
-OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
+OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
.include <bsd.port.pre.mk>
@@ -34,7 +35,7 @@ post-patch:
${WRKSRC}/${MAKEFILE}
# Enable/disable compilation optimizations.
-.if defined(WITHOUT_OPTIMIZED_CFLAGS)
+.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|$$(OPT)||' ${WRKSRC}/${MAKEFILE}
.endif
@@ -49,7 +50,7 @@ do-install:
.endfor
# Documentation (optional).
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif