[60755] trunk/dports/emulators/qemu

jmr at macports.org jmr at macports.org
Sun Nov 22 01:36:32 PST 2009


Revision: 60755
          http://trac.macports.org/changeset/60755
Author:   jmr at macports.org
Date:     2009-11-22 01:36:24 -0800 (Sun, 22 Nov 2009)
Log Message:
-----------
qemu: buildfix for tiger (#19161)

Modified Paths:
--------------
    trunk/dports/emulators/qemu/Portfile

Added Paths:
-----------
    trunk/dports/emulators/qemu/files/patch-cocoa.m

Modified: trunk/dports/emulators/qemu/Portfile
===================================================================
--- trunk/dports/emulators/qemu/Portfile	2009-11-22 03:54:14 UTC (rev 60754)
+++ trunk/dports/emulators/qemu/Portfile	2009-11-22 09:36:24 UTC (rev 60755)
@@ -21,7 +21,8 @@
                         sha1    9432738ba513e07c981097468945b2e3ad9cb81e \
                         rmd160  1321a10777d2e0c6b53887d0525a28cc1b36ec9b
 
-patchfiles              patch-configure.diff
+patchfiles              patch-configure.diff \
+                        patch-cocoa.m
 
 configure.args          --cc=${configure.cc} \
                         --host-cc=${configure.cc}

Added: trunk/dports/emulators/qemu/files/patch-cocoa.m
===================================================================
--- trunk/dports/emulators/qemu/files/patch-cocoa.m	                        (rev 0)
+++ trunk/dports/emulators/qemu/files/patch-cocoa.m	2009-11-22 09:36:24 UTC (rev 60755)
@@ -0,0 +1,20 @@
+--- cocoa.m.orig	2009-07-17 10:56:22.000000000 +1000
++++ cocoa.m	2009-11-22 20:29:06.000000000 +1100
+@@ -438,7 +438,7 @@ int cocoa_keycode_to_qemu(int keycode)
+         [self grabMouse];
+         [self setContentDimensions];
+ // test if host support "enterFullScreenMode:withOptions" at compiletime
+-#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
++#if defined(MAC_OS_X_VERSION_10_5) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+         if ([NSView respondsToSelector:@selector(enterFullScreenMode:withOptions:)]) { // test if "enterFullScreenMode:withOptions" is supported on host at runtime
+             [self enterFullScreenMode:[NSScreen mainScreen] withOptions:[NSDictionary dictionaryWithObjectsAndKeys:
+                 [NSNumber numberWithBool:NO], NSFullScreenModeAllScreens,
+@@ -454,7 +454,7 @@ int cocoa_keycode_to_qemu(int keycode)
+             [fullScreenWindow setHasShadow:NO];
+             [fullScreenWindow setContentView:self];
+             [fullScreenWindow makeKeyAndOrderFront:self];
+-#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
++#if defined(MAC_OS_X_VERSION_10_5) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+         }
+ #endif
+     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091122/4b475fa6/attachment.html>


More information about the macports-changes mailing list