View | Details | Raw Unified | Return to bug 171270 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-14 / +43 lines)
Lines 7-32 Link Here
7
7
8
PORTNAME=	gemdropx
8
PORTNAME=	gemdropx
9
PORTVERSION=	0.9
9
PORTVERSION=	0.9
10
PORTREVISION=	8
10
PORTREVISION=	9
11
CATEGORIES=	games
11
CATEGORIES=	games
12
MASTER_SITES=	ftp://ftp.billsgames.com/unix/x/gemdropx/src/
12
MASTER_SITES=	ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/ \
13
		ftp://ftp.billsgames.com/unix/x/gemdropx/src/
13
14
14
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	nemysis@gmx.ch
15
COMMENT=	An interesting one-player puzzle game for X
16
COMMENT=	Interesting one-player puzzle game for X (SDL)
17
18
LICENSE=	GPLv2
19
20
ALL_TARGET=	${PORTNAME}
21
USE_SDL=	image mixer sdl
16
22
17
USE_SDL=	mixer
18
USE_GMAKE=	yes
23
USE_GMAKE=	yes
19
MAKE_ENV=	JOY=NO
24
25
PLIST_FILES=	bin/${PORTNAME} \
26
		share/pixmaps/${PORTNAME}.xmp
27
28
PORTDATA=	*
29
PORTDOCS=	AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
30
31
.include <bsd.port.options.mk>
32
33
post-patch:
34
# Fix SDL, CFLAGS
35
	@${REINPLACE_CMD} \
36
	-e 's|sdl-config|$(SDL_CONFIG)|' \
37
	-e 's|CC=gcc|CC?=g++|' \
38
	-e 's|CXX=gcc|CXX?=g++|' \
39
	-e 's|CFLAGS=-Wall $(SDL_CFLAGS)|CFLAGS+=$(SDL_CFLAGS)|' \
40
		${WRKSRC}/Makefile
20
41
21
do-install:
42
do-install:
22
	${INSTALL_PROGRAM} ${WRKSRC}/gemdropx ${PREFIX}/bin
43
# Executable
23
	@${MKDIR} ${DATADIR}/images
