aboutsummaryrefslogtreecommitdiffstats
path: root/games/exmars/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/exmars/Makefile')
-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