svn commit: r305122 - head/games/nil
Pietro Cerutti
gahr at FreeBSD.org
Mon Oct 1 13:37:59 UTC 2012
Author: gahr
Date: Mon Oct 1 13:37:58 2012
New Revision: 305122
URL: http://svn.freebsd.org/changeset/ports/305122
Log:
- Convert to OptionsNG
Notified by: http://wiki.freebsd.org/Ports/Options/ConvertingToOptionsNG
Modified:
head/games/nil/Makefile (contents, props changed)
Modified: head/games/nil/Makefile
==============================================================================
--- head/games/nil/Makefile Mon Oct 1 13:32:10 2012 (r305121)
+++ head/games/nil/Makefile Mon Oct 1 13:37:58 2012 (r305122)
@@ -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>
More information about the svn-ports-head
mailing list