Skip to content

Commit

Permalink
libomp: add python310 build dep
Browse files Browse the repository at this point in the history
Also restrict perl5 dep to older version.

Fixes: https://trac.macports.org/ticket/71149
  • Loading branch information
jmroot committed Oct 24, 2024
1 parent c79c484 commit 745ec6b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lang/libomp/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ long_description {*}${description} is intended to contain all of the\
with +openmp variant for clang-3.7.)

categories lang
platforms darwin
supported_archs arm64 i386 x86_64
license {MIT NCSA}

Expand Down Expand Up @@ -60,6 +59,12 @@ if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
configure.cflags-append -stdlib=libc++
}

# Last python version to not require C11 (and thus a clang
# dependency on some OS versions). Used by libpsl (which is a
# dependency of cmake) for the same reason.
depends_build-append port:python310
configure.args-append -DPython3_EXECUTABLE=${prefix}/bin/python3.10

# Build requires std::atomic
configure.cxxflags-append -std=c++11
compiler.cxx_standard 2011
Expand Down Expand Up @@ -94,11 +99,12 @@ if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
depends_build-replace \
path:bin/cmake:cmake port:cmake-bootstrap
configure.cmd ${prefix}/libexec/cmake-bootstrap/bin/cmake

depends_build-append port:perl5
}
livecheck.type none
}

depends_build-append port:perl5
cmake.out_of_source yes

# According to documentation builds with clang >= 3.3
Expand Down Expand Up @@ -193,4 +199,3 @@ notes "

test.run yes
test.target libomp-micro-tests

0 comments on commit 745ec6b

Please sign in to comment.