<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4471d29a735051161fbd50fa65142cc3b7792225">https://github.com/macports/macports-ports/commit/4471d29a735051161fbd50fa65142cc3b7792225</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 4471d29a735 gtkglextmm: Use C++11; fix implicit functions
</span>4471d29a735 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 4471d29a735051161fbd50fa65142cc3b7792225
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jul 21 02:38:03 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> gtkglextmm: Use C++11; fix implicit functions
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Use C++11 because gtkmm requires this now.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Include the right headers in the configure script to fix implicit
</span><span style='display:block; white-space:pre;color:#404040;'> declaration of functions.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Rewrite master_sites to avoid redirects.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Modernize checksums.
</span>---
devel/gtkglextmm/Portfile | 15 +++++++++++----
devel/gtkglextmm/files/implicit.patch | 22 ++++++++++++++++++++++
2 files changed, 33 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gtkglextmm/Portfile b/devel/gtkglextmm/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d41f82958df..0ae619d90fa 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/gtkglextmm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gtkglextmm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,6 +6,9 @@ PortGroup muniversal 1.0
</span> name gtkglextmm
version 1.2.0
revision 1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 2dd9122f8991b2cbfd839ab0aaa6dd444751b7b0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 8f499c1f95678c56cce908c10bf2c1d0f2267b87e0c480385fa4b128c75bdf7b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 826309
</span>
categories devel
license LGPL-2.1+
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,17 +20,19 @@ long_description \
</span>
homepage https://sourceforge.net/projects/gtkglext/
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites sourceforge:gtkglext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites sourceforge:project/gtkglext/gtkglextmm/${version}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 6296b82bde8daa68452b2f0b4dadcb9e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 5cd489e07517a88262cd6050f723227664e82996 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 2dd9122f8991b2cbfd839ab0aaa6dd444751b7b0
</span> depends_build \
port:pkgconfig
depends_lib \
port:gtkglext \
port:gtkmm
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# glibmm headers require C++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -std=c++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args --x-include=${prefix}/include --x-lib=${prefix}/lib
# Fix build issue where build fails due to GDK_DISABLE_DEPRECATED being enabled.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,3 +42,5 @@ configure.args --x-include=${prefix}/include --x-lib=${prefix}/lib
</span> # widget.h causes gdk.h to be included without GDK_DISABLE_DEPRECATED being
# undefined, and gtkmm never gets the chance to work its undefine magic.
patchfiles patch-gtkglext_gtkmm_gl-widget.cc.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append implicit.patch
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gtkglextmm/files/implicit.patch b/devel/gtkglextmm/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..fc164ef8499
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gtkglextmm/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conftest.c:29:7: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conftest.c:26:36: error: implicit declaration of function 'gdk_display_get_default' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2006-02-27 19:45:14.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2023-07-21 02:10:31.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -5255,6 +5255,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat >>conftest.$ac_ext <<_ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* end confdefs.h. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if ((' ' & 0x0FF) == 0x020)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20465,6 +20466,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat confdefs.h >>conftest.$ac_ext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat >>conftest.$ac_ext <<_ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* end confdefs.h. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <gdk/gdkdisplay.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <gdk/gdkglquery.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ main ()
</span></pre><pre style='margin:0'>
</pre>