Skip to content

Commit ed46501

Browse files
committed
whisper: unbreak destroot without metal
1 parent e0244e5 commit ed46501

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

audio/whisper/Portfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,17 @@ destroot {
9191

9292
post-destroot {
9393
xinstall -d ${destroot}${prefix}/share/whisper/ggml
94-
xinstall ${workpath}/build/bin/ggml-metal.metal ${destroot}${prefix}/share/whisper/ggml
95-
xinstall ${workpath}/build/bin/ggml-common.h ${destroot}${prefix}/share/whisper/ggml
9694
xinstall -d ${destroot}${prefix}/lib
9795
xinstall ${workpath}/build/src/libwhisper.${version}.dylib ${destroot}${prefix}/lib/libwhisper.1.dylib
9896
xinstall ${workpath}/build/ggml/src/libggml.dylib ${destroot}${prefix}/lib/libggml.dylib
9997
xinstall ${workpath}/build/ggml/src/libggml-cpu.dylib ${destroot}${prefix}/lib/libggml-cpu.dylib
10098
xinstall ${workpath}/build/ggml/src/libggml-base.dylib ${destroot}${prefix}/lib/libggml-base.dylib
10199
xinstall ${workpath}/build/ggml/src/ggml-blas/libggml-blas.dylib ${destroot}${prefix}/lib/libggml-blas.dylib
102-
xinstall ${workpath}/build/ggml/src/ggml-metal/libggml-metal.dylib ${destroot}${prefix}/lib/libggml-metal.dylib
100+
if {${os.platform} eq "darwin" && ${os.subplatform} eq "macosx" && ${os.major} >= 15} {
101+
xinstall ${workpath}/build/bin/ggml-metal.metal ${destroot}${prefix}/share/whisper/ggml
102+
xinstall ${workpath}/build/bin/ggml-common.h ${destroot}${prefix}/share/whisper/ggml
103+
xinstall ${workpath}/build/ggml/src/ggml-metal/libggml-metal.dylib ${destroot}${prefix}/lib/libggml-metal.dylib
104+
}
103105
}
104106

105107

0 commit comments

Comments
 (0)