Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2012 19:52:37 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304062 - in head/games/gemdropx: . files
Message-ID:  <201209101952.q8AJqbQZ010269@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Mon Sep 10 19:52:36 2012
New Revision: 304062
URL: http://svn.freebsd.org/changeset/ports/304062

Log:
  - Add second MASTER_SITES entry
  - Avoid pkg-plist due to short plist
  - Convert to OptionsNG
  - Give maintainership to submitter
  
  PR:		ports/171270
  Submitted by:	nemysis <nemysis@gmx.ch>

Deleted:
  head/games/gemdropx/files/
  head/games/gemdropx/pkg-plist
Modified:
  head/games/gemdropx/Makefile   (contents, props changed)
  head/games/gemdropx/pkg-descr   (contents, props changed)

Modified: head/games/gemdropx/Makefile
==============================================================================
--- head/games/gemdropx/Makefile	Mon Sep 10 19:38:32 2012	(r304061)
+++ head/games/gemdropx/Makefile	Mon Sep 10 19:52:36 2012	(r304062)
@@ -7,26 +7,55 @@
 
 PORTNAME=	gemdropx
 PORTVERSION=	0.9
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	games
-MASTER_SITES=	ftp://ftp.billsgames.com/unix/x/gemdropx/src/
+MASTER_SITES=	ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/ \
+		ftp://ftp.billsgames.com/unix/x/gemdropx/src/
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	An interesting one-player puzzle game for X
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Interesting one-player puzzle game for X (SDL)
+
+LICENSE=	GPLv2
+
+ALL_TARGET=	${PORTNAME}
+USE_SDL=	image mixer sdl
 
-USE_SDL=	mixer
 USE_GMAKE=	yes
-MAKE_ENV=	JOY=NO
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.xmp
+
+PORTDATA=	*
+PORTDOCS=	AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
+
+.include <bsd.port.options.mk>
+
+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)|' \
+		${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/gemdropx ${PREFIX}/bin
-	@${MKDIR} ${DATADIR}/images
-	${INSTALL_DATA} ${WRKSRC}/data/images/* ${DATADIR}/images
-	@${MKDIR} ${DATADIR}/sounds
-	${INSTALL_DATA} ${WRKSRC}/data/sounds/* ${DATADIR}/sounds
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
+# Executable
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+
+# 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
 
 .include <bsd.port.mk>

Modified: head/games/gemdropx/pkg-descr
==============================================================================
--- head/games/gemdropx/pkg-descr	Mon Sep 10 19:38:32 2012	(r304061)
+++ head/games/gemdropx/pkg-descr	Mon Sep 10 19:52:36 2012	(r304062)
@@ -1,20 +1,18 @@
-  Gem Drop X is an interesting one-player puzzle game for X-Window.
+"Gem Drop X" is an interesting one-player puzzle game using the
+Simple DirectMedia Layer (SDL) libraries.
 
-  Gem Drop X  is  a  direct  port  of Gem Drop, an Atari 8-bit game
-written in Action! (a very fast C and Pascal-like compiled language
-for the Atari).  The concept of the game Gem Drop is based directly
-on an arcade game for the NeoGeo system called "Magical Drop III"
-by SNK.
+It is a direct port of "Gem Drop," an Atari 8-bit game written in Action!
+(a very fast C- and Pascal-like compiled language for the Atari).
 
-  If you're familiar  with  games like Jewels, Klax, Bust-A-Move or 
-Tetris, this game is similar to them all.  I consider it closest to
-Klax. (Jewels is like a combination of Klax and Tetris. Bust-A-Move
-is the  least  similar, in  my  opinion, but everyone seems to have 
-heard of it more than the others (except Tetris, of course!))
+It was originally ported to X11, using SDL for sound and music.
+Eventually, the Xlib graphics calls were removed and replaced with
+SDL calls.
 
-  The game is played  with YOU at the bottom of the screen.  At the
-top is a random assortment of colored shapes ("gems"). As time goes
-on, more  gems  appear at the very  top of the  screen, pushing the
-rest downwards.  The game is over when the gems reach the bottom.
+The concept of the game "Gem Drop" is based on an arcade game for the
+NeoGeo system called "Magical Drop III" by SNK.
+
+If you're familiar with games like Jewels, Klax, Bust-A-Move or Tetris,
+this game is similar to them all.  I consider it closest to Klax.
+Some people have compared it to "Tetris meets Space Invaders."
 
 WWW: http://www.newbreedsoftware.com/gemdropx/



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