From f5c3d25ee3d539dc0c1dcc408a5fba7c9ae0a552 Mon Sep 17 00:00:00 2001 From: Rusmir Dusko Date: Mon, 23 Dec 2013 10:01:16 +0000 Subject: - 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) --- games/vectoroids/Makefile | 44 ++++++++++++++++++-------------------------- games/vectoroids/pkg-plist | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+), 26 deletions(-) create mode 100644 games/vectoroids/pkg-plist (limited to 'games/vectoroids') diff --git a/games/vectoroids/Makefile b/games/vectoroids/Makefile index 1d5bc5b4a1e4..4ef522441cf1 100644 --- a/games/vectoroids/Makefile +++ b/games/vectoroids/Makefile @@ -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 similar to Asteroids LICENSE= GPLv2 -USE_GMAKE= yes +USES= gmake USE_SDL= image mixer sdl -PLIST_FILES= bin/${PORTNAME} \ - share/pixmaps/${PORTNAME}.png +PORTDOCS= CHANGES.txt README.txt -MAN6= ${PORTNAME}.6 +OPTIONS_DEFINE= DOCS -PORTDATA= * -PORTDOCS= CHANGES.txt README.txt +DESKTOP_ENTRIES="Vectoroids" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" "" -NO_STAGE= yes -.include +post-patch: + @${FIND} ${WRKDIR} -name .xvpics | ${XARGS} ${RM} -rf do-install: -# Executable - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - -# Data - (cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images music sounds" ${DATADIR}) - -# Pixmaps - ${INSTALL_DATA} ${WRKSRC}/data/images/icon.png ${PREFIX}/share/pixmaps/${PORTNAME}.png - -# 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 + ${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/ + + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/games/vectoroids/pkg-plist b/games/vectoroids/pkg-plist new file mode 100644 index 000000000000..a1fe7c8d6614 --- /dev/null +++ b/games/vectoroids/pkg-plist @@ -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%% -- cgit v1.2.3