From owner-svn-ports-all@FreeBSD.ORG Sun Nov 17 03:11:53 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62D68E59; Sun, 17 Nov 2013 03:11:53 +0000 (UTC) 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 39E902438; Sun, 17 Nov 2013 03:11:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAH3Br3l096869; Sun, 17 Nov 2013 03:11:53 GMT (envelope-from danilo@svn.freebsd.org) Received: (from danilo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAH3BrWC096868; Sun, 17 Nov 2013 03:11:53 GMT (envelope-from danilo@svn.freebsd.org) Message-Id: <201311170311.rAH3BrWC096868@svn.freebsd.org> From: Danilo Egea Gondolfo Date: Sun, 17 Nov 2013 03:11:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334052 - head/games/cube X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 03:11:53 -0000 Author: danilo Date: Sun Nov 17 03:11:52 2013 New Revision: 334052 URL: http://svnweb.freebsd.org/changeset/ports/334052 Log: - Add stage support - Use OPTIONS_SUB Modified: head/games/cube/Makefile Modified: head/games/cube/Makefile ============================================================================== --- head/games/cube/Makefile Sun Nov 17 03:09:13 2013 (r334051) +++ head/games/cube/Makefile Sun Nov 17 03:11:52 2013 (r334052) @@ -37,7 +37,10 @@ FLAVOR_DESC= Clients and servers CLIENT_DESC= Build client SERVER_DESC= Build dedicated server -NO_STAGE= yes +OPTIONS_SUB= yes + +OPTIMIZED_CFLAGS_CFLAGS= -O3 -fomit-frame-pointer + .include .if ${PORT_OPTIONS:MCLIENT} @@ -45,22 +48,12 @@ USE_GL= glu USE_SDL= image mixer sdl ALL_TARGET+= client CUBE_BIN+= client -LDFLAGS= -lX11 -PLIST_SUB+= CLIENT="" -.else -PLIST_SUB+= CLIENT="@comment " +LDFLAGS+= -lX11 .endif .if ${PORT_OPTIONS:MSERVER} ALL_TARGET+= server CUBE_BIN+= server -PLIST_SUB+= SERVER="" -.else -PLIST_SUB+= SERVER="@comment " -.endif - -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+= -O3 -fomit-frame-pointer .endif post-extract: @@ -68,16 +61,14 @@ post-extract: do-install: .for f in ${CUBE_BIN} - ${INSTALL_SCRIPT} ${WRKDIR}/cube_${f} ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/cube_${f} ${PREFIX}/libexec + ${INSTALL_SCRIPT} ${WRKDIR}/cube_${f} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/cube_${f} ${STAGEDIR}${PREFIX}/libexec .endfor - @${MKDIR} ${DATADIR} - @(cd ${WRKDIR}/cube && ${COPYTREE_SHARE} "data packages" ${DATADIR}) - ${INSTALL_DATA} ${WRKDIR}/cube/autoexec.cfg ${DATADIR} -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/cube/readme.html ${DOCSDIR} - @(cd ${WRKDIR}/cube/docs && ${COPYTREE_SHARE} . ${DOCSDIR}) -.endif + @${MKDIR} ${STAGEDIR}${DATADIR} + @(cd ${WRKDIR}/cube && ${COPYTREE_SHARE} "data packages" ${STAGEDIR}${DATADIR}) + ${INSTALL_DATA} ${WRKDIR}/cube/autoexec.cfg ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/cube/readme.html ${STAGEDIR}${DOCSDIR} + (cd ${WRKDIR}/cube/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include