2007-06-05 Doug Scott <[email protected]>
authordrdoug007
Tue, 05 Jun 2007 13:48:08 +0000
changeset 301 cd39a210da5a
parent 300 eb1e1c72f082
child 302 e98eb56c6926
2007-06-05 Doug Scott <[email protected]> * SFEassaultcube.spec: Added AssaultCube game Engine * patches/assaultcube-01-solaris.diff: patch for Solaris * patches/assaultcube-02-conflict.diff: patch for Solaris * patches/assaultcube-03-cmds.diff: patch for Solaris
ChangeLog
patches/assaultcube-01-solaris.diff
patches/assaultcube-02-conflict.diff
patches/assaultcube-03-cmds.diff
--- a/ChangeLog	Tue Jun 05 08:32:57 2007 +0000
+++ b/ChangeLog	Tue Jun 05 13:48:08 2007 +0000
@@ -1,3 +1,10 @@
+2007-06-05  Doug Scott  <[email protected]>
+
+	* SFEassaultcube.spec: Added AssaultCube Game Engine
+	* patches/assaultcube-01-solaris.diff: patch for Solaris
+	* patches/assaultcube-02-conflict.diff: patch for Solaris
+	* patches/assaultcube-03-cmds.diff: patch for Solaris
+
 2007-06-05  Doug Scott  <[email protected]>
 
 	* SFEpstoedit.spec: Added Converts PS and PDF
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/assaultcube-01-solaris.diff	Tue Jun 05 13:48:08 2007 +0000
@@ -0,0 +1,23 @@
+--- AssaultCube/source/src/Makefile.orig	2007-06-05 19:39:45.783649384 +0700
++++ AssaultCube/source/src/Makefile	2007-06-05 19:42:10.178423870 +0700
+@@ -1,9 +1,8 @@
+-CXXOPTFLAGS=-O3 -fomit-frame-pointer
+ INCLUDES=-I/usr/X11R6/include -I../enet/include `sdl-config --cflags`
+-CXXFLAGS=$(CXXOPTFLAGS) $(INCLUDES) -fsigned-char -Wall -Wno-deprecated
++CXXFLAGS=$(CXXOPTFLAGS) $(INCLUDES)
+ 
+ PLATFORM_PREFIX=native
+-CLIENT_LIBS=-L/usr/X11R6/lib -L../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU 
++CLIENT_LIBS=-L/usr/X11R6/lib -L../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU -lX11 -lsocket -lnsl
+ CLIENT_OBJS= \
+ 	client.o \
+ 	clientgame.o \
+@@ -48,7 +47,7 @@
+ 	bot/ac_bot_ai.o 
+ 
+ 
+-SERVER_LIBS=-L../enet -lenet
++SERVER_LIBS=-L../enet -lenet -lsocket -lnsl
+ SERVER_FILES= \
+ 	serverms.cpp \
+ 	server.cpp \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/assaultcube-02-conflict.diff	Tue Jun 05 13:48:08 2007 +0000
@@ -0,0 +1,69 @@
+--- AssaultCube/source/src/renderhud.cpp.orig	2007-06-05 19:58:47.757027557 +0700
++++ AssaultCube/source/src/renderhud.cpp	2007-06-05 19:59:21.560872172 +0700
+@@ -4,7 +4,7 @@
+ 
+ void drawicon(Texture *tex, float x, float y, float s, int col, int row, float ts)
+ {
+-    if(tex && tex->xs == tex->ys) quad(tex->id, x, y, s, ts*col, ts*row, ts);
++    if(tex && tex->xs == tex->ys) a_quad(tex->id, x, y, s, ts*col, ts*row, ts);
+ }
+ 
+ void drawequipicon(float x, float y, int col, int row, float blend)
+@@ -177,7 +177,7 @@
+     if(showmap) 
+     {
+         glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_COLOR);
+-        quad(minimaptex, 0, 0, radarviewsize, (centerpos.x-res/2)/worldsize, (centerpos.y-res/2)/worldsize, res/worldsize);
++        a_quad(minimaptex, 0, 0, radarviewsize, (centerpos.x-res/2)/worldsize, (centerpos.y-res/2)/worldsize, res/worldsize);
+         glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+         glDisable(GL_BLEND);
+     }
+@@ -225,7 +225,7 @@
+         glColor3f(1, 1, 1);
+         static Texture *overlaytex = NULL;
+         if(!overlaytex) overlaytex = textureload("packages/misc/radaroverlays.png", 3);
+-        quad(overlaytex->id, VIRTW-overlaysize-10, 10, overlaysize, m_teammode ? 0.5f*team_int(player1->team) : 0, m_teammode ? 0 : 0.5f, 0.5f, 0.5f); 
++        a_quad(overlaytex->id, VIRTW-overlaysize-10, 10, overlaysize, m_teammode ? 0.5f*team_int(player1->team) : 0, m_teammode ? 0 : 0.5f, 0.5f, 0.5f); 
+         glEnable(GL_CULL_FACE);
+     }
+ }
+@@ -237,7 +237,7 @@
+     glColor3f(1, 1, 1);
+     static Texture *icons = NULL;
+     if(!icons) icons = textureload("packages/misc/teamicons.png");
+-    quad(icons->id, VIRTW-VIRTH/12-10, 10, VIRTH/12, team_int(player1->team) ? 0.5f : 0, 0, 0.5f, 0.5f);
++    a_quad(icons->id, VIRTW-VIRTH/12-10, 10, VIRTH/12, team_int(player1->team) ? 0.5f : 0, 0, 0.5f, 0.5f);
+     glEnable(GL_CULL_FACE);
+ }
+ 
+@@ -410,7 +410,7 @@
+     loopi(fmt ? 1 : 2)
+     {
+         glClear(GL_COLOR_BUFFER_BIT);
+-        quad(logo->id, (VIRTW-VIRTH)/2, 0, VIRTH, 0, 0, 1);
++        a_quad(logo->id, (VIRTW-VIRTH)/2, 0, VIRTH, 0, 0, 1);
+         if(fmt)
+         {
+             glEnable(GL_BLEND);
+--- AssaultCube/source/src/protos.h.orig	2007-06-05 19:58:15.342674093 +0700
++++ AssaultCube/source/src/protos.h	2007-06-05 19:58:17.823304475 +0700
+@@ -61,7 +61,7 @@
+ extern void dot(int x, int y, float z);
+ extern void linestyle(float width, int r, int g, int b);
+ extern void blendbox(int x1, int y1, int x2, int y2, bool border, int tex = -1);
+-extern void quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy = 0);
++extern void a_quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy = 0);
+ extern void circle(GLuint tex, float x, float y, float r, float tx, float ty, float tr, int subdiv = 32);
+ extern void gl_drawframe(int w, int h, float changelod, float curfps);
+ extern void clearminimap();
+--- AssaultCube/source/src/rendergl.cpp.orig	2007-06-05 19:58:03.463233585 +0700
++++ AssaultCube/source/src/rendergl.cpp	2007-06-05 19:58:17.822921121 +0700
+@@ -108,7 +108,7 @@
+     xtraverts += 4;
+ }   
+ 
+-void quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy)
++void a_quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy)
+ {
+     if(!tsy) tsy = tsx;
+     glBindTexture(GL_TEXTURE_2D, tex);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/assaultcube-03-cmds.diff	Tue Jun 05 13:48:08 2007 +0000
@@ -0,0 +1,26 @@
+--- AssaultCube/assaultcube_server.sh.orig	2007-06-05 20:23:39.886803142 +0700
++++ AssaultCube/assaultcube_server.sh	2007-06-05 20:23:54.315405687 +0700
+@@ -1,8 +1,8 @@
+ #!/bin/sh
+ # CUBE_DIR should refer to the directory in which Cube is placed.
+ #CUBE_DIR=~/cube
+-#CUBE_DIR=/usr/local/cube
+-CUBE_DIR=./
++CUBE_DIR=/usr/share/cube
++#CUBE_DIR=./
+ 
+ # SYSTEM_NAME should be set to the name of your operating system.
+ #SYSTEM_NAME=Linux
+--- AssaultCube/assaultcube.sh.orig	2007-06-05 20:02:14.820337638 +0700
++++ AssaultCube/assaultcube.sh	2007-06-05 20:23:29.472820232 +0700
+@@ -1,8 +1,8 @@
+ #!/bin/sh
+ # CUBE_DIR should refer to the directory in which Cube is placed.
+ #CUBE_DIR=~/cube
+-#CUBE_DIR=/usr/local/cube
+-CUBE_DIR=./
++CUBE_DIR=/usr/share/cube
++#CUBE_DIR=./
+ 
+ # SYSTEM_NAME should be set to the name of your operating system.
+ #SYSTEM_NAME=Linux