svn commit: r334844 - head/games/pacmanarena

Rusmir Dusko nemysis at FreeBSD.org
Mon Nov 25 11:50:19 UTC 2013


Author: nemysis
Date: Mon Nov 25 11:50:18 2013
New Revision: 334844
URL: http://svnweb.freebsd.org/changeset/ports/334844

Log:
  - Change Makefile header
  - Bump PORTREVISION
  - Change master sites and icons
  - Change maintainer email to @FreeBSD.org
  - Use pkg-plist instead of PLIST_FILES, PLIST_DIRS and PORTDATA
  - Support STAGEDIR
  - Simplify Makefile
  
  Approved by:	pawel / wg (mentors, implicit)

Added:
  head/games/pacmanarena/pkg-plist   (contents, props changed)
Modified:
  head/games/pacmanarena/Makefile
  head/games/pacmanarena/distinfo   (contents, props changed)

Modified: head/games/pacmanarena/Makefile
==============================================================================
--- head/games/pacmanarena/Makefile	Mon Nov 25 11:49:30 2013	(r334843)
+++ head/games/pacmanarena/Makefile	Mon Nov 25 11:50:18 2013	(r334844)
@@ -1,15 +1,17 @@
+# Created by: Rusmir Dusko <nemysis at FreeBSD.org>
 # $FreeBSD$
 
 PORTNAME=	pacmanarena
 PORTVERSION=	0.15
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/v0.0/ \
-		SF/nemysisfreebsdp/:icons
+		SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:icons
 DISTFILES=	${DISTNAME:S/na/n-a/}.tar.bz2 \
 		${PORTNAME:S/arena/-data/}-0.0.zip \
-		${PORTNAME}_icons.tar.gz:icons
+		${PORTNAME}_icons_1.tar.gz:icons
 
-MAINTAINER=	nemysis at gmx.ch
+MAINTAINER=	nemysis at FreeBSD.org
 COMMENT=	Pacman clone in full 3D with a few surprises
 
 LICENSE=	GPLv2
