From owner-svn-ports-all@FreeBSD.ORG Fri Dec 20 17:10:48 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 86F247D7; Fri, 20 Dec 2013 17:10:48 +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 73913168A; Fri, 20 Dec 2013 17:10:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBKHAmU1049941; Fri, 20 Dec 2013 17:10:48 GMT (envelope-from amdmi3@svn.freebsd.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBKHAmtE049940; Fri, 20 Dec 2013 17:10:48 GMT (envelope-from amdmi3@svn.freebsd.org) Message-Id: <201312201710.rBKHAmtE049940@svn.freebsd.org> From: Dmitry Marakasov Date: Fri, 20 Dec 2013 17:10:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337042 - head/games/agame 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.17 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: Fri, 20 Dec 2013 17:10:48 -0000 Author: amdmi3 Date: Fri Dec 20 17:10:47 2013 New Revision: 337042 URL: http://svnweb.freebsd.org/changeset/ports/337042 Log: - Support staging - Convert USE_GMAKE to USES Deleted: head/games/agame/pkg-plist Modified: head/games/agame/Makefile Modified: head/games/agame/Makefile ============================================================================== --- head/games/agame/Makefile Fri Dec 20 17:10:14 2013 (r337041) +++ head/games/agame/Makefile Fri Dec 20 17:10:47 2013 (r337042) @@ -16,12 +16,14 @@ COMMENT= Simple Tetris-like game LICENSE= GPLv2 +USES= gmake USE_SDL= sdl image mixer -USE_GMAKE= yes WRKSRC= ${WRKDIR}/game -PORTDOCS= README.TXT +PLIST_FILES= bin/game +PORTDOCS= * +PORTDATA= * DESKTOP_ENTRIES="game" \ "A simple tetris-like game" \ @@ -30,25 +32,15 @@ DESKTOP_ENTRIES="game" \ "Game;BlocksGame;" \ false -NO_STAGE= yes -.include +OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -Ee 's,wav/|mp3/|img/,${DATADIR}/&,g' ${WRKSRC}/main.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/game ${PREFIX}/bin -.for dir in wav mp3 img - ${MKDIR} ${DATADIR}/${dir} - ${INSTALL_DATA} ${WRKSRC}/${dir}/* ${DATADIR}/${dir}/ -.endfor - -.if ${PORT_OPTIONS:MDOCS} -post-install: - ${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/game ${STAGEDIR}${PREFIX}/bin/ + cd ${WRKSRC} && ${COPYTREE_SHARE} "wav mp3 img" ${STAGEDIR}${DATADIR}/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.TXT ${STAGEDIR}${DOCSDIR}/ .include