Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2013 10:01:16 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337234 - head/games/vectoroids
Message-ID:  <201312231001.rBNA1G0Z005266@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
+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 <bsd.port.mk>

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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312231001.rBNA1G0Z005266>