aboutsummaryrefslogtreecommitdiff
path: root/games/fmars
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 16:35:45 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 16:35:45 +0000
commit3a283e24f296371e9b753c09e3e62a92ef3d8703 (patch)
tree88e0a2bbddafb5c9bdc18e8e02c5e59fb9f9d471 /games/fmars
parent7a0a8929bea1c510b4f30261d294a78b556b49d7 (diff)
downloadports-3a283e24f296371e9b753c09e3e62a92ef3d8703.tar.gz
ports-3a283e24f296371e9b753c09e3e62a92ef3d8703.zip
Convert to new options framework
Notes
Notes: svn path=/head/; revision=299119
Diffstat (limited to 'games/fmars')
-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