Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 12:22:58 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337721 - head/games/gemdropx
Message-ID:  <201312271222.rBRCMwNe022515@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Fri Dec 27 12:22:58 2013
New Revision: 337721
URL: http://svnweb.freebsd.org/changeset/ports/337721

Log:
  - Bump PORTREVISION
  - Change master sites, change icon
  - USES gmake instead of USE_GMAKE
  - Use pkg-plist instead of PLIST_FILES and PLIST_DIRS
  - Add DOCS Option
  - Add Desktop entry file
  - Support STAGEDIR
  - Disable all warnings with -w
  - Remove unnecessary .xvpics
  - Simplify Makefile
  
  Approved by:	pawel / wg (mentors, implicit)

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

Modified: head/games/gemdropx/Makefile
==============================================================================
--- head/games/gemdropx/Makefile	Fri Dec 27 12:04:11 2013	(r337720)
+++ head/games/gemdropx/Makefile	Fri Dec 27 12:22:58 2013	(r337721)
@@ -3,56 +3,49 @@
 
 PORTNAME=	gemdropx
 PORTVERSION=	0.9
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	games
 MASTER_SITES=	ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/ \
-		ftp://ftp.billsgames.com/unix/x/gemdropx/src/
+		ftp://ftp.billsgames.com/unix/x/gemdropx/src/ \
+		SF/nemysisfreebsdp/${CATEGORIES}/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Interesting one-player puzzle game for X (SDL)
 
 LICENSE=	GPLv2
 
-ALL_TARGET=	${PORTNAME}
+USES=		gmake
 USE_SDL=	image mixer sdl
+ALL_TARGET=	${PORTNAME}
 
-USE_GMAKE=	yes
-
-PLIST_FILES=	bin/${PORTNAME} \
-		share/pixmaps/${PORTNAME}.xmp
-
-PORTDATA=	*
 PORTDOCS=	AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
+
+DESKTOP_ENTRIES="Gem Drop X" "" "${PORTNAME}" \
+		"${PORTNAME}" "Game;LogicGame;" ""
 
 post-patch:
-# Fix SDL, CFLAGS
 	@${REINPLACE_CMD} \
-	-e 's|sdl-config|$(SDL_CONFIG)|' \
-	-e 's|CC=gcc|CC?=g++|' \
-	-e 's|CXX=gcc|CXX?=g++|' \
-	-e 's|CFLAGS=-Wall $(SDL_CFLAGS)|CFLAGS+=$(SDL_CFLAGS)|' \
+	-e 's|sdl-config|$(SDL_CONFIG)| ; \
+	s|CC=gcc|CC?=${CC}| ; \
+	s|CXX=gcc|CXX?=${CC}| ; \
+	s|CFLAGS=-Wall $(SDL_CFLAGS)|CFLAGS+=-w $(SDL_CFLAGS)|' \
 		${WRKSRC}/Makefile
+	@${FIND} ${WRKDIR} -name .xvpics | ${XARGS} ${RM} -rf
 
 do-install:
-# Executable
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images sounds" \
+		${STAGEDIR}${DATADIR})
+
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps
 
-# Data
-	${MKDIR} ${DATADIR}
-	@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images sounds" ${DATADIR})
-
-# Pixmaps
-	${INSTALL_DATA} ${WRKSRC}/data/images/gemdropx-icon.xpm ${PREFIX}/share/pixmaps/${PORTNAME}.xmp
-
-# Documentation
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-.  for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.  endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/gemdropx/distinfo
==============================================================================
--- head/games/gemdropx/distinfo	Fri Dec 27 12:04:11 2013	(r337720)
+++ head/games/gemdropx/distinfo	Fri Dec 27 12:22:58 2013	(r337721)
@@ -1,2 +1,4 @@
 SHA256 (gemdropx-0.9.tar.gz) = e50495d292a1d456c28044efbf07c16d8865f8d95e1caba86f4c5b2e3fb1d28f
 SIZE (gemdropx-0.9.tar.gz) = 903036
