Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Nov 2013 16:21:54 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334012 - head/games/rockdodger
Message-ID:  <201311161621.rAGGLsSm075360@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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 @@
+@group games
+@mode 2755
 bin/rockdodger
+@mode
+@group
+@exec touch /var/games/rockdodger.highscore ; chmod 664 /var/games/rockdodger.highscore
+@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



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