aboutsummaryrefslogtreecommitdiff
path: root/games/exmars
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/exmars
parent7a0a8929bea1c510b4f30261d294a78b556b49d7 (diff)
downloadports-3a283e24f296371e9b753c09e3e62a92ef3d8703.tar.gz
ports-3a283e24f296371e9b753c09e3e62a92ef3d8703.zip
Notes
Diffstat (limited to 'games/exmars')
-rw-r--r--games/exmars/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/exmars/Makefile b/games/exmars/Makefile
index 1bb57e4dac77..a1d8fa1e7b95 100644
--- a/games/exmars/Makefile
+++ b/games/exmars/Makefile
@@ -17,7 +17,8 @@ COMMENT= Memory Array Redcode Simulator, just like exhaust and pMARS
REINPLACE_ARGS= -i ''
ALL_TARGET= ${PORTNAME}
-OPTIONS= OPTIMIZED_CFLAGS "Enable compilaton optimizations (>= 5.X)" on
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS
+OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
do-install:
# Program.
@@ -54,7 +55,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|\($${OPT}\)|${CFLAGS} \1|' ${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