Initial addition of gemdropx-0.3, a color puzzle game for X11 similar to
Gem Drop. Closes pr 5845 by Tim Rightnour.
This commit is contained in:
parent
4a3c7b2033
commit
7e0f62c5e2
7 changed files with 188 additions and 0 deletions
20
games/gemdropx/Makefile
Normal file
20
games/gemdropx/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
# $NetBSD: Makefile,v 1.1 1998/07/25 21:22:38 frueauf Exp $
|
||||
#
|
||||
|
||||
DISTNAME= gemdropx
|
||||
PKGNAME= gemdropx-0.3
|
||||
CATEGORIES= games x11
|
||||
MASTER_SITES= ftp://ftp.sonic.net/pub/users/nbs/unix/x/gemdropx/
|
||||
|
||||
MAINTAINER= root@garbled.net
|
||||
|
||||
MAKEFILE= makefile
|
||||
WRKSRC= ${WRKDIR}/gemdropx
|
||||
|
||||
USE_X11= yes
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
.if (${OBJECT_FMT} == "ELF")
|
||||
RPATH= -Wl,-rpath,${PREFIX}/lib
|
||||
.endif
|
||||
MAKE_ENV+= RPATH=${RPATH}
|
1
games/gemdropx/files/md5
Normal file
1
games/gemdropx/files/md5
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (gemdropx.tar.gz) = c12aef7ad4cee538f6fb42a88ea9dcbc
|
12
games/gemdropx/patches/patch-aa
Normal file
12
games/gemdropx/patches/patch-aa
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- gemdropx.c.orig Sat Jul 25 06:09:10 1998
|
||||
+++ gemdropx.c Sat Jul 25 06:11:50 1998
|
||||
@@ -157,3 +157,3 @@
|
||||
{
|
||||
- sprintf(cmd, "/bin/cat sounds/%s.au > /dev/audio &", aufile);
|
||||
+ sprintf(cmd, "/bin/cat " SOUNDS "/%s.au > /dev/audio &", aufile);
|
||||
|
||||
@@ -312,3 +312,3 @@
|
||||
{
|
||||
- sprintf(file, "gfx/%s.xbm", object_filenames[i]);
|
||||
+ sprintf(file, GFX "/%s.xbm", object_filenames[i]);
|
||||
|
76
games/gemdropx/patches/patch-ab
Normal file
76
games/gemdropx/patches/patch-ab
Normal file
|
@ -0,0 +1,76 @@
|
|||
--- makefile.orig Fri Nov 21 23:56:59 1997
|
||||
+++ makefile Sat Jul 25 06:50:05 1998
|
||||
@@ -11,10 +11,11 @@
|
||||
|
||||
-
|
||||
CC=gcc
|
||||
-POSTPROCESS=strip
|
||||
-
|
||||
-XLIB=-lX11
|
||||
-# XLIB=-L/usr/openwin/lib -lX11
|
||||
-# XLIB=-L/usr/X11/lib -lX11
|
||||
|
||||
+INSTALLROOT=$(PREFIX)
|
||||
+GFX=$(PREFIX)/share/gemdropx/gfx
|
||||
+SOUNDS=$(PREFIX)/share/gemdropx/sounds
|
||||
+
|
||||
+XLIB= $(RPATH) -L$(PREFIX)/lib -lX11 -lm -lcompat
|
||||
+XINC= -I$(PREFIX)/include
|
||||
+CFLAGS= $(XINC) -DSOUNDS=\"$(SOUNDS)\" -DGFX=\"$(GFX)\"
|
||||
|
||||
@@ -29,11 +30,15 @@
|
||||
|
||||
+install: gemdropx
|
||||
+ /usr/bin/install -c -s -o bin -g games -m 2755 gemdropx $(INSTALLROOT)/bin
|
||||
+ mkdir -p $(GFX)
|
||||
+ /usr/bin/install -o bin -g bin -m 0644 gfx/* $(GFX)
|
||||
+ mkdir -p $(SOUNDS)
|
||||
+ /usr/bin/install -o bin -g bin -m 0644 sounds/* $(SOUNDS)
|
||||
+ /usr/bin/install -o bin -g bin -m 0644 README $(INSTALLROOT)/share/gemdropx
|
||||
|
||||
-gemdropx: gemdropx.o connect.o randnum.o window.o hints.o text.o gc.o \
|
||||
- color.o visual.o sleepfor.o
|
||||
- $(CC) gemdropx.o connect.o randnum.o window.o hints.o text.o gc.o \
|
||||
- color.o visual.o sleepfor.o \
|
||||
- $(XLIB) -lm -o gemdropx
|
||||
- $(POSTPROCESS) gemdropx
|
||||
- chmod 755 gemdropx
|
||||
+OBJS= gemdropx.o connect.o randnum.o window.o hints.o text.o gc.o \
|
||||
+ color.o visual.o sleepfor.o
|
||||
|
||||
+gemdropx: $(OBJS)
|
||||
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(XLIB)
|
||||
|
||||
@@ -41,30 +46,10 @@
|
||||
color.h visual.h sleepfor.h
|
||||
- $(CC) gemdropx.c -c
|
||||
-
|
||||
-
|
||||
connect.o: connect.c connect.h
|
||||
- $(CC) connect.c -c
|
||||
-
|
||||
randnum.o: randnum.c randnum.h
|
||||
- $(CC) randnum.c -c
|
||||
-
|
||||
window.o: window.c window.h
|
||||
- $(CC) window.c -c
|
||||
-
|
||||
hints.o: hints.c hints.h
|
||||
- $(CC) hints.c -c
|
||||
-
|
||||
-text.o: text.c text.h
|
||||
- $(CC) text.c -c
|
||||
-
|
||||
-gc.o: gc.c gc.h
|
||||
- $(CC) gc.c -c
|
||||
-
|
||||
+text.o: text.c text.h
|
||||
+gc.o: gc.c gc.h
|
||||
color.o: color.c color.h
|
||||
- $(CC) color.c -c
|
||||
-
|
||||
visual.o: visual.c visual.h
|
||||
- $(CC) visual.c -c
|
||||
-
|
||||
sleepfor.o: sleepfor.c sleepfor.h
|
||||
- $(CC) sleepfor.c -c
|
1
games/gemdropx/pkg/COMMENT
Normal file
1
games/gemdropx/pkg/COMMENT
Normal file
|
@ -0,0 +1 @@
|
|||
a color puzzle game for X11 similar to Gem Drop.
|
17
games/gemdropx/pkg/DESCR
Normal file
17
games/gemdropx/pkg/DESCR
Normal file
|
@ -0,0 +1,17 @@
|
|||
Gem Drop X is an interesting one-player puzzle game for X-Window.
|
||||
It's been written in C under Unix and requires you to compile the
|
||||
source code to produce the executable program itself. You'll also
|
||||
of course need an X display terminal or software to actually see
|
||||
the game. (Although a curses version may be released at one point!)
|
||||
|
||||
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.
|
||||
|
||||
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!))
|
61
games/gemdropx/pkg/PLIST
Normal file
61
games/gemdropx/pkg/PLIST
Normal file
|
@ -0,0 +1,61 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 1998/07/25 21:22:39 frueauf Exp $
|
||||
bin/gemdropx
|
||||
share/gemdropx/README
|
||||
share/gemdropx/gfx/author.gif
|
||||
share/gemdropx/gfx/author.xbm
|
||||
share/gemdropx/gfx/block.gif
|
||||
share/gemdropx/gfx/block.xbm
|
||||
share/gemdropx/gfx/bomb.gif
|
||||
share/gemdropx/gfx/bomb.xbm
|
||||
share/gemdropx/gfx/brick.gif
|
||||
share/gemdropx/gfx/brick.xbm
|
||||
share/gemdropx/gfx/convert
|
||||
share/gemdropx/gfx/diamond.gif
|
||||
share/gemdropx/gfx/diamond.xbm
|
||||
share/gemdropx/gfx/disc.gif
|
||||
share/gemdropx/gfx/disc.xbm
|
||||
share/gemdropx/gfx/dot.gif
|
||||
share/gemdropx/gfx/dot.xbm
|
||||
share/gemdropx/gfx/explode0.gif
|
||||
share/gemdropx/gfx/explode0.xbm
|
||||
share/gemdropx/gfx/explode1.gif
|
||||
share/gemdropx/gfx/explode1.xbm
|
||||
share/gemdropx/gfx/explode2.gif
|
||||
share/gemdropx/gfx/explode2.xbm
|
||||
share/gemdropx/gfx/explode3.gif
|
||||
share/gemdropx/gfx/explode3.xbm
|
||||
share/gemdropx/gfx/face.gif
|
||||
share/gemdropx/gfx/face.xbm
|
||||
share/gemdropx/gfx/fuji.gif
|
||||
share/gemdropx/gfx/fuji.xbm
|
||||
share/gemdropx/gfx/happy.gif
|
||||
share/gemdropx/gfx/happy.xbm
|
||||
share/gemdropx/gfx/sad.gif
|
||||
share/gemdropx/gfx/sad.xbm
|
||||
share/gemdropx/gfx/star.gif
|
||||
share/gemdropx/gfx/star.xbm
|
||||
share/gemdropx/gfx/stopwatch.gif
|
||||
share/gemdropx/gfx/stopwatch.xbm
|
||||
share/gemdropx/gfx/title.gif
|
||||
share/gemdropx/gfx/title.xbm
|
||||
share/gemdropx/gfx/triangle.gif
|
||||
share/gemdropx/gfx/triangle.xbm
|
||||
share/gemdropx/gfx/warning.gif
|
||||
share/gemdropx/gfx/warning.xbm
|
||||
share/gemdropx/gfx/wildcard.gif
|
||||
share/gemdropx/gfx/wildcard.xbm
|
||||
share/gemdropx/gfx/win1.gif
|
||||
share/gemdropx/gfx/win1.xbm
|
||||
share/gemdropx/gfx/win2.gif
|
||||
share/gemdropx/gfx/win2.xbm
|
||||
share/gemdropx/sounds/begin.au
|
||||
share/gemdropx/sounds/bomb.au
|
||||
share/gemdropx/sounds/clock.au
|
||||
share/gemdropx/sounds/gameover.au
|
||||
share/gemdropx/sounds/got.au
|
||||
share/gemdropx/sounds/levelselect.au
|
||||
share/gemdropx/sounds/wildcard.au
|
||||
share/gemdropx/sounds/win.au
|
||||
@dirrm share/gemdropx/sounds
|
||||
@dirrm share/gemdropx/gfx
|
||||
@dirrm share/gemdropx
|
Loading…
Reference in a new issue