<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b3fcff69c34a81273f66b62b23edc23338718d7e">https://github.com/macports/macports-ports/commit/b3fcff69c34a81273f66b62b23edc23338718d7e</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 b3fcff69c34 llama.cpp: fix build on < 10.12
</span>b3fcff69c34 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit b3fcff69c34a81273f66b62b23edc23338718d7e
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Sun Dec 1 04:17:04 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    llama.cpp: fix build on < 10.12
</span>---
 sysutils/llama.cpp/Portfile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/llama.cpp/Portfile b/sysutils/llama.cpp/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4373b2c4194..a9c1d83dda6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/llama.cpp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/llama.cpp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,6 +3,10 @@
</span> PortSystem              1.0
 PortGroup               github 1.0
 PortGroup               cmake 1.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup               legacysupport 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# clock_gettime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 15
</span> 
 github.setup            ggerganov llama.cpp 4227 b
 github.tarball_from     archive
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,11 +34,14 @@ post-patch {
</span>     reinplace "s|@BUILD_COMMIT@|${git-commit}|" ${worksrcpath}/common/build-info.cpp.in
 }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard   2017
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append   -DGGML_LTO=ON \
                         -DGGML_CCACHE=OFF \
                         -DLLAMA_CURL=ON
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.platform} eq "darwin" && ${os.subplatform} eq "macosx"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.subplatform} eq "macosx" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    && ${os.major} > 14} {
</span>     configure.args-append \
                         -DGGML_METAL=ON \
                         -DGGML_METAL_EMBED_LIBRARY=ON \
</pre><pre style='margin:0'>

</pre>