From owner-svn-ports-all@FreeBSD.ORG Mon Dec 23 10:01:17 2013 Return-Path: Delivered-To: svn-ports-all@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 ESMTPS id ED6272DC; Mon, 23 Dec 2013 10:01:16 +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 D961C1CD6; Mon, 23 Dec 2013 10:01:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBNA1G5K005268; Mon, 23 Dec 2013 10:01:16 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBNA1G0Z005266; Mon, 23 Dec 2013 10:01:16 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201312231001.rBNA1G0Z005266@svn.freebsd.org> From: Rusmir Dusko Date: Mon, 23 Dec 2013 10:01:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337234 - head/games/vectoroids 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: Mon, 23 Dec 2013 10:01:17 -0000 Author: nemysis Date: Mon Dec 23 10:01:16 2013 New Revision: 337234 URL: http://svnweb.freebsd.org/changeset/ports/337234 Log: - Bump PORTREVISION - USES gmake instead of USE_GMAKE - Use pkg-plist instead of PLIST_FILES and PORTDATA - Add Desktop entry file - Support STAGEDIR - Remove unnecessary .xvpics - Break lines around 80 characters - Symlink the icon instead of copying it - Simplify Makefile Approved by: pawel / wg (mentors, implicit) Added: head/games/vectoroids/pkg-plist (contents, props changed) Modified: head/games/vectoroids/Makefile Modified: head/games/vectoroids/Makefile ============================================================================== --- head/games/vectoroids/Makefile Mon Dec 23 10:00:02 2013 (r337233) +++ head/games/vectoroids/Makefile Mon Dec 23 10:01:16 2013 (r337234) @@ -3,7 +3,7 @@ PORTNAME= vectoroids PORTVERSION= 1.1.0 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= games MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/vectoroids/src/ \ ftp://ftp.billsgames.com/unix/x/vectoroids/src/ @@ -13,37 +13,29 @@ COMMENT= Vector-based rock-shooting game LICENSE= GPLv2 -USE_GMAKE= yes +USES= gmake USE_SDL= image mixer sdl -PLIST_FILES= bin/${PORTNAME} \ - share/pixmaps/${PORTNAME}.png - -MAN6= ${PORTNAME}.6 - -PORTDATA= * PORTDOCS= CHANGES.txt README.txt -NO_STAGE= yes -.include +OPTIONS_DEFINE= DOCS -do-install: -# Executable - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin +DESKTOP_ENTRIES="Vectoroids" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" "" -# Data - (cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images music sounds" ${DATADIR}) +post-patch: + @${FIND} ${WRKDIR} -name .xvpics | ${XARGS} ${RM} -rf -# Pixmaps - ${INSTALL_DATA} ${WRKSRC}/data/images/icon.png ${PREFIX}/share/pixmaps/${PORTNAME}.png +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ +.for d in images music sounds + @(cd ${WRKSRC}/data && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) +.endfor + ${LN} -sf ${DATADIR}/images/icon.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/ -# Documentation -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} -. for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -. endfor -.endif - ${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Added: head/games/vectoroids/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/vectoroids/pkg-plist Mon Dec 23 10:01:16 2013 (r337234) @@ -0,0 +1,21 @@ +bin/vectoroids +man/man6/vectoroids.6.gz +share/pixmaps/vectoroids.png +%%DATADIR%%/images/icon.png +%%DATADIR%%/images/redspot-e.bmp +%%DATADIR%%/images/redspot.jpg +%%DATADIR%%/music/decision.s3m +%%DATADIR%%/music/decision.txt +%%DATADIR%%/sounds/ast1.wav +%%DATADIR%%/sounds/ast2.wav +%%DATADIR%%/sounds/ast3.wav +%%DATADIR%%/sounds/ast4.wav +%%DATADIR%%/sounds/bullet.wav +%%DATADIR%%/sounds/explode.wav +%%DATADIR%%/sounds/extralife.wav +%%DATADIR%%/sounds/gameover.wav +%%DATADIR%%/sounds/thrust.wav +@dirrm %%DATADIR%%/sounds +@dirrm %%DATADIR%%/music +@dirrm %%DATADIR%%/images +@dirrm %%DATADIR%%