<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c287f31b136ce3fcfe244f3e985708177b845b46">https://github.com/macports/macports-ports/commit/c287f31b136ce3fcfe244f3e985708177b845b46</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c287f31b136ce3fcfe244f3e985708177b845b46
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sun Apr 7 13:25:06 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> wxgtk-3.0-cxx11: new port to support C++11 with wxGTK
</span>---
graphics/wxWidgets-3.0/Portfile | 32 ++++++++++++++++++++++++++++----
1 file changed, 28 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/wxWidgets-3.0/Portfile b/graphics/wxWidgets-3.0/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 10df2ebf9a6..bf4e9938795 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/wxWidgets-3.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/wxWidgets-3.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,6 +17,8 @@ subport wxWidgets-3.0-cxx11 {}
</span> subport wxPython-3.0 {}
# build against GTK 3
subport wxgtk-3.0 {}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# build against GTK 3 with C++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport wxgtk-3.0-cxx11 {}
</span> # TODO: fix dist_subdir and subset name at next release
set wxpython_ver 3.0.2.0
# when revbumping remember to change the revision also for wxPython-3.0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,14 +37,20 @@ if {${subport} eq ${name}} {
</span> version 3.0.2
revision 8
} elseif {${subport} eq "wxgtk-3.0"} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # with satisfactory Cocoa support there is no real need for GTK-based wxWidgets any more
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # wxgtk-3.0 is here mainly for testing purposes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # it might be useful to report GTK-related bugs upstream
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # and play with quartz-based GTK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # wxgtk-3.0 is need to support older systems where wxWidgets-3.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # do not work correctly (they do build, but are unusable).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # It might also be useful for testing purposes, to report GTK-related bugs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to upstream and play with quartz-based GTK
</span> # (and maybe backport changes to 2.8)
wxWidgets.use wxGTK-3.0
set installname wxGTK
set wxtype gtk3
<span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${subport} eq "wxgtk-3.0-cxx11"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Subport to allow C++11-using apps to build correctly.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wxWidgets.use wxGTK-3.0-cxx11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set installname wxGTK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set wxtype gtk3
</span> }
set branch [join [lrange [split ${version} .] 0 1] .]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -243,6 +251,22 @@ if {${subport} eq "wxPython-3.0"} {
</span> # require_active_variants gtk3 x11
# }
#}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${subport} eq "wxgtk-3.0-cxx11"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-sdl.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:lib/pkgconfig/cairo.pc:cairo \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libGLU \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsdl2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsdl2_mixer \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:mesa
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants path:lib/pkgconfig/cairo.pc:cairo x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants gtk3 x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace --with-cocoa --with-gtk=3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-sdl --with-sdl
</span> }
post-destroot {
</pre><pre style='margin:0'>
</pre>