svn commit: r337234 - head/games/vectoroids
Rusmir Dusko
nemysis at FreeBSD.org
Mon Dec 23 10:01:17 UTC 2013
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
+ at dirrm %%DATADIR%%/sounds
+ at dirrm %%DATADIR%%/music
+ at dirrm %%DATADIR%%/images
+ at dirrm %%DATADIR%%
More information about the svn-ports-all
mailing list