[118007] trunk/dports/devel/libsdl2
jmr at macports.org
jmr at macports.org
Wed Mar 19 01:30:42 PDT 2014
Revision: 118007
https://trac.macports.org/changeset/118007
Author: jmr at macports.org
Date: 2014-03-19 01:30:42 -0700 (Wed, 19 Mar 2014)
Log Message:
-----------
libsdl2: add patch to try to fix build failure on Snow Leopard and presumably earlier versions
Modified Paths:
--------------
trunk/dports/devel/libsdl2/Portfile
Added Paths:
-----------
trunk/dports/devel/libsdl2/files/
trunk/dports/devel/libsdl2/files/SDL_cocoaopengl.m.patch
Modified: trunk/dports/devel/libsdl2/Portfile
===================================================================
--- trunk/dports/devel/libsdl2/Portfile 2014-03-19 07:19:14 UTC (rev 118006)
+++ trunk/dports/devel/libsdl2/Portfile 2014-03-19 08:30:42 UTC (rev 118007)
@@ -24,6 +24,8 @@
checksums rmd160 e6f3718c7366c5da793c1454cf0ec0972e8bd347 \
sha256 a5a69a6abf80bcce713fa873607735fe712f44276a7f048d60a61bb2f6b3c90c
+patchfiles SDL_cocoaopengl.m.patch
+
configure.args --without-x
variant x11 {
Added: trunk/dports/devel/libsdl2/files/SDL_cocoaopengl.m.patch
===================================================================
--- trunk/dports/devel/libsdl2/files/SDL_cocoaopengl.m.patch (rev 0)
+++ trunk/dports/devel/libsdl2/files/SDL_cocoaopengl.m.patch 2014-03-19 08:30:42 UTC (rev 118007)
@@ -0,0 +1,11 @@
+--- src/video/cocoa/SDL_cocoaopengl.m.orig 2014-03-16 13:31:41.000000000 +1100
++++ src/video/cocoa/SDL_cocoaopengl.m 2014-03-19 19:28:42.000000000 +1100
+@@ -348,7 +348,7 @@ Cocoa_GL_GetDrawableSize(_THIS, SDL_Wind
+ /* This gives us the correct viewport for a Retina-enabled view, only
+ * supported on 10.7+. */
+ if ([contentView respondsToSelector:@selector(convertRectToBacking:)]) {
+- viewport = [contentView convertRectToBacking:viewport];
++ viewport = (NSRect)[contentView convertRectToBacking:viewport];
+ }
+
+ if (w) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140319/9860b737/attachment.html>
More information about the macports-changes
mailing list