summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-09-12 00:18:26 +0000
committerwiz <wiz@pkgsrc.org>2002-09-12 00:18:26 +0000
commitef848d2289e39c7dd24f1910240096bb168c799f (patch)
tree5c26d9d0dc64f56445fa5483a7577807bfe30bf9 /games
parentce0480a2bdc310bda151fc6b9309b7dcbecf4aba (diff)
downloadpkgsrc-ef848d2289e39c7dd24f1910240096bb168c799f.tar.gz
Initial import of mirrormagic-sdl, the SDL port of mirrormagic.
Package provided by Adam Ciarcinski, with cleanup and buildlink2ing by me.
Diffstat (limited to 'games')
-rw-r--r--games/mirrormagic-sdl/DESCR10
-rw-r--r--games/mirrormagic-sdl/Makefile49
-rw-r--r--games/mirrormagic-sdl/PLIST15
-rw-r--r--games/mirrormagic-sdl/distinfo7
-rw-r--r--games/mirrormagic-sdl/patches/patch-aa38
-rw-r--r--games/mirrormagic-sdl/patches/patch-ab22
-rw-r--r--games/mirrormagic-sdl/patches/patch-ac12
7 files changed, 153 insertions, 0 deletions
diff --git a/games/mirrormagic-sdl/DESCR b/games/mirrormagic-sdl/DESCR
new file mode 100644
index 00000000000..d228fdb5c32
--- /dev/null
+++ b/games/mirrormagic-sdl/DESCR
@@ -0,0 +1,10 @@
+This is a nice little game with color graphics and sound for your
+Unix system with color X11. You need an 8-Bit color display or better.
+It is not recommended on black&white systems, and maybe not on gray
+scale systems.
+
+It was first released as "Mirror Magic" in the year 1989 on the Amiga
+(with ports on other computer systems). As the Amiga is a bit outdated
+now, I decided to port it to Unix systems.
+
+A game for Unix/X11 by Holger Schemel, (c) 1995 by Holger Schemel.
diff --git a/games/mirrormagic-sdl/Makefile b/games/mirrormagic-sdl/Makefile
new file mode 100644
index 00000000000..2eebc529627
--- /dev/null
+++ b/games/mirrormagic-sdl/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/09/12 00:18:27 wiz Exp $
+#
+
+DISTNAME= mirrormagic-2.0.1
+PKGNAME= ${DISTNAME:S/-/-sdl-/}
+CATEGORIES= games x11
+MASTER_SITES= http://www.artsoft.org/RELEASES/unix/mirrormagic/
+
+MAINTAINER= root@garbled.net
+HOMEPAGE= http://www.artsoft.org/mirrormagic/
+COMMENT= Nice little puzzle game with color graphics and sound
+
+CONFLICTS= mirrormagic-[1-9]*
+
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+PLIST_SRC= ${WRKDIR}/PLIST PLIST
+
+# if you change SCORE_PATH, don't forget to change patch-aa, too
+SCORE_PATH= /var/games/mirrormagic
+
+do-install:
+ ${INSTALL_PROGRAM} -o bin -g games -m 2755 \
+ ${WRKSRC}/mirrormagic ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/mirrormagic
+ cd ${WRKSRC} && ${PAX} -r -w graphics levels music sounds \
+ ${PREFIX}/share/mirrormagic/
+ ${CHOWN} -R games:games ${PREFIX}/share/mirrormagic
+ ${INSTALL_DATA_DIR} ${SCORE_PATH}/scores
+ ${CHMOD} 755 ${SCORE_PATH}
+ ${CHMOD} 775 ${SCORE_PATH}/scores
+.for directory in classic_deflektor classic_mindbender
+ ${INSTALL_DATA_DIR} ${SCORE_PATH}/scores/${directory} \
+ && ${CHMOD} 775 ${SCORE_PATH}/scores/${directory}
+.endfor
+ ${RM} -f ${WRKDIR}/PLIST
+.for levdir in Classic_Games
+ cd ${PREFIX} && \
+ ${FIND} share/mirrormagic/levels/${levdir} -type f >>${WRKDIR}/PLIST
+.endfor
+.for directory in graphics music sounds
+ cd ${PREFIX} && \
+ ${FIND} share/mirrormagic/${directory} -type f >>${WRKDIR}/PLIST
+.endfor
+ ${CHOWN} -R games:games ${SCORE_PATH}
+
+.include "../../audio/SDL-mixer/buildlink2.mk"
+.include "../../graphics/SDL-image/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/mirrormagic-sdl/PLIST b/games/mirrormagic-sdl/PLIST
new file mode 100644
index 00000000000..b927e86f453
--- /dev/null
+++ b/games/mirrormagic-sdl/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/12 00:18:27 wiz Exp $
+bin/mirrormagic
+@exec install -d -m 775 -o games -g games /var/games/mirrormagic
+@exec install -d -m 775 -o games -g games /var/games/mirrormagic/scores
+@exec install -d -m 775 -o games -g games /var/games/mirrormagic/scores/classic_deflektor
+@exec install -d -m 775 -o games -g games /var/games/mirrormagic/scores/classic_mindbender
+@unexec echo Delete /var/games/mirrormagic if you do not need your hiscores anymore.
+@dirrm share/mirrormagic/sounds
+@dirrm share/mirrormagic/music
+@dirrm share/mirrormagic/levels/Classic_Games/classic_mindbender
+@dirrm share/mirrormagic/levels/Classic_Games/classic_deflektor
+@dirrm share/mirrormagic/levels/Classic_Games
+@dirrm share/mirrormagic/levels
+@dirrm share/mirrormagic/graphics
+@dirrm share/mirrormagic
diff --git a/games/mirrormagic-sdl/distinfo b/games/mirrormagic-sdl/distinfo
new file mode 100644
index 00000000000..c3fc96bc1d1
--- /dev/null
+++ b/games/mirrormagic-sdl/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/09/12 00:18:27 wiz Exp $
+
+SHA1 (mirrormagic-2.0.1.tar.gz) = c35770b30cc1e94a20aea721a9a2cfbef1b97781
+Size (mirrormagic-2.0.1.tar.gz) = 1167884 bytes
+SHA1 (patch-aa) = 130a36ed3aea3f445dbccc0b6b45b7aa198bca12
+SHA1 (patch-ab) = abc9e8b8ed66225b50a398e287d94dfa1b728365
+SHA1 (patch-ac) = 2dd983a8f2a82f80226b902af28f5c29011e42e3
diff --git a/games/mirrormagic-sdl/patches/patch-aa b/games/mirrormagic-sdl/patches/patch-aa
new file mode 100644
index 00000000000..943e3fa4259
--- /dev/null
+++ b/games/mirrormagic-sdl/patches/patch-aa
@@ -0,0 +1,38 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/09/12 00:18:27 wiz Exp $
+
+--- Makefile.orig Tue Mar 19 02:59:43 2002
++++ Makefile Thu Mar 28 11:43:12 2002
+@@ -12,15 +12,17 @@
+
+ # specify path to X11 on your system
+ # if undefined, use system defaults (works with Linux/gcc/libc5)
+-X11_PATH = /usr/X11
++X11_PATH = ${X11BASE}
+
+ # specify directory for read-only game data (like graphics, sounds, levels)
+ # default is '.', so you can play without installing game data somewhere
+ # RO_GAME_DIR = /usr/games
++RO_GAME_DIR = ${PREFIX}/share/mirrormagic
+
+ # specify directory for writable game data (like highscore files)
+ # default is '.', so you can play without installing game data somewhere
+ # RW_GAME_DIR = /var/games
++RW_GAME_DIR = /var/games/mirrormagic
+
+ # uncomment this if your system has no joystick include file
+ # JOYSTICK = -DNO_JOYSTICK
+@@ -42,13 +44,12 @@
+
+ .EXPORT_ALL_VARIABLES:
+
+-MAKE = make
+
+ SRC_DIR = src
+ MAKE_CMD = $(MAKE) -C $(SRC_DIR)
+
+ all:
+- @$(MAKE_CMD) TARGET=x11
++ @$(MAKE_CMD) TARGET=sdl
+
+ x11:
+ @$(MAKE_CMD) TARGET=x11
diff --git a/games/mirrormagic-sdl/patches/patch-ab b/games/mirrormagic-sdl/patches/patch-ab
new file mode 100644
index 00000000000..d51e2fb2824
--- /dev/null
+++ b/games/mirrormagic-sdl/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/09/12 00:18:27 wiz Exp $
+
+--- src/Makefile.orig Tue Mar 19 02:58:57 2002
++++ src/Makefile Thu Mar 28 11:34:15 2002
+@@ -17,7 +17,7 @@
+ XINC_PATH = $(X11_PATH)/include
+ XLIB_PATH = $(X11_PATH)/lib
+ X11_INCL = -I$(XINC_PATH)
+-X11_LIBS = -L$(XLIB_PATH)
++X11_LIBS = -L$(XLIB_PATH) -Wl,-R$(XLIB_PATH)
+ endif
+
+ AR = ar
+@@ -112,7 +112,7 @@
+ OPTIONS = -O3 -Wall
+ endif
+
+-CFLAGS = $(OPTIONS) $(SYS_CFLAGS) $(CONFIG)
++CFLAGS += $(SYS_CFLAGS) $(CONFIG)
+ LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm
+
+
diff --git a/games/mirrormagic-sdl/patches/patch-ac b/games/mirrormagic-sdl/patches/patch-ac
new file mode 100644
index 00000000000..1ab55557152
--- /dev/null
+++ b/games/mirrormagic-sdl/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/09/12 00:18:27 wiz Exp $
+
+--- src/libgame/sound.h.orig Thu Mar 28 11:44:35 2002
++++ src/libgame/sound.h Thu Mar 28 11:44:50 2002
+@@ -27,6 +27,7 @@
+ #elif defined(PLATFORM_FREEBSD)
+ #include <machine/soundcard.h>
+ #elif defined(PLATFORM_NETBSD)
++#include <sys/types.h>
+ #include <sys/ioctl.h>
+ #include <sys/audioio.h>
+ #elif defined(PLATFORM_HPUX)