<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/04ce95157214de3947ea20c15f843afdcdea043a">https://github.com/macports/macports-ports/commit/04ce95157214de3947ea20c15f843afdcdea043a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 04ce95157214de3947ea20c15f843afdcdea043a
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri May 12 05:32:32 2023 -0700
<span style='display:block; white-space:pre;color:#404040;'> openexr, imath: fix builds on older systems
</span>---
graphics/imath/Portfile | 5 +++++
graphics/openexr/Portfile | 10 ++++++++++
graphics/openexr/files/patch-have_defines.diff | 13 +++++++++++++
3 files changed, 28 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/imath/Portfile b/graphics/imath/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ba030491275..b6f9216a0d1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/imath/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/imath/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -38,6 +38,11 @@ compiler.cxx_standard 2014
</span> # avoid redownload after imath subport was split from openexr Portfile
dist_subdir openexr
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://trac.macports.org/ticket/67403
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} < 11 && ${cxx_stdlib} eq "libstdc++" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append -D__STDC_FORMAT_MACROS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> test.run yes
test.target test
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/openexr/Portfile b/graphics/openexr/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1ac17544385..ae19c98e048 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/openexr/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/openexr/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,12 +27,22 @@ checksums rmd160 fc29f18e58422c7d6cb946206d8e34b4dc66cfb
</span> # NOTE: legacysupport needed for 'sys/fcntl.h'
legacysupport.newest_darwin_requires_legacy 10
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-have_defines.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append port:pkgconfig
depends_lib-append port:imath \
port:zlib
compiler.cxx_standard 2014
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://trac.macports.org/ticket/67403
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} < 11 && ${cxx_stdlib} eq "libstdc++" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append -D__STDC_FORMAT_MACROS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} < 10 || (${os.major} == 10 && ${configure.build_arch} eq "ppc") } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DILMTHREAD_HAVE_POSIX_SEMAPHORES=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> test.run yes
test.target test
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/openexr/files/patch-have_defines.diff b/graphics/openexr/files/patch-have_defines.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2d92c550084
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/openexr/files/patch-have_defines.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+See https://github.com/AcademySoftwareFoundation/openexr/pull/1407
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/lib/IlmThread/IlmThreadSemaphoreOSX.cpp.orig 2023-03-28 08:25:15.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/lib/IlmThread/IlmThreadSemaphoreOSX.cpp 2023-05-12 03:46:06.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -10,6 +10,8 @@
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "IlmThreadConfig.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(__APPLE__) && !ILMTHREAD_HAVE_POSIX_SEMAPHORES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "IlmThreadSemaphore.h"
</span></pre><pre style='margin:0'>
</pre>