+SHA256 (gemdropx.png) = 7dd754add520e0320ca72d6bbb7699bbe112e54092a12990e304932163c10e38
+SIZE (gemdropx.png) = 697

Added: head/games/gemdropx/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gemdropx/pkg-plist	Fri Dec 27 12:22:58 2013	(r337721)
@@ -0,0 +1,69 @@
+bin/gemdropx
+%%DATADIR%%/images/README
+%%DATADIR%%/images/action-mask.xbm
+%%DATADIR%%/images/action.xbm
+%%DATADIR%%/images/author.bmp
+%%DATADIR%%/images/block.bmp
+%%DATADIR%%/images/bluegem.bmp
+%%DATADIR%%/images/bomb.bmp
+%%DATADIR%%/images/brick.bmp
+%%DATADIR%%/images/congratulations.bmp
+%%DATADIR%%/images/credits.bmp
+%%DATADIR%%/images/diamond.bmp
+%%DATADIR%%/images/disc.bmp
+%%DATADIR%%/images/dot.bmp
+%%DATADIR%%/images/explode0.bmp
+%%DATADIR%%/images/explode1.bmp
+%%DATADIR%%/images/explode2.bmp
+%%DATADIR%%/images/explode3.bmp
+%%DATADIR%%/images/fuji.bmp
+%%DATADIR%%/images/gemdropx-icon.xpm
+%%DATADIR%%/images/happy.bmp
+%%DATADIR%%/images/left-mask.xbm
+%%DATADIR%%/images/left.xbm
+%%DATADIR%%/images/level.bmp
+%%DATADIR%%/images/lines.bmp
+%%DATADIR%%/images/need.bmp
+%%DATADIR%%/images/nothing-mask.xbm
+%%DATADIR%%/images/nothing.xbm
+%%DATADIR%%/images/numbers.bmp
+%%DATADIR%%/images/patience.bmp
+%%DATADIR%%/images/paused.bmp
+%%DATADIR%%/images/right-mask.xbm
+%%DATADIR%%/images/right.xbm
+%%DATADIR%%/images/sad.bmp
+%%DATADIR%%/images/score.bmp
+%%DATADIR%%/images/stopwatch.bmp
+%%DATADIR%%/images/title.bmp
+%%DATADIR%%/images/triangle.bmp
+%%DATADIR%%/images/uhoh.bmp
+%%DATADIR%%/images/warning.bmp
+%%DATADIR%%/images/warning1.bmp
+%%DATADIR%%/images/warning2.bmp
+%%DATADIR%%/images/warning3.bmp
+%%DATADIR%%/images/warning4.bmp
+%%DATADIR%%/images/wildcard.bmp
+%%DATADIR%%/images/win1.bmp
+%%DATADIR%%/images/win2.bmp
+%%DATADIR%%/images/yellowgem.bmp
+%%DATADIR%%/sounds/22drops.mod
+%%DATADIR%%/sounds/2force.xm
+%%DATADIR%%/sounds/README
+%%DATADIR%%/sounds/applause.wav
+%%DATADIR%%/sounds/begin.wav
+%%DATADIR%%/sounds/bomb.wav
+%%DATADIR%%/sounds/buzzer.wav
+%%DATADIR%%/sounds/citron.mod
+%%DATADIR%%/sounds/clock.wav
+%%DATADIR%%/sounds/gameover.wav
+%%DATADIR%%/sounds/got.wav
+%%DATADIR%%/sounds/grab.wav
+%%DATADIR%%/sounds/hr_suds.xm
+%%DATADIR%%/sounds/levelselect.wav
+%%DATADIR%%/sounds/throw.wav
+%%DATADIR%%/sounds/wildcard.wav
+%%DATADIR%%/sounds/win.wav
+share/pixmaps/gemdropx.png
+@dirrm %%DATADIR%%/sounds
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%



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