aboutsummaryrefslogtreecommitdiff
path: root/games/pmars
diff options
context:
space:
mode:
Diffstat (limited to 'games/pmars')
-rw-r--r--games/pmars/Makefile45
-rw-r--r--games/pmars/pkg-plist1
2 files changed, 12 insertions, 34 deletions
diff --git a/games/pmars/Makefile b/games/pmars/Makefile
index 2454ab73c4f6..79f14362aaa1 100644
--- a/games/pmars/Makefile
+++ b/games/pmars/Makefile
@@ -8,7 +8,7 @@ CATEGORIES= games
MASTER_SITES= SF/corewar/pMARS/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= A portable corewar system with ICWS'94 extensions
+COMMENT= Portable corewar system with ICWS'94 extensions
WRKSRC= ${WRKDIR}/${DISTNAME}/src
@@ -22,45 +22,27 @@ PERMUTATE_DESC= Enable the -P switch
SERVER_DESC= Build the command-line interface
SMALLMEM_DESC= Use 16-bit addresses (smaller)
+OPTIONS_SUB= yes
+
MAKE_ARGS+= CFLAGS+="${CFLAGS}" \
CFLAGS+="-fno-builtin"
-MAN6= pmars.6
+ICWS94_MAKE_ARGS= CFLAGS+="-DEXT94"
+OPTIMIZED_CFLAGS_MAKE_ARGS= CFLAGS+="-O3 -fomit-frame-pointer"
+PERMUTATE_MAKE_ARGS= CFLAGS+="-DPERMUTATE"
+SMALLMEM_MAKE_ARGS= CFLAGS+="-DSMALLMEM"
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCURSES}
TARGETS+= curses
CURSES_ARGS+= CFLAGS+="-DGRAPHX" \
LIB+="-lcurses"
-PLIST_SUB+= CURSES=""
-.else
-PLIST_SUB+= CURSES="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MICWS94}
-MAKE_ARGS+= CFLAGS+="-DEXT94"
-.endif
-
-.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
-MAKE_ARGS+= CFLAGS+="-O3 -fomit-frame-pointer"
-.endif
-
-.if ${PORT_OPTIONS:MPERMUTATE}
-MAKE_ARGS+= CFLAGS+="-DPERMUTATE"
.endif
.if ${PORT_OPTIONS:MSERVER}
TARGETS+= server
SERVER_ARGS+= CFLAGS+="-DSERVER"
-PLIST_SUB+= SERVER=""
-.else
-PLIST_SUB+= SERVER="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MSMALLMEM}
-MAKE_ARGS+= CFLAGS+="-DSMALLMEM"
.endif
.if ${PORT_OPTIONS:MX11}
@@ -69,9 +51,6 @@ TARGETS+= x11
X11_ARGS+= CFLAGS+="-DXWINGRAPHX" \
CFLAGS+="-I${LOCALBASE}/include" \
LIB+="-L${LOCALBASE}/lib -lX11"
-PLIST_SUB+= X11=""
-.else
-PLIST_SUB+= X11="@comment "
.endif
do-build:
@@ -83,14 +62,12 @@ do-build:
do-install:
.for f in ${TARGETS}
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${STAGEDIR}${PREFIX}/bin
.endfor
- ${INSTALL_MAN} ${WRKSRC}/../doc/pmars.6 ${PREFIX}/man/man6
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/../doc/pmars.6 ${STAGEDIR}${PREFIX}/man/man6
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
. for f in README config doc warriors
- ${CP} -R ${WRKSRC}/../${f} ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/../${f} ${STAGEDIR}${DOCSDIR}
. endfor
-.endif
.include <bsd.port.mk>
diff --git a/games/pmars/pkg-plist b/games/pmars/pkg-plist
index 6234735470ca..a2970c733706 100644
--- a/games/pmars/pkg-plist
+++ b/games/pmars/pkg-plist
@@ -1,5 +1,6 @@
%%CURSES%%bin/pmars-curses
%%SERVER%%bin/pmars-server
+man/man6/pmars.6.gz
%%X11%%bin/pmars-x11
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/config/94x.opt