44
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
24
	${INSTALL_DATA} ${WRKSRC}/data/images/* ${DATADIR}/images
45
25
	@${MKDIR} ${DATADIR}/sounds
46
# Data
26
	${INSTALL_DATA} ${WRKSRC}/data/sounds/* ${DATADIR}/sounds
47
	${MKDIR} ${DATADIR}
27
.if !defined(NOPORTDOCS)
48
	@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images sounds" ${DATADIR})
28
	@${MKDIR} ${DOCSDIR}
49
29
	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
50
# Pixmaps
51
	${INSTALL_DATA} ${WRKSRC}/data/images/gemdropx-icon.xpm ${PREFIX}/share/pixmaps/${PORTNAME}.xmp
52
53
# Documentation
54
.if ${PORT_OPTIONS:MDOCS}
55
	${MKDIR} ${DOCSDIR}
56
.  for f in ${PORTDOCS}
57
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
58
.  endfor
30
.endif
59
.endif
31
60
32
.include <bsd.port.mk>
61
.include <bsd.port.mk>
(-)./files/patch-aa (-28 lines)
Lines 1-28 Link Here
1
--- Makefile.orig	Sat May 18 17:53:29 2002
2
+++ Makefile	Sat Jun 22 09:56:19 2002
3
@@ -14,11 +14,11 @@
4
 # Added 'install' target (finally!): May 18, 2002
5
 
6
 
7
-DATA_PREFIX=/usr/local/share/gemdropx
8
-SDL_CFLAGS := $(shell sdl-config --cflags)
9
-SDL_LDFLAGS := $(shell sdl-config --libs)
10
-CC=gcc
11
-CXX=gcc
12
+DATA_PREFIX=$(PREFIX)/share/gemdropx
13
+SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
14
+SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
15
+CC?=gcc
16
+CXX?=gcc
17
 
18
 
19
 MIXER=-lSDL_mixer
20
@@ -27,7 +27,7 @@
21
 EMBEDDEDFLAG=NOT_EMBEDDED
22
 
23
 
24
-CFLAGS=-Wall $(SDL_CFLAGS) \
25
+CFLAGS+=$(SDL_CFLAGS) \
26
 	-DDATA_PREFIX=\"$(DATA_PREFIX)\" -D$(NOSOUNDFLAG) -D$(JOYFLAG) \
27
 	-D$(EMBEDDEDFLAG) $(XTRA_FLAGS)
28
 SDL_LIB=$(MIXER) $(SDL_LDFLAGS)
(-)./pkg-descr (-15 / +13 lines)
Lines 1-20 Link Here
1
  Gem Drop X is an interesting one-player puzzle game for X-Window.
1
"Gem Drop X" is an interesting one-player puzzle game using the
2
Simple DirectMedia Layer (SDL) libraries.
2
3
3
  Gem Drop X  is  a  direct  port  of Gem Drop, an Atari 8-bit game
4
It is a direct port of "Gem Drop," an Atari 8-bit game written in Action!
4
written in Action! (a very fast C and Pascal-like compiled language
5
(a very fast C- and Pascal-like compiled language for the Atari).
5
for the Atari).  The concept of the game Gem Drop is based directly
6
on an arcade game for the NeoGeo system called "Magical Drop III"
7
by SNK.
8
6
9
  If you're familiar  with  games like Jewels, Klax, Bust-A-Move or 
7
It was originally ported to X11, using SDL for sound and music.
10
Tetris, this game is similar to them all.  I consider it closest to
8
Eventually, the Xlib graphics calls were removed and replaced with
11
Klax. (Jewels is like a combination of Klax and Tetris. Bust-A-Move
9
SDL calls.
12
is the  least  similar, in  my  opinion, but everyone seems to have 
13
heard of it more than the others (except Tetris, of course!))
14
10
15
  The game is played  with YOU at the bottom of the screen.  At the
11
The concept of the game "Gem Drop" is based on an arcade game for the
16
top is a random assortment of colored shapes ("gems"). As time goes
12
NeoGeo system called "Magical Drop III" by SNK.
17
on, more  gems  appear at the very  top of the  screen, pushing the
13
18
rest downwards.  The game is over when the gems reach the bottom.
14
If you're familiar with games like Jewels, Klax, Bust-A-Move or Tetris,
15
this game is similar to them all.  I consider it closest to Klax.
16
Some people have compared it to "Tetris meets Space Invaders."
19
17
20
WWW: http://www.newbreedsoftware.com/gemdropx/
18
WWW: http://www.newbreedsoftware.com/gemdropx/
(-)./pkg-plist (-70 lines)
Lines 1-70 Link Here
1
bin/gemdropx
2
%%PORTDOCS%%%%DOCSDIR%%/README.txt
3
%%DATADIR%%/images/README
4
%%DATADIR%%/images/action-mask.xbm
5
%%DATADIR%%/images/action.xbm
6
%%DATADIR%%/images/author.bmp
7
%%DATADIR%%/images/block.bmp
8
%%DATADIR%%/images/bluegem.bmp
9
%%DATADIR%%/images/bomb.bmp
10
%%DATADIR%%/images/brick.bmp
11
%%DATADIR%%/images/congratulations.bmp
12
%%DATADIR%%/images/credits.bmp
13
%%DATADIR%%/images/diamond.bmp
14
%%DATADIR%%/images/disc.bmp
15
%%DATADIR%%/images/dot.bmp
16
%%DATADIR%%/images/explode0.bmp
17
%%DATADIR%%/images/explode1.bmp
18
%%DATADIR%%/images/explode2.bmp
19
%%DATADIR%%/images/explode3.bmp
20
%%DATADIR%%/images/fuji.bmp
21
%%DATADIR%%/images/gemdropx-icon.xpm
22
%%DATADIR%%/images/happy.bmp
23
%%DATADIR%%/images/left-mask.xbm
24
%%DATADIR%%/images/left.xbm
25
%%DATADIR%%/images/level.bmp
26
%%DATADIR%%/images/lines.bmp
27
%%DATADIR%%/images/need.bmp
28
%%DATADIR%%/images/nothing-mask.xbm
29
%%DATADIR%%/images/nothing.xbm
30
%%DATADIR%%/images/numbers.bmp
31
%%DATADIR%%/images/patience.bmp
32
%%DATADIR%%/images/paused.bmp
33
%%DATADIR%%/images/right-mask.xbm
34
%%DATADIR%%/images/right.xbm
35
%%DATADIR%%/images/sad.bmp
36
%%DATADIR%%/images/score.bmp
37
%%DATADIR%%/images/stopwatch.bmp
38
%%DATADIR%%/images/title.bmp
39
%%DATADIR%%/images/triangle.bmp
40
%%DATADIR%%/images/uhoh.bmp
41
%%DATADIR%%/images/warning.bmp
42
%%DATADIR%%/images/warning1.bmp
43
%%DATADIR%%/images/warning2.bmp
44
%%DATADIR%%/images/warning3.bmp
45
%%DATADIR%%/images/warning4.bmp
46
%%DATADIR%%/images/wildcard.bmp
47
%%DATADIR%%/images/win1.bmp
48
%%DATADIR%%/images/win2.bmp
49
%%DATADIR%%/images/yellowgem.bmp
50
%%DATADIR%%/sounds/22drops.mod
51
%%DATADIR%%/sounds/2force.xm
52
%%DATADIR%%/sounds/README
53
%%DATADIR%%/sounds/applause.wav
54
%%DATADIR%%/sounds/begin.wav
55
%%DATADIR%%/sounds/bomb.wav
56
%%DATADIR%%/sounds/buzzer.wav
57
%%DATADIR%%/sounds/citron.mod
58
%%DATADIR%%/sounds/clock.wav
59
%%DATADIR%%/sounds/gameover.wav
60
%%DATADIR%%/sounds/got.wav
61
%%DATADIR%%/sounds/grab.wav
62
%%DATADIR%%/sounds/hr_suds.xm
63
%%DATADIR%%/sounds/levelselect.wav
64
%%DATADIR%%/sounds/throw.wav
65
%%DATADIR%%/sounds/wildcard.wav
66
%%DATADIR%%/sounds/win.wav
67
@dirrm %%DATADIR%%/sounds
68
@dirrm %%DATADIR%%/images
69
@dirrm %%DATADIR%%
70
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 171270