<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b85b6a4586f96cdf4531727be5d90b1523eb143e">https://github.com/macports/macports-ports/commit/b85b6a4586f96cdf4531727be5d90b1523eb143e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b85b6a4586f96cdf4531727be5d90b1523eb143e
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Wed Feb 20 05:18:44 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> libgdiplus: avoid unnecessary/dangerous flags
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://trac.macports.org/ticket/24501
</span><span style='display:block; white-space:pre;color:#404040;'> See https://github.com/mono/libgdiplus/pull/534
</span>---
devel/libgdiplus/Portfile | 5 +++--
devel/libgdiplus/files/patch-fix_flags.diff | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libgdiplus/Portfile b/devel/libgdiplus/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8f50170..374b1b7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libgdiplus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libgdiplus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span>
name libgdiplus
version 2.10.9
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 8
</span> categories devel
platforms darwin
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,7 +36,8 @@ depends_lib port:jpeg \
</span> patchfiles patch-freetype-2.5.1.diff \
patch-libpng-1.5.diff \
yosemite-libtool.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-no_zlib.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-no_zlib.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-fix_flags.diff
</span>
post-patch {
reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libgdiplus/files/patch-fix_flags.diff b/devel/libgdiplus/files/patch-fix_flags.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..70b27de
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libgdiplus/files/patch-fix_flags.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+CFLAGS and LDFLAGS were modified for macOS in 2004.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+See https://github.com/mono/libgdiplus/commit/bce17c28c445c49e9349aace2eb0e4a9bd235aad.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+It is not entirely clear why the changes were needed because the bug report is no longer available.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+However, they are causing problems.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+See https://trac.macports.org/ticket/24501.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+There is an upstream pull request to fix the issue.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+See https://github.com/mono/libgdiplus/pull/534.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2012-01-31 10:28:27.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2019-02-20 04:30:57.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -12527,9 +12527,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define OSX 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CFLAGS="-no-cpp-precomp $CFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- LDFLAGS="-flat_namespace -undefined suppress $LDFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- no_x=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *)
</span></pre><pre style='margin:0'>
</pre>