pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

whisper.cpp: update to 1.9.1



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Wed Jul 1 22:29:53 2026 +0200
Changeset:	5a3393cded33f17cf59a063f174fd1bb01c93d9a

Modified Files:
	whisper.cpp/Makefile
	whisper.cpp/PLIST
	whisper.cpp/distinfo
Removed Files:
	whisper.cpp/patches/patch-ggml_CMakeLists.txt

Log Message:
whisper.cpp: update to 1.9.1

use ggml package

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5a3393cded33f17cf59a063f174fd1bb01c93d9a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 whisper.cpp/Makefile                          | 38 +++++++--------------------
 whisper.cpp/PLIST                             | 11 ++++++++
 whisper.cpp/distinfo                          |  7 +++--
 whisper.cpp/patches/patch-ggml_CMakeLists.txt | 25 ------------------
 4 files changed, 23 insertions(+), 58 deletions(-)

diffs:
diff --git a/whisper.cpp/Makefile b/whisper.cpp/Makefile
index fbbfe81308..3e5ced6470 100644
--- a/whisper.cpp/Makefile
+++ b/whisper.cpp/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	whisper.cpp-1.7.5
+DISTNAME=	whisper.cpp-1.9.1
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GITHUB:=ggerganov/}
 GITHUB_PROJECT=	whisper.cpp
@@ -15,41 +15,21 @@ USE_TOOLS+=		git pkg-config
 USE_LANGUAGES=		c c++
 USE_CXX_FEATURES=	c++17
 
-BLAS_INDEX64=		yes
-BLAS_ACCEPTED=		openblas_pthread openblas_openmp
-BLAS_C_INTERFACE=	yes
-
+PKGCONFIG_OVERRIDE+=	cmake/parakeet.pc.in
 PKGCONFIG_OVERRIDE+=	cmake/whisper.pc.in
