<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/912131ae479a022d1812ebd5147622fff1f3f40a">https://github.com/macports/macports-ports/commit/912131ae479a022d1812ebd5147622fff1f3f40a</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 912131ae479 libomp: Enable OMPT (#13800)
</span>912131ae479 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 912131ae479a022d1812ebd5147622fff1f3f40a
</span>Author: Eric A. Borisch <borisch.eric@mayo.edu>
AuthorDate: Fri Jan 28 12:57:05 2022 -0600

<span style='display:block; white-space:pre;color:#404040;'>    libomp: Enable OMPT (#13800)
</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/64549
</span>---
 lang/libomp/Portfile | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 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 2cc209a97bf..b9b12a5bd65 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;'>@@ -43,6 +43,8 @@ if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
</span>         livecheck.regex {"llvmorg-([0-9.]+)".*}
     }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    revision            1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     if {${os.major} <= 12} {
         # kmp_alloc.c includes <atomic> but libc++ is not the default on
         # these systems. https://trac.macports.org/ticket/52554
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,7 +62,7 @@ if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
</span>     dist_subdir         openmp-release
     worksrcdir          ${distname}
     set rtpath          "runtime/"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     patchfiles-append   patch-libomp-use-gettid-on-Leopard.diff
 
     livecheck.url       https://api.github.com/repos/llvm/llvm-project/tags
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -106,8 +108,7 @@ configure.args-delete   -DCMAKE_INSTALL_RPATH=${prefix}/lib \
</span> # With this, cmake sets the correct library name in the dylibs for the
 # final destination we move them to
 configure.args-append   -DCMAKE_INSTALL_RPATH=${prefix}/lib/libomp \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/libomp \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                        -DLIBOMP_OMPT_SUPPORT=FALSE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/libomp
</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;'>@@ -121,17 +122,22 @@ post-extract {
</span> post-destroot {
     set instdest ${destroot}${prefix}
     xinstall -d ${instdest}/share/doc/libomp
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     xinstall -d ${instdest}/include/libomp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    move ${instdest}/tmp/include/omp.h ${instdest}/include/libomp/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall -d ${instdest}/lib/libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    foreach h {omp-tools.h omp.h ompt.h} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        move ${instdest}/tmp/include/${h} ${instdest}/include/libomp/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span> 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${instdest}/lib/libomp
</span>     foreach p {libiomp5.dylib libomp.dylib libgomp.dylib} {
         move ${instdest}/tmp/lib/${p} ${instdest}/lib/libomp/
     }
 
     if {[variant_isset top_level]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        system -W ${instdest}/include \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-          "ln -s libomp/omp.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        foreach h {omp-tools.h omp.h ompt.h} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system -W ${instdest}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+              "ln -s libomp/${h}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span>         foreach p {libiomp5.dylib libomp.dylib libgomp.dylib} {
             system -W ${instdest}/lib/ \
               "ln -s libomp/${p}"
</pre><pre style='margin:0'>

</pre>