app-accessibility/whisper-cpp: add ffmpeg support

Closes: https://bugs.gentoo.org/971001
Signed-off-by: Sergey Alirzaev <l29ah@riseup.net>
This commit is contained in:
Sergey Alirzaev
2026-03-28 15:54:48 +01:00
parent 065cb125cc
commit 422cd2033a

View File

@@ -17,10 +17,11 @@ S="${WORKDIR}/${MyP}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="blas cuda hip opencl sdl2 vulkan"
IUSE="blas cuda ffmpeg hip opencl sdl2 vulkan"
CDEPEND="blas? ( sci-libs/openblas )
cuda? ( dev-util/nvidia-cuda-toolkit:= )
ffmpeg? ( media-video/ffmpeg:= )
hip? ( sci-libs/hipBLAS:= )
opencl? ( sci-libs/clblast:= )
sdl2? ( media-libs/libsdl2:= )"
@@ -43,6 +44,7 @@ src_configure() {
-DGGML_CUBLAS=$(usex cuda)
-DGGML_HIP=$(usex hip)
-DGGML_VULKAN=$(usex vulkan)
-DWHISPER_FFMPEG=$(usex ffmpeg)
-DWHISPER_SDL2=$(usex sdl2)
)
cmake_src_configure