@@ -18,43 +20,37 @@ EXTRACT_DEPENDS=	unzip:${PORTSDIR}/archi
 
 WRKSRC=		${WRKDIR}/${PORTNAME:S/arena//}
 
-GNU_CONFIGURE=	yes
 USE_SDL=	mixer net sdl
+GNU_CONFIGURE=	yes
 
-PLIST_FILES=	bin/${PORTNAME} \
-		share/pixmaps/${PORTNAME}_48.png \
-		share/pixmaps/${PORTNAME}_64.png \
-		share/pixmaps/${PORTNAME}_72.png \
-		share/pixmaps/${PORTNAME}_96.png
-
-PORTDATA=	*
 PORTDOCS=	README
 
-NO_STAGE=	yes
-post-patch:
-# Fix data location
-	@${REINPLACE_CMD} -e 's|@prefix@|${DATADIR}|' \
-	-e 's|@datadir@/pacman|${DATADIR}|'  ${WRKSRC}/Makefile.in
+INSTALLS_ICONS=	yes
+ICON_SIZES=	32x32 48x48 64x64 72x72 96x96
 
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="Pacman Arena" "${COMMENT}" "${PORTNAME}" \
+		"${PORTNAME}" "Game;ArcadeGame;" false
 
-do-install:
-# Executable
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:S/arena//} ${PREFIX}/bin/${PORTNAME}
+post-patch:
+	@${REINPLACE_CMD} -e 's|@prefix@|${DATADIR}| ; \
+		s|@datadir@/pacman|${DATADIR}|' \
+		 ${WRKSRC}/Makefile.in
 
-# Data
-	${MKDIR} ${DATADIR}
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:S/arena//} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 .for d in gfx sfx
-	@(cd ${WRKSRC}/../ && ${COPYTREE_SHARE} ${d} ${DATADIR})
+	@(cd ${WRKSRC}/../ && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
 .endfor
 
-# Pixmaps
-	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps
+.for s in ${ICON_SIZES}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
+	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
+		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
+.endfor
+	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
 
-# Documentation
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/pacmanarena/distinfo
==============================================================================
--- head/games/pacmanarena/distinfo	Mon Nov 25 11:49:30 2013	(r334843)
+++ head/games/pacmanarena/distinfo	Mon Nov 25 11:50:18 2013	(r334844)
@@ -2,5 +2,5 @@ SHA256 (pacman-arena-0.15.tar.bz2) = 3f1
 SIZE (pacman-arena-0.15.tar.bz2) = 100112
 SHA256 (pacman-data-0.0.zip) = 7949f080ca0ba4c02d737c5bb365856c3e66f103838329be8c1857d6c297b9b8
 SIZE (pacman-data-0.0.zip) = 11994364
-SHA256 (pacmanarena_icons.tar.gz) = 55a6e8e4144f4fc3c49597a11bb9482ff980935d43f993da9080db837fdcc3d7
-SIZE (pacmanarena_icons.tar.gz) = 14848
+SHA256 (pacmanarena_icons_1.tar.gz) = 70f4217e1141d07190e2a892b4f0d383c95af0a4036cbf25c7741a0d19b2b0a0
+SIZE (pacmanarena_icons_1.tar.gz) = 11532

Added: head/games/pacmanarena/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pacmanarena/pkg-plist	Mon Nov 25 11:50:18 2013	(r334844)
@@ -0,0 +1,59 @@
+bin/pacmanarena
+share/icons/hicolor/32x32/apps/pacmanarena.png
+share/icons/hicolor/48x48/apps/pacmanarena.png
+share/icons/hicolor/64x64/apps/pacmanarena.png
+share/icons/hicolor/72x72/apps/pacmanarena.png
+share/icons/hicolor/96x96/apps/pacmanarena.png
+%%DATADIR%%/gfx/1024-768-high.tga
+%%DATADIR%%/gfx/1024-768-low.tga
+%%DATADIR%%/gfx/1400-1050-high.tga
+%%DATADIR%%/gfx/1400-1050-low.tga
+%%DATADIR%%/gfx/640-480-high.tga
+%%DATADIR%%/gfx/640-480-low.tga
+%%DATADIR%%/gfx/800-600-high.tga
+%%DATADIR%%/gfx/800-600-low.tga
+%%DATADIR%%/gfx/bomb.3d
+%%DATADIR%%/gfx/dot-yellow.tga
+%%DATADIR%%/gfx/dot.tga
+%%DATADIR%%/gfx/exit-high.tga
+%%DATADIR%%/gfx/exit-low.tga
+%%DATADIR%%/gfx/game-over.tga
+%%DATADIR%%/gfx/ghost-green-dying.3d
+%%DATADIR%%/gfx/ghost-green-moving.3d
+%%DATADIR%%/gfx/ghost-green-returning.3d
+%%DATADIR%%/gfx/level-complete.tga
+%%DATADIR%%/gfx/pacman-arena-banner.tga
+%%DATADIR%%/gfx/pacman-dying.3d
+%%DATADIR%%/gfx/pacman-jumping.3d
+%%DATADIR%%/gfx/pacman-moving.3d
+%%DATADIR%%/gfx/pacman-stopped.3d
+%%DATADIR%%/gfx/pacman_arena1.tga
+%%DATADIR%%/gfx/particle.tga
+%%DATADIR%%/gfx/resolution-high.tga
+%%DATADIR%%/gfx/resolution-low.tga
+%%DATADIR%%/gfx/rocket-highlight.tga
+%%DATADIR%%/gfx/rocket.3d
+%%DATADIR%%/gfx/start-game-high.tga
+%%DATADIR%%/gfx/start-game-low.tga
+%%DATADIR%%/gfx/wall-horizontal.3d
+%%DATADIR%%/gfx/wall-ll.3d
+%%DATADIR%%/gfx/wall-lr.3d
+%%DATADIR%%/gfx/wall-ul.3d
+%%DATADIR%%/gfx/wall-ur.3d
+%%DATADIR%%/gfx/wall-vertical.3d
+%%DATADIR%%/gfx/wall.tga
+%%DATADIR%%/sfx/chomp.wav
+%%DATADIR%%/sfx/eat-ghost.wav
+%%DATADIR%%/sfx/explosion.wav
+%%DATADIR%%/sfx/gameover.ogg
+%%DATADIR%%/sfx/ghost-return.wav
+%%DATADIR%%/sfx/glomp.wav
+%%DATADIR%%/sfx/hiscore.ogg
+%%DATADIR%%/sfx/hummingbird.ogg
+%%DATADIR%%/sfx/pacman-die.wav
+%%DATADIR%%/sfx/rocket-launch.wav
+%%DATADIR%%/sfx/tranzy.ogg
+share/pixmaps/pacmanarena.png
+ at dirrm %%DATADIR%%/sfx
+ at dirrm %%DATADIR%%/gfx
+ at dirrm %%DATADIR%%


More information about the svn-ports-all mailing list