<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8eb831d6df30b5b6fa3ca9ebd0debb8f62a2248f">https://github.com/macports/macports-ports/commit/8eb831d6df30b5b6fa3ca9ebd0debb8f62a2248f</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 8eb831d dosbox: Fix compilation with newer versions of clang
</span>8eb831d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8eb831d6df30b5b6fa3ca9ebd0debb8f62a2248f
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Sun Mar 26 12:44:18 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> dosbox: Fix compilation with newer versions of clang
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
emulators/dosbox/Portfile | 3 ++-
emulators/dosbox/files/clang-4.diff | 16 ++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/dosbox/Portfile b/emulators/dosbox/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9b0634e..30c199f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/dosbox/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/dosbox/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,7 +35,8 @@ post-extract {
</span> # src__cpu__core_dynrec__risc_x64.h.diff: http://www.freebsd.org/cgi/query-pr.cgi?pr=164243
patchfiles 3689.diff 3694.diff 3776.diff 3777.diff \
patch-src-fpu-fpu_instructions_x86.h.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- src__cpu__core_dynrec__risc_x64.h.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src__cpu__core_dynrec__risc_x64.h.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ clang-4.diff
</span>
# Assembly language issues
universal_variant no
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/dosbox/files/clang-4.diff b/emulators/dosbox/files/clang-4.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..1f88af6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/dosbox/files/clang-4.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./src/gui/sdlmain.cpp.orig 2017-03-26 12:41:14.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./src/gui/sdlmain.cpp 2017-03-26 12:42:25.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1142,10 +1142,10 @@ static void GUI_StartUp(Section * sec) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char * gl_ext = (const char *)glGetString (GL_EXTENSIONS);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(gl_ext && *gl_ext){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") > 0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") > 0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") != NULL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") != NULL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(NVIDIA_PixelDataRange)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- sdl.opengl.pixel_data_range=(strstr(gl_ext,"GL_NV_pixel_data_range") >0 ) &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ sdl.opengl.pixel_data_range=(strstr(gl_ext,"GL_NV_pixel_data_range") > NULL ) &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ glPixelDataRangeNV && db_glAllocateMemoryNV && db_glFreeMemoryNV;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sdl.opengl.pixel_data_range = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span></pre><pre style='margin:0'>
</pre>