diff --git a/custom-ports/whispercpp/portfile.cmake b/custom-ports/whispercpp/portfile.cmake index f9849c92..2d3f6eb0 100644 --- a/custom-ports/whispercpp/portfile.cmake +++ b/custom-ports/whispercpp/portfile.cmake @@ -2,15 +2,23 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO ggerganov/whisper.cpp - REF e72e4158debb04126a0fabedf0452a5551780ea0 - SHA512 67939e665542931a75a5ea05a873e5e0a73fc18b443720bcfeb340eb7e39818937c0078976320d9799f0643d8759a64adcb2da371e072f1053232802c1c107af + REF "v${VERSION}" + SHA512 17e0485fb93fdea1a89f584a64db35f05371e0b8710a539f0dffca30bd3a2fff44c72ea754556566ca3cc55415b1e8f2bb868665437f5c93b9ce666b4fe53fb3 HEAD_REF master ) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA -) +if(APPLE) + vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DWHISPER_METAL_EMBED_LIBRARY=ON + -DWHISPER_METAL_NDEBUG=ON + ) +else() + vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + ) +endif() vcpkg_install_cmake() vcpkg_copy_pdbs() diff --git a/custom-ports/whispercpp/vcpkg.json b/custom-ports/whispercpp/vcpkg.json index 9e6fc7a6..2964dbef 100644 --- a/custom-ports/whispercpp/vcpkg.json +++ b/custom-ports/whispercpp/vcpkg.json @@ -1,6 +1,6 @@ { "name": "whispercpp", - "version": "1.5.4", + "version": "1.6.2", "port-version": 1, "description": "A high-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model.", "homepage": "https://github.com/ggerganov/whisper.cpp", diff --git a/custom-steps/whispercpp/post-build.ps1 b/custom-steps/whispercpp/post-build.ps1 index 82fddc51..c89bd2a0 100644 --- a/custom-steps/whispercpp/post-build.ps1 +++ b/custom-steps/whispercpp/post-build.ps1 @@ -11,6 +11,9 @@ if(-not (Get-Module -Name $moduleName)) { Import-Module "$ModulesRoot/$moduleName" -Force -DisableNameChecking } -if((Get-IsOnWindowsOS)) { +if ((Get-IsOnMacOS)) { + Remove-DylibSymlinks -BuildArtifactsPath $BuildArtifactsPath +} +elseif((Get-IsOnWindowsOS)) { Update-VersionInfoForDlls -buildArtifactsPath $buildArtifactsPath -versionInfoJsonPath "$PSScriptRoot/version-info.json" -} \ No newline at end of file +} diff --git a/custom-steps/whispercpp/version-info.json b/custom-steps/whispercpp/version-info.json index cc307770..9faae8eb 100644 --- a/custom-steps/whispercpp/version-info.json +++ b/custom-steps/whispercpp/version-info.json @@ -2,11 +2,11 @@ "files": [ { "filename": "bin/whisper.dll", - "fileDescription": "Whisper speech recognition", - "fileVersion": "1.5.4", + "fileDescription": "High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model.", + "fileVersion": "1.6.2", "productName": "WhisperCpp", - "productVersion": "1.5.4", - "copyright": "Copyright (c) 2023 Georgi Gerganov" + "productVersion": "1.6.2", + "copyright": "Copyright (c) 2023-2024 The ggml authors" } ] }