<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/18bd5c915d37298a6cfdb422f3e162585fd8a6bb">https://github.com/macports/macports-ports/commit/18bd5c915d37298a6cfdb422f3e162585fd8a6bb</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 18bd5c915d3 opencascade: fix build on PowerPC
</span>18bd5c915d3 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 18bd5c915d37298a6cfdb422f3e162585fd8a6bb
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Tue Jan 30 07:34:42 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> opencascade: fix build on PowerPC
</span>---
science/opencascade/Portfile | 17 +++++++++++++++--
.../files/patch-ViewerTest_CmdParser.cxx.diff | 10 ++++++++++
2 files changed, 25 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/opencascade/Portfile b/science/opencascade/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 691b22fec94..cae6fe926d9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/opencascade/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/opencascade/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,7 +8,6 @@ name opencascade
</span> version 7.7.0
revision 2
categories science
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> license LGPL-2
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description Development platform for CAD/CAE, 3D surface/solid modeling and data exchange
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,7 +24,8 @@ checksums rmd160 2cd1b528d2f1fb40bd9b0f2646ddea3fef0d3733 \
</span> size 48391263
patchfiles-append patch-CMakeLists.txt.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-env.sh.in.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-env.sh.in.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-ViewerTest_CmdParser.cxx.diff
</span>
compiler.cxx_standard 2011
configure.args-append -DCMAKE_CXX_STANDARD=11 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -54,6 +54,19 @@ if {${os.major} < 12} {
</span> -F/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # OpenGl_GlFunctions.cxx: error: invalid conversion from 'void (*)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # {aka 'void (*)(unsigned int, int, unsigned int, int, int, int, unsigned int, unsigned int, const void*)'} to 'OpenGl_GlFunctions::glTexImage2D_t'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # {aka 'void (*)(unsigned int, int, int, int, int, int, unsigned int, unsigned int, const void*)'} [-fpermissive]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -fpermissive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.build_arch} in [list arm i386 ppc]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Undefined symbols: "___atomic_fetch_add_8"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -latomic
</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> variant docs description {Build and install documentation} {
depends_build-append path:bin/doxygen:doxygen
configure.args-delete -DBUILD_DOC_Overview=OFF
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/opencascade/files/patch-ViewerTest_CmdParser.cxx.diff b/science/opencascade/files/patch-ViewerTest_CmdParser.cxx.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4180a802b90
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/opencascade/files/patch-ViewerTest_CmdParser.cxx.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/ViewerTest/ViewerTest_CmdParser.cxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/ViewerTest/ViewerTest_CmdParser.cxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -21,6 +21,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <algorithm>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iostream>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <limits>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ namespace
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span></pre><pre style='margin:0'>
</pre>