summaryrefslogtreecommitdiff
path: root/games/cube/patches
diff options
context:
space:
mode:
authorpeter <peter@pkgsrc.org>2005-01-18 17:48:52 +0000
committerpeter <peter@pkgsrc.org>2005-01-18 17:48:52 +0000
commit5d09188e5ce84271a5caa00cdb1111e8f13d7934 (patch)
tree4e9e7fb97cfb789cbc3b555844abd56217d91b06 /games/cube/patches
parent098eb84ba2655d1e60f87ac40f546329ded3bc9c (diff)
downloadpkgsrc-5d09188e5ce84271a5caa00cdb1111e8f13d7934.tar.gz
Initial import of cube-20040522 into the NetBSD Packages Collection.
Cube is an open source multiplayer and singleplayer first person shooter game built on an entirely new and very unconventional engine. Cube is a landscape-style engine that pretends to be an indoor FPS engine, which combines very high precision dynamic occlusion culling with a form of geometric mipmapping on the whole world for dynamic LOD for configurable fps & graphic detail on most machines. Uses OpenGL & SDL. Allows in-engine editing of geometry in full 3D (you fly around the map, point / drag stuff to select it / modify it), which can even be done simultaneously with others in multiplayer (a first!). Has simplistic but effective fine grain vertex lighting that looks like lightmapping and can do dynamic lights & shadows. Doesn't need any kind of map precompilation, even lighting is done on the fly. Has very simplistic quad-tree world structure that can do slopes (heightfields with caps) and slants, water, does decent collision detection & physics, has client/server networking that goes a long way in giving a lag-free game experience, and features a Doom/Quake-style singleplayer (2 game modes, savegames) and multiplayer (12 game modes, master server / server browser, demo recording) game with some uncompromising brutal oldskool gameplay.
Diffstat (limited to 'games/cube/patches')
-rw-r--r--games/cube/patches/patch-aa27
-rw-r--r--games/cube/patches/patch-ab21
-rw-r--r--games/cube/patches/patch-ac15
-rw-r--r--games/cube/patches/patch-ad16
4 files changed, 79 insertions, 0 deletions
diff --git a/games/cube/patches/patch-aa b/games/cube/patches/patch-aa
new file mode 100644
index 00000000000..5f14273bf72
--- /dev/null
+++ b/games/cube/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/01/18 17:48:53 peter Exp $
+
+--- source/src/Makefile.orig 2003-12-20 16:47:58.000000000 +0100
++++ source/src/Makefile 2004-06-10 01:27:22.000000000 +0200
+@@ -1,6 +1,6 @@
+ CXX=g++
+-CXXOPTFLAGS=-Wall -O3 -fsigned-char -fomit-frame-pointer
+-CXXFLAGS=$(CXXOPTFLAGS) -I../enet/include `sdl-config --cflags`
++CXXOPTFLAGS=-Wall -O3 -fsigned-char -fomit-frame-pointer -Wno-deprecated
++CXXFLAGS=$(CXXOPTFLAGS) -I../enet/include `sdl-config --cflags` -I/usr/X11R6/include
+
+ CLIENT_LIBS=-L../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU
+ CLIENT_OBJS= \
+@@ -49,11 +49,11 @@
+ all: enet client server
+
+ enet:
+- -make -C ../enet all
++ -${MAKE} -C ../enet all
+
+ clean:
+ -rm -f $(SERVER_OBJS) $(CLIENT_OBJS) cube_server cube_client
+- -make -C ../enet/ clean
++ -${MAKE} -C ../enet/ clean
+
+ standalone.o:
+ $(CXX) $(CXXFLAGS) -DSTANDALONE -o standalone.o -c serverutil.cpp
diff --git a/games/cube/patches/patch-ab b/games/cube/patches/patch-ab
new file mode 100644
index 00000000000..884015f611b
--- /dev/null
+++ b/games/cube/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/01/18 17:48:53 peter Exp $
+
+--- source/src/main.cpp.orig 2004-05-22 18:00:26.000000000 +0200
++++ source/src/main.cpp 2004-06-10 01:28:17.000000000 +0200
+@@ -1,6 +1,7 @@
+ // main.cpp: initialisation & main loop
+
+ #include "cube.h"
++#include <unistd.h>
+
+ void cleanup(char *msg) // single program exit point;
+ {
+@@ -104,6 +105,8 @@
+ #define log(s) puts("init: " s)
+ log("sdl");
+
++ ::chdir(DATADIR);
++
+ for(int i = 1; i<argc; i++)
+ {
+ char *a = &argv[i][2];
diff --git a/games/cube/patches/patch-ac b/games/cube/patches/patch-ac
new file mode 100644
index 00000000000..17ac61a2b3a
--- /dev/null
+++ b/games/cube/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/01/18 17:48:53 peter Exp $
+
+--- source/src/clientgame.cpp.orig 2004-05-09 01:55:34.000000000 +0200
++++ source/src/clientgame.cpp 2004-06-10 01:30:50.000000000 +0200
+@@ -200,8 +200,8 @@
+
+ int sleepwait = 0;
+ string sleepcmd;
+-void sleep(char *msec, char *cmd) { sleepwait = atoi(msec)+lastmillis; strcpy_s(sleepcmd, cmd); };
+-COMMAND(sleep, ARG_2STR);
++void dosleep(char *msec, char *cmd) { sleepwait = atoi(msec)+lastmillis; strcpy_s(sleepcmd, cmd); };
++COMMAND(dosleep, ARG_2STR);
+
+ void updateworld(int millis) // main game update loop
+ {
diff --git a/games/cube/patches/patch-ad b/games/cube/patches/patch-ad
new file mode 100644
index 00000000000..6ffb5ed91ab
--- /dev/null
+++ b/games/cube/patches/patch-ad
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/01/18 17:48:53 peter Exp $
+
+--- source/enet/include/enet/unix.h.orig 2004-01-29 19:57:02.000000000 +0100
++++ source/enet/include/enet/unix.h 2004-06-10 01:31:41.000000000 +0200
+@@ -28,9 +28,11 @@
+ size_t dataLength;
+ } ENetBuffer;
+
++#if 0
+ #ifndef HAS_SOCKLEN_T
+ typedef int socklen_t;
+ #endif
++#endif
+
+ #endif /* __ENET_UNIX_H__ */
+