<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/caff2db132624db6b8e92bcb3619ef9868581003">https://github.com/macports/macports-ports/commit/caff2db132624db6b8e92bcb3619ef9868581003</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit caff2db132624db6b8e92bcb3619ef9868581003
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Jan 10 13:43:03 2022 -0600
<span style='display:block; white-space:pre;color:#404040;'> dcmtk: Fix build for arm64
</span>---
graphics/dcmtk/Portfile | 2 +-
graphics/dcmtk/files/arm64.patch | 32 ++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/dcmtk/Portfile b/graphics/dcmtk/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0a5a8f2807c..f69161f9b6c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/dcmtk/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/dcmtk/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,6 @@ revision 1
</span> set unpatched_version [lindex [split ${version} _] 0]
set stripped_version [string map {. ""} ${unpatched_version}]
categories graphics
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> license {BSD Apache-2}
maintainers {eborisch @eborisch} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,6 +36,7 @@ checksums \
</span> size 6512834
patchfiles CMake_3rdparty.cmake.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append arm64.patch
</span>
compiler.cxx_standard 2011
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/dcmtk/files/arm64.patch b/graphics/dcmtk/files/arm64.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..93ab9e80e66
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/dcmtk/files/arm64.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix build for arm64.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://support.dcmtk.org/redmine/issues/957
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/DCMTK/dcmtk/commit/5fba853b6f7c13b02bed28bd9f7d3f450e4c72bb
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- config/tests/arith.cc.orig 2021-01-14 08:16:29.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ config/tests/arith.cc 2022-01-10 13:40:16.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -40,7 +40,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ieeefp.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__) && !defined(__aarch64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // For controlling floating point exceptions on OS X.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <xmmintrin.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -340,7 +340,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef HAVE_WINDOWS_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _clearfp();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _controlfp( _controlfp(0,0) & ~_EM_INVALID, _MCW_EM );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif defined(__APPLE__) && !defined(__aarch64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _MM_SET_EXCEPTION_MASK( _MM_GET_EXCEPTION_MASK() & ~_MM_MASK_INVALID );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(HAVE_FENV_H) && defined(HAVE_PROTOTYPE_FEENABLEEXCEPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ feenableexcept( FE_INVALID );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -382,7 +382,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _controlfp( _controlfp(0,0) | _EM_INVALID, _MCW_EM );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(HAVE_FENV_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ feclearexcept( FE_INVALID );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__) && !defined(__aarch64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _MM_SET_EXCEPTION_MASK( _MM_GET_EXCEPTION_MASK() | _MM_MASK_INVALID );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(HAVE_FENV_H) && defined(HAVE_PROTOTYPE_FEENABLEEXCEPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fedisableexcept( FE_INVALID );
</span></pre><pre style='margin:0'>
</pre>