diff options
author | gahr <gahr@FreeBSD.org> | 2012-10-01 21:37:58 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2012-10-01 21:37:58 +0800 |
commit | 8a967386ef981b71443e98bd5fbbe316b00ca517 (patch) | |
tree | 54d34c9267a27e7b96bbe1bffc5f44023d056b2b /games/nil | |
parent | dfbac70c2d55dab050d6fe49f0e7ca2df1eca2cd (diff) | |
download | freebsd-ports-gnome-8a967386ef981b71443e98bd5fbbe316b00ca517.tar.gz freebsd-ports-gnome-8a967386ef981b71443e98bd5fbbe316b00ca517.tar.zst freebsd-ports-gnome-8a967386ef981b71443e98bd5fbbe316b00ca517.zip |
- Convert to OptionsNG
Notified by: http://wiki.freebsd.org/Ports/Options/ConvertingToOptionsNG
Diffstat (limited to 'games/nil')
-rw-r--r-- | games/nil/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
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 <bsd.port.pre.mk> +.include <bsd.port.options.mk> .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 <bsd.port.post.mk> +.include <bsd.port.mk> |