<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/4493efc8478e2bc705529a3b2d3b87a259e39107">https://github.com/macports/macports-ports/commit/4493efc8478e2bc705529a3b2d3b87a259e39107</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4493efc8478e2bc705529a3b2d3b87a259e39107
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Sat Apr 29 20:56:10 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> field3d: fix build before macOS 10.9
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/62065
</span>---
graphics/field3d/Portfile | 8 +++
.../field3d/files/patch-old-OS-new-compiler.diff | 67 ++++++++++++++++++++++
2 files changed, 75 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/field3d/Portfile b/graphics/field3d/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ae993e056e2..32ed2dc66b5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/field3d/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/field3d/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,9 +42,17 @@ depends_lib-append port:ilmbase \
</span> variant universal {}
patchfiles patch-BuildSupport.py \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-old-OS-new-compiler.diff \
</span> python3.patch \
patch-SConstruct
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# See: https://github.com/imageworks/Field3D/issues/99
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DH5_USE_110_API=1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Wno-deprecated-declarations
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
reinplace "s#@PREFIX@#${prefix}#g" ${worksrcpath}/BuildSupport.py
reinplace "s#@BOOSTDIR@#[boost::install_area]#g" ${worksrcpath}/BuildSupport.py
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/field3d/files/patch-old-OS-new-compiler.diff b/graphics/field3d/files/patch-old-OS-new-compiler.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..813727c0fb4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/field3d/files/patch-old-OS-new-compiler.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,67 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Extend https://github.com/imageworks/Field3D/commit/02f990403620cc890f2075a7b7fa4bd661390041 to cover old OS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git export/DenseField.h export/DenseField.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 740a663..3e3c693 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- export/DenseField.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ export/DenseField.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -257,7 +257,7 @@ template <class Data_T>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class DenseField<Data_T>::const_iterator
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(WIN32) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(WIN32) || defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef std::forward_iterator_tag iterator_category;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef Data_T value_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef ptrdiff_t difference_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -352,7 +352,7 @@ template <class Data_T>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class DenseField<Data_T>::iterator
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(WIN32) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(WIN32) || defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef std::forward_iterator_tag iterator_category;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef Data_T value_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef ptrdiff_t difference_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git export/Field.h export/Field.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 51fd35d..aab5fa8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- export/Field.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ export/Field.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -492,7 +492,7 @@ class Field<Data_T>::const_iterator
</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;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(WIN32) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(WIN32) || defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef std::forward_iterator_tag iterator_category;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef Data_T value_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef ptrdiff_t difference_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -703,7 +703,7 @@ template <class Data_T>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class WritableField<Data_T>::iterator
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(WIN32) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(WIN32) || defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef std::forward_iterator_tag iterator_category;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef Data_T value_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef ptrdiff_t difference_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git export/SparseField.h export/SparseField.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index e8ac64b..4444bc9 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- export/SparseField.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ export/SparseField.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -885,7 +885,7 @@ template <class Data_T>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class SparseField<Data_T>::const_iterator
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(WIN32) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(WIN32) || defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef std::forward_iterator_tag iterator_category;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef Data_T value_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef ptrdiff_t difference_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1067,7 +1067,7 @@ template <class Data_T>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class SparseField<Data_T>::iterator
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(WIN32) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(WIN32) || defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef std::forward_iterator_tag iterator_category;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef Data_T value_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef ptrdiff_t difference_type;
</span></pre><pre style='margin:0'>
</pre>