From 745ec6b54b020e8feacdeec212b224d89c852660 Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Thu, 24 Oct 2024 23:27:13 +1100 Subject: [PATCH] libomp: add python310 build dep Also restrict perl5 dep to older version. Fixes: https://trac.macports.org/ticket/71149 --- lang/libomp/Portfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lang/libomp/Portfile b/lang/libomp/Portfile index 8d272204ab35..3a4345a269bb 100644 --- a/lang/libomp/Portfile +++ b/lang/libomp/Portfile @@ -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} @@ -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 @@ -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 @@ -193,4 +199,3 @@ notes " test.run yes test.target libomp-micro-tests -