diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-13 00:35:45 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-13 00:35:45 +0800 |
commit | b0ad879e3e23b8ba6d75396d593d1bba436ffed6 (patch) | |
tree | 8b078441d20301eb3b13f3b6b3a374c4688468a4 /games/abe | |
parent | 624c78988bf68a8f633b795635f8ba4b2fffed13 (diff) | |
download | freebsd-ports-gnome-b0ad879e3e23b8ba6d75396d593d1bba436ffed6.tar.gz freebsd-ports-gnome-b0ad879e3e23b8ba6d75396d593d1bba436ffed6.tar.zst freebsd-ports-gnome-b0ad879e3e23b8ba6d75396d593d1bba436ffed6.zip |
Convert to new options framework
Diffstat (limited to 'games/abe')
-rw-r--r-- | games/abe/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/games/abe/Makefile b/games/abe/Makefile index 5b1715a95b31..5ebb76a609e7 100644 --- a/games/abe/Makefile +++ b/games/abe/Makefile @@ -25,8 +25,9 @@ CONFIGURE_ARGS= --with-data-dir=${DATADIR} MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \ AUTOHEADER="${TRUE}" -OPTIONS= GOD_MODE "Enable God Mode (toggle with 'g')" off \ - OPTIMIZED_CFLAGS "Enable compilation optimizations" on +OPTIONS_DEFINE= GOD_MODE OPTIMIZED_CFLAGS +OPTIONS_DEFAULT= OPTIMIZED_CFLAGS +GOD_MODE_DESC= Enable God Mode (toggle with 'g') post-install: @${MKDIR} ${DATADIR} @@ -34,15 +35,15 @@ post-install: @${CP} -R ${WRKSRC}/${d} ${DATADIR} .endfor -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_GOD_MODE) || defined(WITHOUT_OPTIMIZED_CFLAGS) +.if ${PORT_OPTIONS:MGOD_MODE} || !empty{PORT_OPTIONS:MOPTIMIZED_CFLAGS} post-patch: -. if defined(WITH_GOD_MODE) +. if ${PORT_OPTIONS:MGOD_MODE} @${REINPLACE_CMD} -e 's|\(#define GOD_MODE\) 0|\1 1|' \ ${WRKSRC}/src/Game.h . endif -. if defined(WITHOUT_OPTIMIZED_CFLAGS) +. if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS} @${REINPLACE_CMD} -e 's|-O2||g ; \ s|-fomit-frame-pointer||g ; \ s|-ffast-math||g ; \ @@ -51,4 +52,4 @@ post-patch: . endif .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |