<pre style='margin:0'>
Eric A. Borisch (eborisch) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/43eecbac9d5ef0805f31855d15103f6055fb4508">https://github.com/macports/macports-ports/commit/43eecbac9d5ef0805f31855d15103f6055fb4508</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 43eecbac9d5 libomp: unbreak <= 10.6 (#13821)
</span>43eecbac9d5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 43eecbac9d5ef0805f31855d15103f6055fb4508
</span>Author: Eric A. Borisch <borisch.eric@mayo.edu>
AuthorDate: Sat Jan 29 21:43:50 2022 -0600
<span style='display:block; white-space:pre;color:#404040;'> libomp: unbreak <= 10.6 (#13821)
</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/64558
</span>---
lang/libomp/Portfile | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/libomp/Portfile b/lang/libomp/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b9b12a5bd65..b8cb64323d0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/libomp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/libomp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -110,6 +110,13 @@ configure.args-delete -DCMAKE_INSTALL_RPATH=${prefix}/lib \
</span> configure.args-append -DCMAKE_INSTALL_RPATH=${prefix}/lib/libomp \
-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/libomp
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} <= 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set hnames {omp.h}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DLIBOMP_OMPT_SUPPORT=FALSE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set hnames {omp-tools.h omp.h ompt.h}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant top_level description \
"Install (links to) omp.h and libs into ${prefix}/(include|lib)" {}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -124,7 +131,7 @@ post-destroot {
</span> xinstall -d ${instdest}/share/doc/libomp
xinstall -d ${instdest}/include/libomp
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach h {omp-tools.h omp.h ompt.h} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach h ${hnames} {
</span> move ${instdest}/tmp/include/${h} ${instdest}/include/libomp/
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -134,7 +141,7 @@ post-destroot {
</span> }
if {[variant_isset top_level]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach h {omp-tools.h omp.h ompt.h} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach h ${hnames} {
</span> system -W ${instdest}/include \
"ln -s libomp/${h}"
}
</pre><pre style='margin:0'>
</pre>