1 |
mr_bones_ 10/05/03 17:02:43 |
2 |
|
3 |
Added: scorched3d-43.1c-win32.patch |
4 |
scorched3d-43.1c-odbc.patch |
5 |
scorched3d-43.1c-libpng14.patch |
6 |
scorched3d-43.1c-fixups.patch |
7 |
scorched3d-43.1c-gcc43.patch |
8 |
Log: |
9 |
version bump |
10 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 games-strategy/scorched3d/files/scorched3d-43.1c-win32.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-win32.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-win32.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: scorched3d-43.1c-win32.patch |
19 |
=================================================================== |
20 |
diff -ur scorched.old/src/common/porting/windows.h scorched/src/common/porting/windows.h |
21 |
--- scorched.old/src/common/porting/windows.h 2009-12-17 15:18:41.000000000 +0200 |
22 |
+++ scorched/src/common/porting/windows.h 2009-12-17 15:22:20.000000000 +0200 |
23 |
@@ -9,6 +9,7 @@ |
24 |
#include <ctype.h> |
25 |
#include <common/Defines.h> |
26 |
|
27 |
+#ifdef _WIN32 |
28 |
typedef char * LPSTR; |
29 |
typedef const char * LPCTSTR; |
30 |
typedef unsigned int DWORD; |
31 |
@@ -27,6 +28,7 @@ |
32 |
typedef int LRESULT; |
33 |
typedef void * HDC; |
34 |
typedef void * HGLRC; |
35 |
+#endif /* _WIN32 */ |
36 |
|
37 |
#define _strnicmp(a,b,c) strncasecmp(a,b,c) |
38 |
#define stricmp(a,b) strcasecmp(a,b) |
39 |
|
40 |
|
41 |
|
42 |
1.1 games-strategy/scorched3d/files/scorched3d-43.1c-odbc.patch |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-odbc.patch?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-odbc.patch?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: scorched3d-43.1c-odbc.patch |
48 |
=================================================================== |
49 |
When x11-libs/wxGTK is built with the odbc use flag, scorched3d fails to build. |
50 |
bug #285384 - patch from Bob Johnson |
51 |
|
52 |
diff -urN scorched/src/common/porting/windows.h fix_scorched/src/common/porting/windows.h |
53 |
--- scorched/src/common/porting/windows.h 2009-09-21 10:21:16.000000000 -0700 |
54 |
+++ fix_scorched/src/common/porting/windows.h 2009-09-21 10:39:02.000000000 -0700 |
55 |
@@ -11,8 +11,8 @@ |
56 |
|
57 |
typedef char * LPSTR; |
58 |
typedef const char * LPCTSTR; |
59 |
-typedef unsigned int DWORD; |
60 |
-typedef unsigned int * LPDWORD; |
61 |
+typedef unsigned long DWORD; |
62 |
+typedef DWORD * LPDWORD; |
63 |
typedef unsigned char * LPBYTE; |
64 |
typedef int INT; |
65 |
typedef long LONG; |
66 |
|
67 |
|
68 |
|
69 |
1.1 games-strategy/scorched3d/files/scorched3d-43.1c-libpng14.patch |
70 |
|
71 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-libpng14.patch?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-libpng14.patch?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: scorched3d-43.1c-libpng14.patch |
75 |
=================================================================== |
76 |
http://bugs.gentoo.org/show_bug.cgi?id=308867 |
77 |
|
78 |
--- src/common/image/ImagePng.cpp |
79 |
+++ src/common/image/ImagePng.cpp |
80 |
@@ -189,7 +189,7 @@ bool ImagePng::loadFromBuffer(NetBuffer |
81 |
info_ptr = png_create_info_struct(png_ptr); |
82 |
if (info_ptr == NULL) |
83 |
{ |
84 |
- png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL); |
85 |
+ png_destroy_read_struct(&png_ptr, NULL, NULL); |
86 |
return false; |
87 |
} |
88 |
|
89 |
@@ -200,7 +200,7 @@ bool ImagePng::loadFromBuffer(NetBuffer |
90 |
if (setjmp(png_jmpbuf(png_ptr))) |
91 |
{ |
92 |
/* Free all of the memory associated with the png_ptr and info_ptr */ |
93 |
- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); |
94 |
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL); |
95 |
/* If we get here, we had a problem reading the file */ |
96 |
return false; |
97 |
} |
98 |
@@ -258,7 +258,7 @@ bool ImagePng::loadFromBuffer(NetBuffer |
99 |
} |
100 |
else |
101 |
{ |
102 |
- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); |
103 |
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL); |
104 |
|
105 |
Logger::log(S3D::formatStringBuffer( |
106 |
"Invalid PNG format.\n" |
107 |
@@ -272,7 +272,7 @@ bool ImagePng::loadFromBuffer(NetBuffer |
108 |
// END NEW CODE |
109 |
|
110 |
/* clean up after the read, and free any memory allocated - REQUIRED */ |
111 |
- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); |
112 |
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL); |
113 |
|
114 |
/* that's it */ |
115 |
return true; |
116 |
|
117 |
|
118 |
|
119 |
1.1 games-strategy/scorched3d/files/scorched3d-43.1c-fixups.patch |
120 |
|
121 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-fixups.patch?rev=1.1&view=markup |
122 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-fixups.patch?rev=1.1&content-type=text/plain |
123 |
|
124 |
Index: scorched3d-43.1c-fixups.patch |
125 |
=================================================================== |
126 |
diff -ru scorched.orig/configure-al.m4 scorched/configure-al.m4 |
127 |
--- scorched.orig/configure-al.m4 2008-03-03 16:17:18.000000000 -0500 |
128 |
+++ scorched/configure-al.m4 2009-02-15 20:43:35.000000000 -0500 |
129 |
@@ -7,25 +7,9 @@ |
130 |
[ --disable-openaltest Do not try to compile and run a test OpenAL program], |
131 |
, enable_openaltest=yes) |
132 |
AC_MSG_CHECKING(for OpenAL support) |
133 |
-AC_PATH_PROG(OPENAL_CONFIG, openal-config, no) |
134 |
-if test x$OPENAL_CONFIG = xno; then |
135 |
- echo "*** The openal-config script installed by OpenAL could not be found" |
136 |
- echo "*** Make sure openal-config is in your path, or set the OPENAL_CONFIG" |
137 |
- echo "*** environment variable to the full path to openal-config." |
138 |
- |
139 |
- AC_MSG_ERROR([*** Can't find the openal library. Try: http://www.openal.org/]) |
140 |
-else |
141 |
- |
142 |
- if test x"$use_static_openal" = x"yes"; then |
143 |
- AL_LIBS="/usr/local/lib/libopenal.a" |
144 |
- else |
145 |
- AL_LIBS="`$OPENAL_CONFIG --libs`" |
146 |
- fi |
147 |
- |
148 |
- AL_CFLAGS="`$OPENAL_CONFIG --cflags`" |
149 |
- |
150 |
- AC_MSG_RESULT(yes) |
151 |
-fi |
152 |
+AL_LIBS="-lopenal" |
153 |
+AL_CFLAGS="-I/usr/include/AL" |
154 |
+AC_MSG_RESULT(yes) |
155 |
|
156 |
AC_MSG_CHECKING(for Freealut support) |
157 |
AC_PATH_PROG(FREEALUT_CONFIG, freealut-config, no) |
158 |
diff -ru scorched.orig/configure.ac scorched/configure.ac |
159 |
--- scorched.orig/configure.ac 2008-03-03 16:17:18.000000000 -0500 |
160 |
+++ scorched/configure.ac 2009-02-15 20:40:30.000000000 -0500 |
161 |
@@ -13,22 +13,6 @@ |
162 |
AC_PROG_INSTALL |
163 |
AC_PROG_RANLIB |
164 |
|
165 |
-LDFLAGS="-L/usr/X11R6/lib -L/usr/X11R6" |
166 |
-CPPFLAGS="-I/usr/X11R6/include -I/usr/X11R6" |
167 |
- |
168 |
-if test `uname` == Darwin; then |
169 |
-LDFLAGS="$LDFLAGS -lmx" |
170 |
-CPPFLAGS="$CPPFLAGS -DFFTW_USE_DOUBLE -D__DARWIN__ -D__MACOSX__" |
171 |
-else |
172 |
-LDFLAGS="$LDFLAGS -L/usr/local/lib" |
173 |
-CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
174 |
-fi |
175 |
- |
176 |
-AC_CHECK_LIB(fridge, beer, echo "Hmm?!",[ |
177 |
- echo "Warning: No beer found in fridge!"; |
178 |
- echo "We highly suggest that you rectify this situation immediately." |
179 |
-]) |
180 |
- |
181 |
AC_ARG_ENABLE(serveronly, |
182 |
[ --enable-serveronly Enable server only compilation], |
183 |
, enable_serveronly=no, |
184 |
|
185 |
|
186 |
|
187 |
1.1 games-strategy/scorched3d/files/scorched3d-43.1c-gcc43.patch |
188 |
|
189 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-gcc43.patch?rev=1.1&view=markup |
190 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.1c-gcc43.patch?rev=1.1&content-type=text/plain |
191 |
|
192 |
Index: scorched3d-43.1c-gcc43.patch |
193 |
=================================================================== |
194 |
diff -ur scorched.old/src/common/common/main.h scorched/src/common/common/main.h |
195 |
--- scorched.old/src/common/common/main.h 2009-02-18 20:06:22.000000000 +0200 |
196 |
+++ scorched/src/common/common/main.h 2009-02-18 20:07:18.000000000 +0200 |
197 |
@@ -40,7 +40,7 @@ |
198 |
void _no_storage() |
199 |
{ |
200 |
printf("Failed to allocate memory!!"); |
201 |
- std::exit(1); |
202 |
+ exit(1); |
203 |
} |
204 |
|
205 |
void run_main(int argc, char *argv[], OptionsParameters ¶ms) |
206 |
diff -ur scorched.old/src/common/porting/windows.h scorched/src/common/porting/windows.h |
207 |
--- scorched.old/src/common/porting/windows.h 2009-02-18 20:06:22.000000000 +0200 |
208 |
+++ scorched/src/common/porting/windows.h 2009-02-18 20:06:46.000000000 +0200 |
209 |
@@ -20,7 +20,7 @@ |
210 |
typedef unsigned short WORD; |
211 |
typedef unsigned char BYTE; |
212 |
|
213 |
-typedef int HWND; |
214 |
+// typedef int HWND; |
215 |
typedef void * HINSTANCE; |
216 |
typedef int WPARAM; |
217 |
typedef int LPARAM; |