From owner-svn-ports-head@FreeBSD.ORG Tue Nov 5 00:50:19 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 25B31A64; Tue, 5 Nov 2013 00:50:19 +0000 (UTC) (envelope-from danilo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 041B02FB0; Tue, 5 Nov 2013 00:50:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA50oI49017142; Tue, 5 Nov 2013 00:50:18 GMT (envelope-from danilo@svn.freebsd.org) Received: (from danilo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA50oIps016905; Tue, 5 Nov 2013 00:50:18 GMT (envelope-from danilo@svn.freebsd.org) Message-Id: <201311050050.rA50oIps016905@svn.freebsd.org> From: Danilo Egea Gondolfo Date: Tue, 5 Nov 2013 00:50:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332796 - head/games/pmars X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2013 00:50:19 -0000 Author: danilo Date: Tue Nov 5 00:50:18 2013 New Revision: 332796 URL: http://svnweb.freebsd.org/changeset/ports/332796 Log: - Remove indefinite article from COMMENT - Use options helpers - Add stage support Modified: head/games/pmars/Makefile head/games/pmars/pkg-plist Modified: head/games/pmars/Makefile ============================================================================== --- head/games/pmars/Makefile Tue Nov 5 00:42:22 2013 (r332795) +++ head/games/pmars/Makefile Tue Nov 5 00:50:18 2013 (r332796) @@ -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 .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 Modified: head/games/pmars/pkg-plist ============================================================================== --- head/games/pmars/pkg-plist Tue Nov 5 00:42:22 2013 (r332795) +++ head/games/pmars/pkg-plist Tue Nov 5 00:50:18 2013 (r332796) @@ -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