[54125] trunk/dports/games/bzflag
toby at macports.org
toby at macports.org
Tue Jul 21 11:36:59 PDT 2009
Revision: 54125
http://trac.macports.org/changeset/54125
Author: toby at macports.org
Date: 2009-07-21 11:36:59 -0700 (Tue, 21 Jul 2009)
Log Message:
-----------
fix compilation on snowleopard (sort of, I still need to get libsdl 1.3x working properly)
Modified Paths:
--------------
trunk/dports/games/bzflag/Portfile
Added Paths:
-----------
trunk/dports/games/bzflag/files/patch-include__bzfSDL.h
trunk/dports/games/bzflag/files/patch-src__platform__SDLDisplay.cxx
Modified: trunk/dports/games/bzflag/Portfile
===================================================================
--- trunk/dports/games/bzflag/Portfile 2009-07-21 18:19:39 UTC (rev 54124)
+++ trunk/dports/games/bzflag/Portfile 2009-07-21 18:36:59 UTC (rev 54125)
@@ -27,3 +27,9 @@
--includedir=${prefix}/include/${name} \
--with-sdl-exec-prefix=${prefix}/ --disable-sdl-test \
--without-x
+
+platform darwin 10 {
+ depends_lib-delete port:libsdl
+ #depends_lib-append port:libsdl-devel
+ patchfiles patch-include__bzfSDL.h patch-src__platform__SDLDisplay.cxx
+}
Added: trunk/dports/games/bzflag/files/patch-include__bzfSDL.h
===================================================================
--- trunk/dports/games/bzflag/files/patch-include__bzfSDL.h (rev 0)
+++ trunk/dports/games/bzflag/files/patch-include__bzfSDL.h 2009-07-21 18:36:59 UTC (rev 54125)
@@ -0,0 +1,10 @@
+--- include/bzfSDL.h.orig 2009-07-16 17:02:56.000000000 -0700
++++ include/bzfSDL.h 2009-07-16 17:03:23.000000000 -0700
+@@ -19,7 +19,6 @@
+ # ifdef HAVE_SDL_SDL_H
+ # include <SDL/SDL.h>
+ # include <SDL/SDL_thread.h>
+-# include <SDL/SDL_getenv.h>
+ # else // autotools adds an SDL-specific include path
+ # include "SDL.h"
+ # include "SDL_thread.h"
Added: trunk/dports/games/bzflag/files/patch-src__platform__SDLDisplay.cxx
===================================================================
--- trunk/dports/games/bzflag/files/patch-src__platform__SDLDisplay.cxx (rev 0)
+++ trunk/dports/games/bzflag/files/patch-src__platform__SDLDisplay.cxx 2009-07-21 18:36:59 UTC (rev 54125)
@@ -0,0 +1,20 @@
+--- src/platform/SDLDisplay.cxx.orig 2009-07-16 17:11:21.000000000 -0700
++++ src/platform/SDLDisplay.cxx 2009-07-16 17:13:27.000000000 -0700
+@@ -314,7 +314,7 @@
+ {
+ Uint16 unicode = sdlEvent.key.keysym.unicode;
+ SDLKey sym = sdlEvent.key.keysym.sym;
+- SDLMod mod = sdlEvent.key.keysym.mod;
++ Uint16 mod = sdlEvent.key.keysym.mod;
+
+ key.ascii = 0;
+ switch (sym) {
+@@ -483,7 +483,7 @@
+ return false;
+ key.ascii = unicode & 0x7F;
+ } else {
+- if ((sym >= SDLK_FIRST) && (sym <= SDLK_DELETE))
++ if ((sym >= SDLK_UNKNOWN) && (sym <= SDLK_DELETE))
+ key.ascii = sym;
+ else if ((sym >= SDLK_KP0) && (sym <= SDLK_KP9))
+ key.ascii = sym - 208; // translate to normal number
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090721/d86e8bd2/attachment.html>
More information about the macports-changes
mailing list