summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authortron <tron>1998-07-30 23:11:40 +0000
committertron <tron>1998-07-30 23:11:40 +0000
commit2a50be0293ec3fdba885fe0d9c017b957edc3afc (patch)
tree5cb63c15bfb5e65ad90714e0284cd07a60d3f8c1 /games
parent61bc90934a75aad7360e71b07b5b4c84d11cb14a (diff)
downloadpkgsrc-2a50be0293ec3fdba885fe0d9c017b957edc3afc.tar.gz
New "maelstrom" package created by Tim Rightnour:
an incredible, fast moving, high graphics version of asteroids.
Diffstat (limited to 'games')
-rw-r--r--games/maelstrom/Makefile40
-rw-r--r--games/maelstrom/files/md55
-rw-r--r--games/maelstrom/patches/patch-aa50
-rw-r--r--games/maelstrom/patches/patch-ab12
-rw-r--r--games/maelstrom/patches/patch-ac8
-rw-r--r--games/maelstrom/patches/patch-ad7
-rw-r--r--games/maelstrom/patches/patch-ae23
-rw-r--r--games/maelstrom/pkg/COMMENT1
-rw-r--r--games/maelstrom/pkg/DESCR3
-rw-r--r--games/maelstrom/pkg/PLIST60
10 files changed, 209 insertions, 0 deletions
diff --git a/games/maelstrom/Makefile b/games/maelstrom/Makefile
new file mode 100644
index 00000000000..2193fcb69b2
--- /dev/null
+++ b/games/maelstrom/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 1998/07/30 23:11:40 tron Exp $
+
+DISTNAME= Maelstrom-1.4.3-L2.0.6-src.tar.gz
+PKGNAME= maelstrom-2.0.6
+CATEGORIES= games x11
+MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/
+MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/Maelstrom-binaries/
+MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/Add-Ons/
+DISTFILES= ${DISTNAME} ${STREK} ${SWARS} ${ESOUND}
+
+MAINTAINER= root@garbled.net
+
+ESOUND= Maelstrom-Sounds-L2.0.0.tar.gz
+STREK= Star_Trek.tar.gz
+SWARS= Star_Wars.tar.gz
+
+EXTRACT_ONLY= ${DISTNAME}
+
+WRKSRC= ${WRKDIR}/Maelstrom
+
+USE_X11= yes
+MAKE_ENV+= BINOWN=${BINOWN} BINGRP=${BINGRP}
+
+post-install:
+ cd ${PREFIX}/share/maelstrom && \
+ pax -rzf ${DISTDIR}/${ESOUND} -p m && \
+ pax -rzf ${DISTDIR}/${STREK} -p m && \
+ pax -rzf ${DISTDIR}/${SWARS} -p m
+ chown ${BINOWN}:games ${PREFIX}/bin/Maelstrom
+ chmod 2755 ${PREFIX}/bin/Maelstrom
+ chown ${BINOWN}:games ${PREFIX}/share/maelstrom/Maelstrom-Scores
+ chmod 0664 ${PREFIX}/share/maelstrom/Maelstrom-Scores
+ ${INSTALL_DATA} ${WRKSRC}/README.* ${PREFIX}/share/maelstrom
+ ${INSTALL_PROGRAM} ${WRKSRC}/netplayd/netplayd ${PREFIX}/bin/Maelstrom_netplayd
+
+.include "../../mk/bsd.pkg.mk"
+.if (${OBJECT_FMT} == "ELF")
+RPATH= -Wl,-R,${PREFIX}/lib
+.endif
+MAKE_ENV+= RPATH=${RPATH}
diff --git a/games/maelstrom/files/md5 b/games/maelstrom/files/md5
new file mode 100644
index 00000000000..e4e3c58ad45
--- /dev/null
+++ b/games/maelstrom/files/md5
@@ -0,0 +1,5 @@
+MD5 (Maelstrom-1.4.3-L2.0.6-src.tar.gz) = 350806a4fa46e7aae76f089dba4b1861
+MD5 (Maelstrom-data.tar.gz) = 409c3ff4afad4e7b0d015c386e3afe0e
+MD5 (Star_Trek.tar.gz) = 3953ba89920af1aee41d957066984877
+MD5 (Star_Wars.tar.gz) = 14fb98380be5fa833b1e96b60a0d3266
+MD5 (Maelstrom-Sounds-L2.0.0.tar.gz) = 438fba0d1c02ed38c5e126fc6e63bf87
diff --git a/games/maelstrom/patches/patch-aa b/games/maelstrom/patches/patch-aa
new file mode 100644
index 00000000000..4c4962aef4a
--- /dev/null
+++ b/games/maelstrom/patches/patch-aa
@@ -0,0 +1,50 @@
+--- Makeflags.orig Mon Jul 14 11:32:13 1997
++++ Makeflags Thu Jul 30 04:46:45 1998
+@@ -1,8 +1,13 @@
++# This file contains the template for Makeflags
+
+-# Some sensible defaults
+-BINDIR = /usr/local/bin
+-LIBDIR = /usr/local/lib/Maelstrom
++SYSTEM =
++FEATURES =
+
+-INSTALL = install
++LOGIC = netlogic
+
++XPMINCLUDE = -I$(PREFIX)/include
++XPMLINKDIR = -Wl,-R$(PREFIX)/lib -L$(PREFIX)/lib
++
++BINDIR = $(PREFIX)/bin
++LIBDIR = $(PREFIX)/share/maelstrom
+ DATAFILES = Images/*.icon Images/*.cicn "Maelstrom Fonts" \
+@@ -10,3 +15,28 @@
+
+-all: config
++OBJS = main.o framebuf.o v_framebuf.o x11_framebuf.o vga_framebuf.o \
++ dga_framebuf.o fontserv.o sound.o Mac_Resource.o imagedump.o \
++ init.o $(LOGIC)/$(LOGIC).o \
++ controls.o scores.o dialog.o fastrand.o netscore.o checksum.o \
++ Utils.o shared.o myerror.o
++SOUNDOBJS = Maelstrom_sound.o Mac_Resource.o soundres.o mixer.o shared.o myerror.o
++
++#CXX = c++
++OPTIMIZE =
++X11INCLUDE = -I$(X11BASE)/include
++INCLUDES = -I$(LOGIC) $(X11INCLUDE) $(XPMINCLUDE)
++CFLAGS = $(OPTIMIZE) $(INCLUDES) $(FEATURES) \
++ -DSYSTEM=\"$(SYSTEM)\" -DLIBDIR=\"$(LIBDIR)\"
++EXTRALIBS =
++X11LINKDIR = $(RPATH) -L$(X11BASE)/lib
++X11LIBS = -lX11 -lXext -lXpm
++CSUMLIB =
++LIBS = $(EXTRALIBS) $(XPMLINKDIR) $(X11LINKDIR) $(X11LIBS) $(CSUMLIB)
++SOUNDLIBS =
++
++INSTALL = /usr/bin/install
++
++all: $(MAELSTROM) netplayd/netplayd
++
++netplayd:
++ cd netplayd && make
+
diff --git a/games/maelstrom/patches/patch-ab b/games/maelstrom/patches/patch-ab
new file mode 100644
index 00000000000..468dca2f308
--- /dev/null
+++ b/games/maelstrom/patches/patch-ab
@@ -0,0 +1,12 @@
+--- bitesex.h.orig Thu Jul 30 03:45:50 1998
++++ bitesex.h Thu Jul 30 03:46:35 1998
+@@ -27,3 +27,3 @@
+ #else
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #include <machine/endian.h>
+@@ -39,3 +39,3 @@
+ #endif /* SVR4 */
+-#endif /* FreeBSD */
++#endif /* FreeBSD/NetBSD */
+ #endif /* AIX */
diff --git a/games/maelstrom/patches/patch-ac b/games/maelstrom/patches/patch-ac
new file mode 100644
index 00000000000..dd4550f14d7
--- /dev/null
+++ b/games/maelstrom/patches/patch-ac
@@ -0,0 +1,8 @@
+--- mixer.h.orig Thu Jul 30 03:57:30 1998
++++ mixer.h Thu Jul 30 03:59:31 1998
+@@ -40,2 +40,5 @@
+ #endif /* linux */
++#ifdef __NetBSD__
++#include <soundcard.h>
++#endif
+ };
diff --git a/games/maelstrom/patches/patch-ad b/games/maelstrom/patches/patch-ad
new file mode 100644
index 00000000000..78afa99121a
--- /dev/null
+++ b/games/maelstrom/patches/patch-ad
@@ -0,0 +1,7 @@
+--- mixer.cpp.orig Thu Jul 30 03:59:50 1998
++++ mixer.cpp Thu Jul 30 04:02:23 1998
+@@ -287,3 +287,3 @@
+ flags = fcntl(dsp_fd, F_GETFL, 0);
+- flags |= O_SYNC;
++/* flags |= O_SYNC;*/
+ (void) fcntl(dsp_fd, F_SETFL, flags);
diff --git a/games/maelstrom/patches/patch-ae b/games/maelstrom/patches/patch-ae
new file mode 100644
index 00000000000..46e3aa81f06
--- /dev/null
+++ b/games/maelstrom/patches/patch-ae
@@ -0,0 +1,23 @@
+--- Makefile.orig Wed Feb 5 14:12:18 1997
++++ Makefile Fri Jul 31 00:59:32 1998
+@@ -18,7 +18,7 @@
+ @echo "Installing binaries in $(BINDIR)..."
+ @for i in $(MAELSTROM) ; do \
+ strip $$i; \
+- $(INSTALL) -m 755 $$i $(BINDIR); \
++ $(INSTALL) -c -m 755 $$i $(BINDIR); \
+ done
+ @if [ ! -d $(LIBDIR) ]; then \
+ mkdir $(LIBDIR); chmod 755 $(LIBDIR); \
+@@ -26,9 +26,10 @@
+ @echo "Installing data files in $(LIBDIR) ..."
+ @tar cf - $(DATAFILES) | (cd $(LIBDIR); tar xvf -)
+ @chmod -R +r $(LIBDIR)
++ @chown -R ${BINOWN}:${BINGRP} $(LIBDIR)
+ @if [ ! -f "$(LIBDIR)/Maelstrom-Scores" ]; then \
+ echo "Installing Maelstrom high-scores file"; \
+- $(INSTALL) -m 666 Maelstrom-Scores $(LIBDIR); \
++ $(INSTALL) -c -m 666 Maelstrom-Scores $(LIBDIR); \
+ chmod 666 $(LIBDIR)/Maelstrom-Scores; \
+ fi
+ @-if [ "$(SYSTEM)" = "Linux" ]; then \
diff --git a/games/maelstrom/pkg/COMMENT b/games/maelstrom/pkg/COMMENT
new file mode 100644
index 00000000000..688ab581f42
--- /dev/null
+++ b/games/maelstrom/pkg/COMMENT
@@ -0,0 +1 @@
+an incredible, fast moving, high graphics version of asteroids.
diff --git a/games/maelstrom/pkg/DESCR b/games/maelstrom/pkg/DESCR
new file mode 100644
index 00000000000..0ca40defb55
--- /dev/null
+++ b/games/maelstrom/pkg/DESCR
@@ -0,0 +1,3 @@
+Maelstrom is a port of the original shareware game for the Macintosh.
+It is a fast-action, high resolution (640x480) asteroids-like game,
+with detailed graphics and original sounds.
diff --git a/games/maelstrom/pkg/PLIST b/games/maelstrom/pkg/PLIST
new file mode 100644
index 00000000000..85f82d9dae3
--- /dev/null
+++ b/games/maelstrom/pkg/PLIST
@@ -0,0 +1,60 @@
+@comment $NetBSD: PLIST,v 1.1 1998/07/30 23:11:41 tron Exp $
+share/maelstrom/NewSounds/Simpsons_Sounds
+share/maelstrom/NewSounds/Maelstrom Sounds
+share/maelstrom/NewSounds/Martin_Sounds
+share/maelstrom/NewSounds/Funky_Sounds
+share/maelstrom/NewSounds/README
+share/maelstrom/Star_Trek/README_sprites.txt
+share/maelstrom/Star_Trek/%Maelstrom Sprites
+share/maelstrom/Star_Trek/README_sounds.txt
+share/maelstrom/Star_Trek/%Maelstrom Sounds
+share/maelstrom/Star_Trek/INSTALL.txt
+share/maelstrom/Star_Trek/HOWTO.txt
+share/maelstrom/Star_Wars/README_sprites.txt
+share/maelstrom/Star_Wars/%Maelstrom Sprites
+share/maelstrom/Star_Wars/README_sounds.txt
+share/maelstrom/Star_Wars/%Maelstrom Sounds
+share/maelstrom/Star_Wars/INSTALL.txt
+share/maelstrom/Star_Wars/HOWTO.txt
+share/maelstrom/README.Options
+share/maelstrom/README.joystick
+share/maelstrom/README.network
+share/maelstrom/Maelstrom Fonts
+share/maelstrom/Maelstrom Sounds
+share/maelstrom/Maelstrom Sprites
+share/maelstrom/Images/Maelstrom_Sprites#128.icon
+share/maelstrom/Images/Maelstrom_Titles#100.icon
+share/maelstrom/Images/Maelstrom_Titles#101.icon
+share/maelstrom/Images/Maelstrom_Titles#102.icon
+share/maelstrom/Images/Maelstrom_Titles#128.icon
+share/maelstrom/Images/Maelstrom_Titles#129.icon
+share/maelstrom/Images/Maelstrom_Titles#130.icon
+share/maelstrom/Images/Maelstrom_Titles#133.icon
+share/maelstrom/Images/Maelstrom_Titles#134.icon
+share/maelstrom/Images/Maelstrom_Titles#135.icon
+share/maelstrom/Images/Maelstrom_Titles#999.icon
+share/maelstrom/Images/Maelstrom_Icon#100.cicn
+share/maelstrom/Images/Maelstrom_Icon#101.cicn
+share/maelstrom/Images/Maelstrom_Icon#102.cicn
+share/maelstrom/Images/Maelstrom_Icon#103.cicn
+share/maelstrom/Images/Maelstrom_Icon#104.cicn
+share/maelstrom/Images/Maelstrom_Icon#110.cicn
+share/maelstrom/Images/Maelstrom_Icon#128.cicn
+share/maelstrom/Images/Maelstrom_Icon#129.cicn
+share/maelstrom/Images/Maelstrom_Icon#130.cicn
+share/maelstrom/Images/Maelstrom_Icon#131.cicn
+share/maelstrom/Images/Maelstrom_Icon#132.cicn
+share/maelstrom/Images/Maelstrom_Icon#133.cicn
+share/maelstrom/Images/Maelstrom_Icon#134.cicn
+share/maelstrom/Images/Maelstrom_Icon#135.cicn
+share/maelstrom/Images/Maelstrom_Icon#136.cicn
+share/maelstrom/Images/Maelstrom_Icon#137.cicn
+share/maelstrom/Maelstrom-Scores
+bin/Maelstrom_netplayd
+bin/Maelstrom
+bin/Maelstrom_sound
+@dirrm share/maelstrom/Star_Trek
+@dirrm share/maelstrom/NewSounds
+@dirrm share/maelstrom/Star_Wars
+@dirrm share/maelstrom/Images
+@dirrm share/maelstrom