diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2010-08-22 14:29:08 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2010-08-22 14:29:08 +0000 |
commit | ecc918b99f3b0113b082f9731f45824e304d1cf9 (patch) | |
tree | 1258bc6c77b99ebc83fdab31489acd38b2bee4bb /games/frogatto | |
parent | Add p5-indirect 0.21, lexically warn about using the indirect object (diff) |
- Allow the game to find its music and sounds [1]
- Fix permissions on DATADIR after COPYTREE_SHARE (cpio(1) defaults to 700)
- Mute PLIST-generation commands while here
Reported by: Jeff Molofee [1]
Notes
Notes:
svn path=/head/; revision=259741
Diffstat (limited to 'games/frogatto')
-rw-r--r-- | games/frogatto/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/games/frogatto/Makefile b/games/frogatto/Makefile index 501ad0410eaf..365081a49479 100644 --- a/games/frogatto/Makefile +++ b/games/frogatto/Makefile @@ -7,7 +7,7 @@ PORTNAME= frogatto PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.frogatto.com/files/ @@ -35,16 +35,20 @@ post-patch: # Point to the right location where look for the resources on FreeBSD @${REINPLACE_CMD} -e 's,HAVE_CONFIG_H,__FreeBSD__,' \ -e 's,DATADIR,"${DATADIR}",' ${WRKSRC}/src/filesystem.cpp + @${REINPLACE_CMD} -E 's,(music|sounds)/,${DATADIR}/&,' \ + ${WRKSRC}/src/sound.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/game ${PREFIX}/bin/${PORTNAME} ${INSTALL_PROGRAM} ${WRKSRC}/server ${PREFIX}/bin/${PORTNAME}-server cd ${WRKSRC} && ${COPYTREE_SHARE} "data images music sounds" \ ${DATADIR} +# Fix permissions on DATADIR after COPYTREE_SHARE (cpio(1) defaults to 700) + ${CHMOD} 755 ${DATADIR} # Dynamically generate part of the PLIST for game resources (lots of them) - ${FIND} ${DATADIR} -not -type d | \ + @${FIND} ${DATADIR} -not -type d | \ ${SED} 's,^${PREFIX}/,,' | ${SORT} >> ${TMPPLIST} - ${FIND} ${DATADIR} -type d | \ + @${FIND} ${DATADIR} -type d | \ ${SED} 's,^${PREFIX}/,@dirrm ,' | ${SORT} -r >> ${TMPPLIST} .include <bsd.port.mk> |