From 8a967386ef981b71443e98bd5fbbe316b00ca517 Mon Sep 17 00:00:00 2001 From: gahr Date: Mon, 1 Oct 2012 13:37:58 +0000 Subject: - Convert to OptionsNG Notified by: http://wiki.freebsd.org/Ports/Options/ConvertingToOptionsNG --- games/nil/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'games') diff --git a/games/nil/Makefile b/games/nil/Makefile index 3f79792f03f0..813c2c7ef452 100644 --- a/games/nil/Makefile +++ b/games/nil/Makefile @@ -22,9 +22,10 @@ USE_GMAKE= yes USE_SDL= image mixer sdl ttf GNU_CONFIGURE= yes -OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on +OPTIONS_DEFINE= OPTIMIZED_CFLAGS +OPTIONS_DEFAULT=OPTIMIZED_CFLAGS -.include +.include .if ${ARCH} == "ia64" BROKEN= does not link on ${ARCH} @@ -37,7 +38,7 @@ post-patch: s|sdl-config|${SDL_CONFIG}|' @${REINPLACE_CMD} -e 's|\.\./data|${DATADIR}|' \ ${WRKSRC}/src/common/configuration/configuration.cpp -.if !defined(WITHOUT_OPTIMIZED_CFLAGS) +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} @${REINPLACE_CMD} -e 's|\(--subcall\)|\1 --enable-optimize|' \ ${WRKSRC}/configure .endif @@ -51,4 +52,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/docs/HOWTO ${DOCSDIR} .endif -.include +.include -- cgit