svn commit: r334012 - head/games/rockdodger
Danilo Egea Gondolfo
danilo at FreeBSD.org
Sat Nov 16 16:21:55 UTC 2013
Author: danilo
Date: Sat Nov 16 16:21:54 2013
New Revision: 334012
URL: http://svnweb.freebsd.org/changeset/ports/334012
Log:
- Convert USE_GMAKE to USES
- Add stage support
Modified:
head/games/rockdodger/Makefile
head/games/rockdodger/pkg-plist
Modified: head/games/rockdodger/Makefile
==============================================================================
--- head/games/rockdodger/Makefile Sat Nov 16 16:11:08 2013 (r334011)
+++ head/games/rockdodger/Makefile Sat Nov 16 16:21:54 2013 (r334012)
@@ -11,21 +11,25 @@ MAINTAINER= ports at FreeBSD.org
COMMENT= Addictive rock-dodging greeblie-killing platform game
USE_SDL= mixer image sdl
-USE_GMAKE= yes
+USES= gmake
GAMESDIR?= /var/games
-NO_STAGE= yes
pre-patch:
@${REINPLACE_CMD} \
-e "s%/usr/share/rockdodger/.highscore%${GAMESDIR}/rockdodger.highscore%" \
-e "s%/usr/share/rockdodger%${PREFIX}/share/rockdodger%" \
-e "s%/usr/games%${PREFIX}/bin%" \
+ ${WRKSRC}/main.c
+ @${REINPLACE_CMD} \
+ -e "s%/usr/share/rockdodger/.highscore%${STAGEDIR}${GAMESDIR}/rockdodger.highscore%" \
+ -e "s%/usr/games%${STAGEDIR}${PREFIX}/bin%" \
+ -e "s%/usr/share/rockdodger%${STAGEDIR}${PREFIX}/share/rockdodger%" \
-e "s%data/\*.{bmp,png,wav,mod}%data/*%" \
- ${WRKSRC}/Makefile ${WRKSRC}/main.c
+ ${WRKSRC}/Makefile
@cd ${WRKSRC} && ${REINPLACE_CMD} -e "s%#include <SDL/%#include <%" SFont.c SFont.h main.c sound.c
pre-install:
- @${MKDIR} ${GAMESDIR}
+ @${MKDIR} ${STAGEDIR}${GAMESDIR}
.include <bsd.port.mk>
Modified: head/games/rockdodger/pkg-plist
==============================================================================
--- head/games/rockdodger/pkg-plist Sat Nov 16 16:11:08 2013 (r334011)
+++ head/games/rockdodger/pkg-plist Sat Nov 16 16:21:54 2013 (r334012)
@@ -1,4 +1,10 @@
+ at group games
+ at mode 2755
bin/rockdodger
+ at mode
+ at group
+ at exec touch /var/games/rockdodger.highscore ; chmod 664 /var/games/rockdodger.highscore
+ at unexec if [ -f /var/games/rockdodger.highscore ] ; then rm /var/games/rockdodger.highscore; fi
%%DATADIR%%/data/20P_Betadance.png
%%DATADIR%%/data/4est_fulla3s.mod
%%DATADIR%%/data/boom.wav
More information about the svn-ports-head
mailing list