git: 0b60a01805c5 - main - audio/vosk-api: Fix missing symbol problem at run-time

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 10 Oct 2024 16:42:51 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0b60a01805c5184555f4c887f9397f6856030a8f

commit 0b60a01805c5184555f4c887f9397f6856030a8f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-10 14:48:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-10 16:42:49 +0000

    audio/vosk-api: Fix missing symbol problem at run-time
    
    PR:             280015
    Reported by:    Baptiste Daroussin <bapt@FreeBSD.org>
---
 audio/vosk-api/Makefile                   |  1 +
 audio/vosk-api/files/patch-CMakeLists.txt | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/audio/vosk-api/Makefile b/audio/vosk-api/Makefile
index 97c594dac61d..242aff6d0cc0 100644
--- a/audio/vosk-api/Makefile
+++ b/audio/vosk-api/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	vosk-api
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.3.50
+PORTREVISION=	1
 CATEGORIES=	audio # machine-learning
 
 MAINTAINER=	yuri@FreeBSD.org
diff --git a/audio/vosk-api/files/patch-CMakeLists.txt b/audio/vosk-api/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..a7baf672fb0a
--- /dev/null
+++ b/audio/vosk-api/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2024-10-10 08:43:24 UTC
++++ CMakeLists.txt
+@@ -7,6 +7,7 @@ add_library(vosk
+ add_library(vosk
+   src/language_model.cc
+   src/model.cc
++  src/postprocessor.cc
+   src/recognizer.cc
+   src/spk_model.cc
+   src/vosk_api.cc