From 9414530b468d609eac90e10d5f40bb8176a2584b Mon Sep 17 00:00:00 2001 From: Matthew Hunt Date: Sun, 17 May 1998 05:43:37 +0000 Subject: Import of Maelstrom, a nifty Asteroids-like game. In its original Macintosh form, it addicted a former roommate for the better part of a semester. PR: 6654 Submitted by: Andrey Zakhvatov --- games/maelstrom/Makefile | 47 ++++++++++++++++++++++++++++++++++++ games/maelstrom/distinfo | 1 + games/maelstrom/files/Makeflags | 37 ++++++++++++++++++++++++++++ games/maelstrom/files/patch-aa | 15 ++++++++++++ games/maelstrom/files/patch-ab | 11 +++++++++ games/maelstrom/files/patch-ac | 9 +++++++ games/maelstrom/pkg-comment | 1 + games/maelstrom/pkg-descr | 5 ++++ games/maelstrom/pkg-plist | 53 +++++++++++++++++++++++++++++++++++++++++ 9 files changed, 179 insertions(+) create mode 100644 games/maelstrom/Makefile create mode 100644 games/maelstrom/distinfo create mode 100644 games/maelstrom/files/Makeflags create mode 100644 games/maelstrom/files/patch-aa create mode 100644 games/maelstrom/files/patch-ab create mode 100644 games/maelstrom/files/patch-ac create mode 100644 games/maelstrom/pkg-comment create mode 100644 games/maelstrom/pkg-descr create mode 100644 games/maelstrom/pkg-plist (limited to 'games') diff --git a/games/maelstrom/Makefile b/games/maelstrom/Makefile new file mode 100644 index 000000000000..3a52af72a636 --- /dev/null +++ b/games/maelstrom/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: Maelstrom +# Version required: 2.0.6 +# Date created: 13 May 1998 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= Maelstrom-1.4.3-L2.0.6-src +PKGNAME= maelstrom-2.0.6 +CATEGORIES= games x11 +MASTER_SITES= ${MASTER_SITE_SUNSITE} \ + ftp://ftp.devolution.com/pub/maelstrom/ +MASTER_SITE_SUBDIR= games/x11/networked + +MAINTAINER= andy@icc.surw.chel.su + +LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm + +USE_X11= yes +WRKSRC= ${WRKDIR}/Maelstrom + +do-configure: + @ ${CP} ${FILESDIR}/Makeflags ${WRKSRC} + +do-install: + @ ${INSTALL_PROGRAM} ${WRKSRC}/Maelstrom ${PREFIX}/bin + @ ${INSTALL_PROGRAM} ${WRKSRC}/Maelstrom_sound ${PREFIX}/bin + @ ${MKDIR} ${PREFIX}/share/Maelstrom +.for file in Fonts Sounds Sprites + @ ${INSTALL_DATA} ${WRKSRC}/Maelstrom\ ${file} ${PREFIX}/share/Maelstrom +.endfor + @ ${INSTALL_DATA} ${WRKSRC}/Maelstrom-Scores ${PREFIX}/share/Maelstrom + @ chown games:games ${PREFIX}/share/Maelstrom/Maelstrom-Scores + @ chmod 666 ${PREFIX}/share/Maelstrom/Maelstrom-Scores + @ ${MKDIR} ${PREFIX}/share/Maelstrom/Images + @ ${INSTALL_DATA} ${WRKSRC}/Images/*n ${PREFIX}/share/Maelstrom/Images + +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${PREFIX}/share/doc/Maelstrom +.for file in Ambrosia.URL BUGS Changelog Copyright README README.Options README.network + @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/Maelstrom +.endfor + @ ${INSTALL_DATA} ${WRKSRC}/Doc/* ${PREFIX}/share/doc/Maelstrom +.endif + +.include diff --git a/games/maelstrom/distinfo b/games/maelstrom/distinfo new file mode 100644 index 000000000000..67054af491d0 --- /dev/null +++ b/games/maelstrom/distinfo @@ -0,0 +1 @@ +MD5 (Maelstrom-1.4.3-L2.0.6-src.tar.gz) = 350806a4fa46e7aae76f089dba4b1861 diff --git a/games/maelstrom/files/Makeflags b/games/maelstrom/files/Makeflags new file mode 100644 index 000000000000..0f180f52f24e --- /dev/null +++ b/games/maelstrom/files/Makeflags @@ -0,0 +1,37 @@ +# This file contains the template for Makeflags + +SYSTEM = FreeBSD +FEATURES = -DASYNCHRONOUS_IO -DUSE_POSIX_SIGNALS -DUNSIGNED_AUDIO_DATA -DFORCE_XSHM -DNETPLAY + +LOGIC = netlogic + +XPMINCLUDE = +XPMLINKDIR = + +BINDIR = ${PREFIX}/bin +LIBDIR = ${PREFIX}/share/Maelstrom +DATAFILES = Images/*.icon Images/*.cicn "Maelstrom Fonts" \ + "Maelstrom Sounds" "Maelstrom Sprites" + +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 + +X11INCLUDE = -I${X11BASE}/include +INCLUDES = -I$(LOGIC) $(X11INCLUDE) $(XPMINCLUDE) +CFLAGS += $(INCLUDES) $(FEATURES) \ + -DSYSTEM=\"$(SYSTEM)\" -DLIBDIR=\"$(LIBDIR)\" +EXTRALIBS = +X11LINKDIR = -L${X11BASE}/lib +X11LIBS = -lXpm $(XPMLINKDIR) -lX11 -lXext $(X11LINKDIR) +CSUMLIB = +LIBS = $(EXTRALIBS) $(X11LIBS) $(CSUMLIB) +SOUNDLIBS = + +INSTALL = install + +all: $(MAELSTROM) + diff --git a/games/maelstrom/files/patch-aa b/games/maelstrom/files/patch-aa new file mode 100644 index 000000000000..bcc988814739 --- /dev/null +++ b/games/maelstrom/files/patch-aa @@ -0,0 +1,15 @@ +--- mixer.cpp Thu Dec 5 13:14:44 1996 ++++ /home/andy/tmp/wrk/mixer.cpp Wed May 13 23:06:18 1998 +@@ -283,10 +283,12 @@ + #endif /* linux */ + + /* This is necessary so that the sound server stays in sync */ ++#ifndef __FreeBSD__ + long flags; + flags = fcntl(dsp_fd, F_GETFL, 0); + flags |= O_SYNC; + (void) fcntl(dsp_fd, F_SETFL, flags); ++#endif + + return(0); + } diff --git a/games/maelstrom/files/patch-ab b/games/maelstrom/files/patch-ab new file mode 100644 index 000000000000..e5bb4c021395 --- /dev/null +++ b/games/maelstrom/files/patch-ab @@ -0,0 +1,11 @@ +--- mixer.h Sun May 25 21:18:10 1997 ++++ /home/andy/tmp/wrk/mixer.h Thu May 14 00:25:17 1998 +@@ -41,7 +41,7 @@ + }; + + #define _PATH_DEV_AUDIO "/dev/audio" +-#ifdef linux ++#if (defined(linux) || defined(__FreeBSD__)) + #define _PATH_DEV_DSP "/dev/dsp" + #else + #define _PATH_DEV_DSP _PATH_DEV_AUDIO diff --git a/games/maelstrom/files/patch-ac b/games/maelstrom/files/patch-ac new file mode 100644 index 000000000000..60f552b02415 --- /dev/null +++ b/games/maelstrom/files/patch-ac @@ -0,0 +1,9 @@ +--- netlogic/Makefile.orig Sun May 17 01:28:58 1998 ++++ netlogic/Makefile Sun May 17 01:29:05 1998 +@@ -1,5 +1,5 @@ + +-CFLAGS = $(OPTIMIZE) -I.. $(INCLUDES) -DNETPLAY ++CFLAGS += $(OPTIMIZE) -I.. $(INCLUDES) -DNETPLAY + OBJS = about.o blit.o game.o logic.o make.o netplay.o object.o player.o + + netlogic.o: $(OBJS) diff --git a/games/maelstrom/pkg-comment b/games/maelstrom/pkg-comment new file mode 100644 index 000000000000..adde561f0035 --- /dev/null +++ b/games/maelstrom/pkg-comment @@ -0,0 +1 @@ +Asteroids-style game for X Window System. diff --git a/games/maelstrom/pkg-descr b/games/maelstrom/pkg-descr new file mode 100644 index 000000000000..ff815e8ea195 --- /dev/null +++ b/games/maelstrom/pkg-descr @@ -0,0 +1,5 @@ +A port of the high resolution, fast action Asteroids-style +Mac game Maelstrom originally written by Ambrosia Software. +Unique to this port is a kick-butt network play mode. + +Homepage: http://www.devolution.com/~slouken/Maelstrom diff --git a/games/maelstrom/pkg-plist b/games/maelstrom/pkg-plist new file mode 100644 index 000000000000..536777ba7b08 --- /dev/null +++ b/games/maelstrom/pkg-plist @@ -0,0 +1,53 @@ +bin/Maelstrom +bin/Maelstrom_sound +share/Maelstrom/Maelstrom Fonts +share/Maelstrom/Maelstrom Sounds +share/Maelstrom/Maelstrom Sprites +share/Maelstrom/Maelstrom-Scores +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/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/doc/Maelstrom/Ambrosia.FAQ +share/doc/Maelstrom/Ambrosia.URL +share/doc/Maelstrom/BUGS +share/doc/Maelstrom/Changelog +share/doc/Maelstrom/Copyright +share/doc/Maelstrom/Maelstrom-Announce +share/doc/Maelstrom/Maelstrom.FAQ +share/doc/Maelstrom/Networking.Paper +share/doc/Maelstrom/Porting.Paper +share/doc/Maelstrom/Quotes +share/doc/Maelstrom/README +share/doc/Maelstrom/README.Options +share/doc/Maelstrom/README.network +share/doc/Maelstrom/RSA.README +share/doc/Maelstrom/Technical_Notes-v1.0 +share/doc/Maelstrom/Technical_Notes-v1.1 +share/doc/Maelstrom/Technical_Notes-v2.0 +@dirrm share/Maelstrom/Images +@dirrm share/Maelstrom +@dirrm share/doc/Maelstrom -- cgit v1.2.3