diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-04-24 21:08:18 +0000 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-04-24 21:08:18 +0000 |
commit | 175a75f3ff879fb2f34d0048983b5b9e1485f500 (patch) | |
tree | b6430a206a72d7d7b56179447329c106f9112bb6 | |
parent | 8cf15bbca667284f3fa66b7788ac19de2f3fa6d3 (diff) | |
download | FreeBSD-ports-175a75f3ff879fb2f34d0048983b5b9e1485f500.zip FreeBSD-ports-175a75f3ff879fb2f34d0048983b5b9e1485f500.tar.gz |
- Fix OPTIONS handling.
- Fix IGNORE message.
- Sort option handling code.
- Remove '@' from installation commands.
- Bump PORTREVISION.
Approved by: garga (mentor)
-rw-r--r-- | games/pmars/Makefile | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/games/pmars/Makefile b/games/pmars/Makefile index 569fdca..93ca24b 100644 --- a/games/pmars/Makefile +++ b/games/pmars/Makefile @@ -7,6 +7,7 @@ PORTNAME= pmars PORTVERSION= 0.9.2 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= corewar @@ -31,36 +32,32 @@ MAN6= pmars.6 .include <bsd.port.pre.mk> -.if !defined(WITH_CURSES) && !defined(WITH_SERVER) && !defined(WITH_X11) -IGNORE= Please select at least one interface +.if defined(WITHOUT_CURSES) && defined(WITHOUT_SERVER) && defined(WITHOUT_X11) +IGNORE= needs at least one interface (CURSES, SERVER or X11) .endif -.if defined(WITH_ICWS94) +.if !defined(WITHOUT_CURSES) +TARGETS+= curses +CURSES_ARGS+= CFLAGS+="-DGRAPHX" \ + LIB+="-lcurses" +PLIST_SUB+= CURSES="" +.else +PLIST_SUB+= CURSES="@comment " +.endif + +.if !defined(WITHOUT_ICWS94) MAKE_ARGS+= CFLAGS+="-DEXT94" .endif -.if defined(WITH_OPTIMIZED_CFLAGS) +.if !defined(WITHOUT_OPTIMIZED_CFLAGS) MAKE_ARGS+= CFLAGS+="-O3 -fomit-frame-pointer" .endif -.if defined(WITH_PERMUTATE) +.if !defined(WITHOUT_PERMUTATE) MAKE_ARGS+= CFLAGS+="-DPERMUTATE" .endif -.if defined(WITH_SMALLMEM) -MAKE_ARGS+= CFLAGS+="-DSMALLMEM" -.endif - -.if defined(WITH_CURSES) -TARGETS+= curses -CURSES_ARGS+= CFLAGS+="-DGRAPHX" \ - LIB+="-lcurses" -PLIST_SUB+= CURSES="" -.else -PLIST_SUB+= CURSES="@comment " -.endif - -.if defined(WITH_SERVER) +.if !defined(WITHOUT_SERVER) TARGETS+= server SERVER_ARGS+= CFLAGS+="-DSERVER" PLIST_SUB+= SERVER="" @@ -68,7 +65,11 @@ PLIST_SUB+= SERVER="" PLIST_SUB+= SERVER="@comment " .endif -.if defined(WITH_X11) +.if defined(WITH_SMALLMEM) +MAKE_ARGS+= CFLAGS+="-DSMALLMEM" +.endif + +.if !defined(WITHOUT_X11) USE_XLIB= yes TARGETS+= x11 X11_ARGS+= CFLAGS+="-DXWINGRAPHX" \ @@ -88,14 +89,14 @@ do-build: do-install: .for f in ${TARGETS} - @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${PREFIX}/bin .endfor .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + ${MKDIR} ${DOCSDIR} . for f in README config doc warriors - @${CP} -R ${WRKSRC}/../${f} ${DOCSDIR} + ${CP} -R ${WRKSRC}/../${f} ${DOCSDIR} . endfor - @${INSTALL_MAN} ${WRKSRC}/../doc/pmars.6 ${PREFIX}/man/man6 + ${INSTALL_MAN} ${WRKSRC}/../doc/pmars.6 ${PREFIX}/man/man6 .endif .include <bsd.port.post.mk> |