[117039] trunk/dports/graphics/glfw
michaelld at macports.org
michaelld at macports.org
Thu Feb 13 09:44:31 PST 2014
Revision: 117039
https://trac.macports.org/changeset/117039
Author: michaelld at macports.org
Date: 2014-02-13 09:44:30 -0800 (Thu, 13 Feb 2014)
Log Message:
-----------
glfw:
+ update to a75c4576 (20140212);
+ temporary patch to fix compiling using older gcc 4.2.
Modified Paths:
--------------
trunk/dports/graphics/glfw/Portfile
Added Paths:
-----------
trunk/dports/graphics/glfw/files/
trunk/dports/graphics/glfw/files/patch-src-cocoa_window.m.diff
Modified: trunk/dports/graphics/glfw/Portfile
===================================================================
--- trunk/dports/graphics/glfw/Portfile 2014-02-13 16:19:47 UTC (rev 117038)
+++ trunk/dports/graphics/glfw/Portfile 2014-02-13 17:44:30 UTC (rev 117039)
@@ -5,10 +5,10 @@
PortGroup cmake 1.0
PortGroup github 1.0
-github.setup glfw glfw 7f4e947447cb4d0968f47934124a08738de2736b
-version 3.1.0_20140210
-checksums rmd160 b8cc8f63577db59b1617e9f07914208183c73412 \
- sha256 6a199791c8349491088c7bdfbd805edbb508db73c4e0d1b92f7f46e0404238d5
+github.setup glfw glfw a75c45762028b9c15e55a049db4e0b5313654b97
+version 3.1.0_20140212
+checksums rmd160 00f57226f367872f7e151b09f8713eb7ea88c6b0 \
+ sha256 7f016105a30f517031fa2ced06de68432389128f19b14273afdffd3b5a75b596
categories graphics
maintainers michaelld openmaintainer
@@ -30,6 +30,10 @@
configure.dir ${vpath}
build.dir ${vpath}
+# temporary patchfile; pull request is already upstream
+
+patchfiles-append patch-src-cocoa_window.m.diff
+
# configuration arguments for MacPorts build
configure.args -DBUILD_SHARED_LIBS=on \
Added: trunk/dports/graphics/glfw/files/patch-src-cocoa_window.m.diff
===================================================================
--- trunk/dports/graphics/glfw/files/patch-src-cocoa_window.m.diff (rev 0)
+++ trunk/dports/graphics/glfw/files/patch-src-cocoa_window.m.diff 2014-02-13 17:44:30 UTC (rev 117039)
@@ -0,0 +1,19 @@
+--- src/cocoa_window.m.orig
++++ src/cocoa_window.m
+@@ -701,13 +701,14 @@ static int translateKey(unsigned int key)
+ {
+ NSEnumerator* e = [files objectEnumerator];
+ char** names = calloc(count, sizeof(char*));
++ int i;
+
+- for (int i = 0; i < count; i++)
++ for (i = 0; i < count; i++)
+ names[i] = strdup([[e nextObject] UTF8String]);
+
+ _glfwInputDrop(window, count, (const char**) names);
+
+- for (int i = 0; i < count; i++)
++ for (i = 0; i < count; i++)
+ free(names[i]);
+ free(names);
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140213/9f2db4e1/attachment.html>
More information about the macports-changes
mailing list