summaryrefslogtreecommitdiff
path: root/games/wormz
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-11-05 08:24:12 +0000
committergarbled <garbled@pkgsrc.org>1998-11-05 08:24:12 +0000
commit0b38579fc182714c3b134a20d8f4cd331b06adff (patch)
tree116ebf22093e2247f641fffaa1d3a5f665174fc8 /games/wormz
parentebc2324865dd972d23b016978431e2bfa0abbf23 (diff)
downloadpkgsrc-0b38579fc182714c3b134a20d8f4cd331b06adff.tar.gz
Initial import of wormz-1.0b5:
a networked game for X11
Diffstat (limited to 'games/wormz')
-rw-r--r--games/wormz/Makefile23
-rw-r--r--games/wormz/files/md53
-rw-r--r--games/wormz/patches/patch-aa91
-rw-r--r--games/wormz/patches/patch-ab31
-rw-r--r--games/wormz/patches/patch-ac16
-rw-r--r--games/wormz/pkg/COMMENT1
-rw-r--r--games/wormz/pkg/DESCR7
-rw-r--r--games/wormz/pkg/MESSAGE4
-rw-r--r--games/wormz/pkg/PLIST32
9 files changed, 208 insertions, 0 deletions
diff --git a/games/wormz/Makefile b/games/wormz/Makefile
new file mode 100644
index 00000000000..f2c741afbbd
--- /dev/null
+++ b/games/wormz/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/11/05 08:24:12 garbled Exp $
+#
+
+DISTNAME= Wormz-1.0b5
+PKGNAME= wormz-1.0b5
+CATEGORIES= games x11
+MASTER_SITES= http://lide.punknet.cz/miri/
+
+MAINTAINER= root@garbled.net
+HOMEPAGE= http://lide.punknet.cz/miri/wormz.html
+
+WRKSRC= ${WRKDIR}/Wormz
+USE_GMAKE= yes
+USE_X11= yes
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/NetBSD
+ ${TOUCH} ${WRKSRC}/NetBSD/.depend
+
+do-configure:
+ (cd ${WRKSRC} && ${GMAKE} ${MAKE_ENV} depend)
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/wormz/files/md5 b/games/wormz/files/md5
new file mode 100644
index 00000000000..2739ea59a3e
--- /dev/null
+++ b/games/wormz/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1998/11/05 08:24:12 garbled Exp $
+
+MD5 (Wormz-1.0b5.tar.gz) = bd00b1aa7c49f203b06f8d90c48a8d9a
diff --git a/games/wormz/patches/patch-aa b/games/wormz/patches/patch-aa
new file mode 100644
index 00000000000..0dbe9a67ee2
--- /dev/null
+++ b/games/wormz/patches/patch-aa
@@ -0,0 +1,91 @@
+$NetBSD: patch-aa,v 1.1.1.1 1998/11/05 08:24:12 garbled Exp $
+--- Makefile.orig Tue Jul 14 06:41:40 1998
++++ Makefile Wed Nov 4 21:36:13 1998
+@@ -3,8 +3,8 @@
+
+ #BinInstallPath=$(ARCH)/
+ #LibInstallPath=images/
+-BinInstallPath=/usr/X11R6/bin/
+-LibInstallPath=/usr/lib/Wormz/
++BinInstallPath=$(PREFIX)/bin/
++LibInstallPath=$(PREFIX)/share/Wormz/
+
+ #AllDepths=16
+ AllDepths=8 16 24
+@@ -29,13 +29,18 @@
+ ifeq ($(TYPEOS),Linux)
+ ARCH=Linux
+ EXTRALIBS=-lm
++else
++ifeq ($(TYPEOS),NetBSD)
++ARCH=NetBSD
++EXTRALIBS=-lm
++else
+ #!!!
+ #EXTRALIBS=-lefence
+-else
+
+ endif
+ endif
+ endif
++endif
+
+ ifdef USE_GGI
+ EXTRAGGILIBS=-lggi -lt1
+@@ -43,8 +48,8 @@
+
+ ifdef ARCH
+
+-INSTALL=install
+-INSTALLBIN=install -s
++INSTALL=install -c
++INSTALLBIN=install -c -s
+ INSTALLDIR=install -d
+
+ CC=gcc
+@@ -60,8 +65,8 @@
+ #-lefence
+ CFLAGS=-pipe $(INCLUDE) $(OPTFLAGS) $(DEBUGFLAGS) $(WARNFLAGS) $(CDEFS)
+ #-Wshadow
+-X11INCLUDE=-I/usr/openwin/share/include/
+-STDINCLUDE=-I/usr/local/lib/g++-include/ -I/usr/include/g++/
++X11INCLUDE=-I${PREFIX}/include
++STDINCLUDE=-I${LOCALBASE}/include
+ INCLUDE=-I./include -I. $(X11INCLUDE) $(STDINCLUDE)
+
+
+@@ -108,7 +113,7 @@
+
+ SrcsClient=$(SrcsClientND) $(SrcsClientDD)
+ ObjsClient=$(ObjsClientND) $(ObjsClientDD)
+-LibsClient=-L/usr/X11R6/lib/ -L/usr/local/lib/ -lX11 -lXext $(EXTRALIBS) $(EXTRAGGILIBS)
++LibsClient=${LDFLAGS} -L${LOCALBASE}/lib -L${PREFIX}/lib -lX11 -lXext $(EXTRALIBS) $(EXTRAGGILIBS)
+
+ SrcsServer=$(foreach dir,$(DirsServer),$(wildcard $(dir)/*.cc))
+ SrcsServerNotDir=$(notdir $(SrcsServer))
+@@ -120,7 +125,7 @@
+ SrcsRunnerNotDir=$(notdir $(SrcsRunner))
+ ObjsRunnerNotDir=$(SrcsRunnerNotDir:.cc=.o)
+ ObjsRunner=$(addprefix $(OBJDIR),$(ObjsRunnerNotDir))
+-LibsRunner=-L/usr/X11R6/lib/ -L/usr/local/lib/ -lX11
++LibsRunner=${LDFLAGS} -L${LOCALBASE}/lib -L${PREFIX}/lib/ -lX11
+
+ AllDSrcs=$(foreach dir,$(DepthDepenceDirs),$(wildcard $(dir)/*.cc))
+ AllNSrcs=$(foreach dir,$(NotDepthDepenceDirs),$(wildcard $(dir)/*.cc))
+@@ -178,14 +183,14 @@
+ Create-PathConfig:
+ echo '#ifndef _PathConfig_hh_' > $(PathConfig)
+ echo '#define _PathConfig_hh_' >> $(PathConfig)
+- echo '#define ClientBinInstallPath "$(LibInstallPath)$(TargetNameClient)"' >> $(PathConfig)
++ echo '#define ClientBinInstallPath "$(BinInstallPath)$(TargetNameClient)"' >> $(PathConfig)
+ echo '#define ServerBinInstallPath "$(BinInstallPath)$(TargetNameServer)"' >> $(PathConfig)
+ echo '#define LibInstallPath "$(LibInstallPath)"' >> $(PathConfig)
+ echo '#define '$(DEF_USE_GGI) >> $(PathConfig)
+ echo '#endif' >> $(PathConfig)
+
+ install-client2:
+- $(INSTALLBIN) $(TargetClient) $(LibInstallPath)$(TargetNameClient)
++ $(INSTALLBIN) $(TargetClient) $(BinInstallPath)$(TargetNameClient)
+
+ install: all
+ $(INSTALLDIR) $(BinInstallPath)
diff --git a/games/wormz/patches/patch-ab b/games/wormz/patches/patch-ab
new file mode 100644
index 00000000000..54b73aecdec
--- /dev/null
+++ b/games/wormz/patches/patch-ab
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1.1.1 1998/11/05 08:24:12 garbled Exp $
+--- include/Compat.hh.orig Tue Jul 7 14:02:01 1998
++++ include/Compat.hh Wed Nov 4 23:57:19 1998
+@@ -22,7 +22,9 @@
+ memset(data, 0, size);
+ }
+
++#ifndef __NetBSD__
+ const double PI=3.1415926535797;
++#endif
+
+ inline int byteswap(int old)
+ {
+@@ -34,12 +36,15 @@
+
+ inline int byteswapshort(unsigned short old)
+ {
+- return ((old & 0xff) << 8)
+- + ((old & 0xff00) >> 8);
++/* return ((old & 0xff) << 8)
++ + ((old & 0xff00) >> 8);*/
++ return(old);
+ }
++#ifndef __NetBSD__
+ extern "C" {
+ int usleep(unsigned int);
+ }
++#endif
+
+ #endif
+ #ifdef Linux
diff --git a/games/wormz/patches/patch-ac b/games/wormz/patches/patch-ac
new file mode 100644
index 00000000000..0257d1be960
--- /dev/null
+++ b/games/wormz/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1.1.1 1998/11/05 08:24:12 garbled Exp $
+--- PaintInterface/T1FontCreator.cc.orig Thu Nov 5 01:09:50 1998
++++ PaintInterface/T1FontCreator.cc Thu Nov 5 01:10:08 1998
+@@ -1,3 +1,4 @@
++#ifdef USE_GGI
+ #include "T1FontCreator.hh"
+ #include "Utils.hh"
+ #include "PathConfig.hh"
+@@ -6,7 +7,6 @@
+ #include <t1lib.h>
+ #include <unistd.h>
+
+-#ifdef USE_GGI
+
+ T1FontCreator::T1FontCreator()
+ {
diff --git a/games/wormz/pkg/COMMENT b/games/wormz/pkg/COMMENT
new file mode 100644
index 00000000000..736c274ee3a
--- /dev/null
+++ b/games/wormz/pkg/COMMENT
@@ -0,0 +1 @@
+a networked game for X11
diff --git a/games/wormz/pkg/DESCR b/games/wormz/pkg/DESCR
new file mode 100644
index 00000000000..f2989f1f552
--- /dev/null
+++ b/games/wormz/pkg/DESCR
@@ -0,0 +1,7 @@
+A networked game for X11. Up to ten worms can battle it out over the network,
+to attempt to cage one another in. Very much like tron. Excellent graphics,
+works on 8, 16 and 24 bit displays.
+
+To play, click on the "X" to set up your players, and click on the box
+marked <none> to set up your controls, you may then type the key you wish
+to use for left, and right.
diff --git a/games/wormz/pkg/MESSAGE b/games/wormz/pkg/MESSAGE
new file mode 100644
index 00000000000..38829ac1b29
--- /dev/null
+++ b/games/wormz/pkg/MESSAGE
@@ -0,0 +1,4 @@
+To play, click on the "X" to set up your players, and click on the box
+marked <none> to set up your controls, you may then type the key you wish
+to use for left, and right.
+
diff --git a/games/wormz/pkg/PLIST b/games/wormz/pkg/PLIST
new file mode 100644
index 00000000000..21ac66d580b
--- /dev/null
+++ b/games/wormz/pkg/PLIST
@@ -0,0 +1,32 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1998/11/05 08:24:12 garbled Exp $
+share/Wormz/ArrowL.tga
+share/Wormz/ArrowR.tga
+share/Wormz/CPUChip.tga
+share/Wormz/Human.tga
+share/Wormz/Network.tga
+share/Wormz/None.tga
+share/Wormz/README.fonts
+share/Wormz/Title.tga
+share/Wormz/bchr.afm
+share/Wormz/bchr.pfb
+share/Wormz/bchri.afm
+share/Wormz/bchri.pfb
+share/Wormz/blue-wood.tga
+share/Wormz/checkbox-c.tga
+share/Wormz/checkbox-u.tga
+share/Wormz/checker.tga
+share/Wormz/darkwood.tga
+share/Wormz/grass.tga
+share/Wormz/linux.tga
+share/Wormz/parquet.tga
+share/Wormz/plasma.tga
+share/Wormz/plasma2-cubism.tga
+share/Wormz/plasma2.tga
+share/Wormz/plasma2-mosaic.tga
+share/Wormz/plasma3-mosaic.tga
+bin/Wormz
+bin/Wormz-server
+bin/Wormz-client8
+bin/Wormz-client16
+bin/Wormz-client24
+@dirrm share/Wormz