-REPLACE_PYTHON+=	*.py */*.py */*/*.py
+REPLACE_PYTHON+=	*/*.py */*/*.py
 
+CMAKE_CONFIGURE_ARGS+=	-DBUILD_SHARED_LIBS=ON
 CMAKE_CONFIGURE_ARGS+=	-DWHISPER_BUILD_SERVER=ON
-CMAKE_CONFIGURE_ARGS+=	-DWHISPER_FFMPEG=ON
+CMAKE_CONFIGURE_ARGS+=	-DWHISPER_BUILD_TESTS=OFF
+CMAKE_CONFIGURE_ARGS+=	-DWHISPER_COMMON_FFMPEG=ON
 CMAKE_CONFIGURE_ARGS+=	-DWHISPER_SDL2=OFF
-CMAKE_CONFIGURE_ARGS+=	-DBUILD_SHARED_LIBS=ON
-# XXX
-#CMAKE_CONFIGURE_ARGS+=	-DGGML_BLAS=ON
-#CMAKE_CONFIGURE_ARGS+=	-DGGML_BLAS_VENDOR=OpenBLAS
-#CMAKE_CONFIGURE_ARGS+=	-DBLAS_LIBRARIES=${CBLAS_LIBS:Q}
-CMAKE_CONFIGURE_ARGS+=	-DWHISPER_BUILD_TESTS=no
-#CMAKE_CONFIGURE_ARGS+=	-DGGML_OPENCL_EMBED_KERNELS=OFF
-#CMAKE_CONFIGURE_ARGS+=	-DGGML_OPENCL_PROFILING=OFF
-#CMAKE_CONFIGURE_ARGS+=	-DGGML_OPENCL_USE_ADRENO_KERNELS=OFF
-
-# XXX
-SUBST_CLASSES+=		findblas
-SUBST_STAGE.findblas=	pre-configure
-SUBST_MESSAGE.findblas=	Fixing libpci soname
-SUBST_FILES.findblas+=	ggml/src/ggml-blas/CMakeLists.txt
-SUBST_SED.findblas+=	-e 's,DepBLAS openblas64,DepBLAS ${BLAS_PC},'
-
-# avoid conflict with llama.cpp
-post-install:
-	${RM} ${DESTDIR}${PREFIX}/lib/libggml-cpu.so
+CMAKE_CONFIGURE_ARGS+=	-DWHISPER_USE_SYSTEM_GGML=ON
 
 #.include "../../devel/SDL2/buildlink3.mk"
-.include "../../multimedia/ffmpeg6/buildlink3.mk"
+.include "../../multimedia/ffmpeg8/buildlink3.mk"
 .include "../../wip/llama.cpp/buildlink3.mk"
+.include "../../wip/ggml/buildlink3.mk"
 .include "../../devel/cmake/build.mk"
 .include "../../lang/python/application.mk"
-.include "../../mk/blas.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/whisper.cpp/PLIST b/whisper.cpp/PLIST
index dda4b2bfab..bc5fa29861 100644
--- a/whisper.cpp/PLIST
+++ b/whisper.cpp/PLIST
@@ -1,11 +1,22 @@
 @comment $NetBSD$
+bin/parakeet-cli
+bin/parakeet-quantize
 bin/whisper-bench
 bin/whisper-cli
+bin/whisper-quantize
 bin/whisper-server
+bin/whisper-vad-speech-segments
+include/parakeet.h
 include/whisper.h
+lib/cmake/parakeet/parakeet-config.cmake
+lib/cmake/parakeet/parakeet-version.cmake
 lib/cmake/whisper/whisper-config.cmake
 lib/cmake/whisper/whisper-version.cmake
+lib/libparakeet.so
+lib/libparakeet.so.1
+lib/libparakeet.so.${PKGVERSION}
 lib/libwhisper.so
 lib/libwhisper.so.1
 lib/libwhisper.so.${PKGVERSION}
+lib/pkgconfig/parakeet.pc
 lib/pkgconfig/whisper.pc
diff --git a/whisper.cpp/distinfo b/whisper.cpp/distinfo
index 3b061df811..d9a1b020d3 100644
--- a/whisper.cpp/distinfo
+++ b/whisper.cpp/distinfo
@@ -1,6 +1,5 @@
 $NetBSD$
 
-BLAKE2s (whisper.cpp-1.7.5.tar.gz) = 3aa20b82bfa56066b89fff839dece8436a6d744a1d4af7a6f731b166f0db59c6
-SHA512 (whisper.cpp-1.7.5.tar.gz) = 35efd976f60261e108972e3af7b322d723e36be30f5265db3be63752caaed0b52b9da3ece02975da2b83ff30f1eb32663e77fbaaf15f3037e35a525939071c0b
-Size (whisper.cpp-1.7.5.tar.gz) = 6216643 bytes
-SHA1 (patch-ggml_CMakeLists.txt) = a468406617387a6f68d33a5b35191d62e4c65682
+BLAKE2s (whisper.cpp-1.9.1.tar.gz) = 9e081938a38f2810d1da0b9902a350205fd11e0d1812ad81ba15b8ff933d203d
+SHA512 (whisper.cpp-1.9.1.tar.gz) = 1840a77a31c65440f9157d6c6bdbf240295cf93b85885052e9ec8190931bd91c37fd2269ad56845e779d9d2acd2aeac508b249aed902aba05adebf8bfd0d4b25
+Size (whisper.cpp-1.9.1.tar.gz) = 9012805 bytes
diff --git a/whisper.cpp/patches/patch-ggml_CMakeLists.txt b/whisper.cpp/patches/patch-ggml_CMakeLists.txt
deleted file mode 100644
index afa92ade68..0000000000
--- a/whisper.cpp/patches/patch-ggml_CMakeLists.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD$
-
---- ggml/CMakeLists.txt.orig	2025-04-02 13:39:48.000000000 +0000
-+++ ggml/CMakeLists.txt
-@@ -275,8 +275,8 @@ set_target_properties(ggml PROPERTIES PU
- #if (GGML_METAL)
- #    set_target_properties(ggml PROPERTIES RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/src/ggml-metal.metal")
- #endif()
--install(TARGETS ggml LIBRARY PUBLIC_HEADER)
--install(TARGETS ggml-base LIBRARY)
-+#install(TARGETS ggml LIBRARY PUBLIC_HEADER)
-+#install(TARGETS ggml-base LIBRARY)
- 
- if (GGML_STANDALONE)
-     configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ggml.pc.in
-@@ -357,6 +357,6 @@ write_basic_package_version_file(
-     VERSION ${GGML_INSTALL_VERSION}
-     COMPATIBILITY SameMajorVersion)
- 
--install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ggml-config.cmake
--              ${CMAKE_CURRENT_BINARY_DIR}/ggml-version.cmake
--        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ggml)
-+#install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ggml-config.cmake
-+#              ${CMAKE_CURRENT_BINARY_DIR}/ggml-version.cmake
-+#        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ggml)


Home | Main Index | Thread Index | Old Index