mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- 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)
This commit is contained in:
parent
a3609ff41a
commit
f5c3d25ee3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337234
@ -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
|
||||
|
||||
MAN6= ${PORTNAME}.6
|
||||
|
||||
PORTDATA= *
|
||||
PORTDOCS= CHANGES.txt README.txt
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
DESKTOP_ENTRIES="Vectoroids" "" "${PORTNAME}" \
|
||||
"${PORTNAME}" "Game;ArcadeGame;" ""
|
||||
|
||||
post-patch:
|
||||
@${FIND} ${WRKDIR} -name .xvpics | ${XARGS} ${RM} -rf
|
||||
|
||||
do-install:
|
||||
# Executable
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||
${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/
|
||||
|
||||
# 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
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
21
games/vectoroids/pkg-plist
Normal file
21
games/vectoroids/pkg-plist
Normal file
@ -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%%
|
Loading…
Reference in New Issue
Block a user