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/pmars | |
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/pmars')
-rw-r--r-- | games/pmars/Makefile | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/games/pmars/Makefile b/games/pmars/Makefile index 8271d0bc3313..920e01f00159 100644 --- a/games/pmars/Makefile +++ b/games/pmars/Makefile @@ -16,26 +16,24 @@ COMMENT= A portable corewar system with ICWS'94 extensions WRKSRC= ${WRKDIR}/${DISTNAME}/src -OPTIONS= CURSES "Build the console (graphical) interface" on \ - ICWS94 "Enable ICWS'94 support" on \ - OPTIMIZED_CFLAGS "Enable compilation optimizations" on \ - PERMUTATE "Enable the -P switch" on \ - SERVER "Build the command-line interface" on \ - SMALLMEM "Use 16-bit addresses (smaller)" off \ - X11 "Build the X11 (graphical) interface" on +OPTIONS_MULTI= INT +OPTIONS_MULTI_INT= CURSES SERVER X11 +OPTIONS_DEFINE= ICWS94 OPTIMIZED_CFLAGS PERMUTATE SMALLMEM DOCS +OPTIONS_DEFAULT= CURSES ICWS94 OPTIMIZED_CFLAGS PERMUTATE SERVER X11 +CURSES_DESC= Build the console (graphical) interface +ICWS94_DESC= Enable ICWS'94 support +PERMUTATE_DESC= Enable the -P switch +SERVER_DESC= Build the command-line interface +SMALLMEM_DESC= Use 16-bit addresses (smaller) MAKE_ARGS+= CFLAGS+="${CFLAGS}" \ CFLAGS+="-fno-builtin" MAN6= pmars.6 -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITHOUT_CURSES) && defined(WITHOUT_SERVER) && defined(WITHOUT_X11) -IGNORE= needs at least one interface (CURSES, SERVER or X11) -.endif - -.if !defined(WITHOUT_CURSES) +.if ${PORT_OPTIONS:MCURSES} TARGETS+= curses CURSES_ARGS+= CFLAGS+="-DGRAPHX" \ LIB+="-lcurses" @@ -44,19 +42,19 @@ PLIST_SUB+= CURSES="" PLIST_SUB+= CURSES="@comment " .endif -.if !defined(WITHOUT_ICWS94) +.if ${PORT_OPTIONS:MICWS94} MAKE_ARGS+= CFLAGS+="-DEXT94" .endif -.if !defined(WITHOUT_OPTIMIZED_CFLAGS) +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} MAKE_ARGS+= CFLAGS+="-O3 -fomit-frame-pointer" .endif -.if !defined(WITHOUT_PERMUTATE) +.if ${PORT_OPTIONS:MPERMUTATE} MAKE_ARGS+= CFLAGS+="-DPERMUTATE" .endif -.if !defined(WITHOUT_SERVER) +.if ${PORT_OPTIONS:MSERVER} TARGETS+= server SERVER_ARGS+= CFLAGS+="-DSERVER" PLIST_SUB+= SERVER="" @@ -64,11 +62,11 @@ PLIST_SUB+= SERVER="" PLIST_SUB+= SERVER="@comment " .endif -.if defined(WITH_SMALLMEM) +.if ${PORT_OPTIONS:MSMALLMEM} MAKE_ARGS+= CFLAGS+="-DSMALLMEM" .endif -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} USE_XORG= x11 TARGETS+= x11 X11_ARGS+= CFLAGS+="-DXWINGRAPHX" \ @@ -91,11 +89,11 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${PREFIX}/bin .endfor ${INSTALL_MAN} ${WRKSRC}/../doc/pmars.6 ${PREFIX}/man/man6 -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} . for f in README config doc warriors ${CP} -R ${WRKSRC}/../${f} ${DOCSDIR} . endfor .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |