Ticket #56293: patch-upgrade-libomp-to-v6.0.0.diff

File patch-upgrade-libomp-to-v6.0.0.diff, 2.8 KB (added by libsystem-ethan, 7 years ago)

Patch libomp's Portfile to upgrade to 6.0.0

  • Portfile

    diff --recursive --unified=5 --ignore-all-space A/Portfile B/Portfile
    A B  
    4949        if {${os.major} <= 12} {
    5050            # kmp_alloc.c includes <atomic> but libc++ is not the default on
    5151            # these systems. https://trac.macports.org/ticket/52554
    5252            configure.cflags-append -stdlib=libc++
    5353        }
    54         version                 5.0.1
     54        version                 6.0.0
    5555        revision                0
    5656        master_sites            https://releases.llvm.org/${version}
    5757        distname                openmp-${version}.src
    5858        use_xz                  yes
    5959        dist_subdir             openmp-release
    6060        checksums \
    61             rmd160  c291ee1b7fcfae30d49788a24c7395000fb8ec2e \
    62             sha256  adb635cdd2f9f828351b1e13d892480c657fb12500e69c70e007bddf0fca2653
     61            rmd160  09f2a0d8a2fd317ec583d59d5142f74fec2b9d1a \
     62            sha256  7c0e050d5f7da3b057579fb3ea79ed7dc657c765011b402eb5bbe5663a7c38fc
    6363
    64         worksrcdir              ${distname}/runtime
    6564    } else {
    6665        # Last version working on libstdc++
    6766        github.setup            llvm-mirror openmp 381 svn-tags/RELEASE_
    6867        worksrcdir              openmp-${version}/final/runtime
    6968        version                 3.8.1
     
    8584# According to documentation builds with clang >= 3.3
    8685compiler.blacklist-append {clang < 500} *gcc*
    8786
    8887# Avoid dependency cycle
    8988# https://trac.macports.org/ticket/53110
    90 foreach ver {3.8 3.9 4.0 5.0 devel} {
     89foreach ver {3.8 3.9 4.0 5.0 6.0 devel} {
    9190    if {![file exists ${prefix}/bin/clang-mp-${ver}]} {
    9291        compiler.blacklist-append macports-clang-${ver}
    9392    }
    9493}
    9594
     
    114113    "Install (links to) omp.h and libs into ${prefix}/(include|lib)" {}
    115114
    116115post-extract {
    117116    # Patch tool for build with CMAKE_INSTALL_PREFIX
    118117    reinplace "/bulk.*compatibility/s/s\+/s+.*/" \
    119         tools/check-depends.pl
     118        runtime/tools/check-depends.pl
    120119}
    121120
    122121post-destroot {
    123122    set instdest ${destroot}${prefix}
    124123    xinstall -d ${instdest}/share/doc/libomp
    125     file copy ${worksrcpath}/README.txt ${worksrcpath}/../LICENSE.txt \
    126         ${worksrcpath}/../www ${instdest}/share/doc/libomp/
     124    file copy ${worksrcpath}/runtime/README.txt ${worksrcpath}/LICENSE.txt \
     125        ${worksrcpath}/www ${instdest}/share/doc/libomp/
    127126    xinstall -d ${instdest}/include/libomp
    128     move ${instdest}/tmp/include/omp.h ${instdest}/include/libomp/
     127    delete ${instdest}/include/libomp
     128    move ${instdest}/tmp/include ${instdest}/include/libomp
    129129    xinstall -d ${instdest}/lib/libomp
    130130    foreach p {libiomp5.dylib libomp.dylib libgomp.dylib} {
    131131        move ${instdest}/tmp/lib/${p} ${instdest}/lib/libomp/
    132132    }
    133133    if [variant_isset top_level] {