git: 48a7c9bcfc6b - main - misc/ggml: update g20250828 → g20250916

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 19 Sep 2025 02:02:10 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=48a7c9bcfc6b6c71fc3279e8ee9677bdccf5d4d4

commit 48a7c9bcfc6b6c71fc3279e8ee9677bdccf5d4d4
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-19 01:56:56 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-19 02:02:04 +0000

    misc/ggml: update g20250828 → g20250916
---
 audio/whisper.cpp/Makefile                        |  1 +
 misc/ggml/Makefile                                |  8 +++++---
 misc/ggml/distinfo                                |  6 +++---
 misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt | 15 +++++++++++++--
 4 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/audio/whisper.cpp/Makefile b/audio/whisper.cpp/Makefile
index 757869e17f2a..559df13ddfb2 100644
--- a/audio/whisper.cpp/Makefile
+++ b/audio/whisper.cpp/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	whisper.cpp
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.7.6
+PORTREVISION=	1
 CATEGORIES=	audio # machine-learning
 
 MAINTAINER=	yuri@FreeBSD.org
diff --git a/misc/ggml/Makefile b/misc/ggml/Makefile
index db050b78c558..fafdab54bec2 100644
--- a/misc/ggml/Makefile
+++ b/misc/ggml/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ggml
-DISTVERSION=	g20250828
+DISTVERSION=	g20250916
 CATEGORIES=	misc # machine-learning
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -16,10 +16,12 @@ BROKEN_i386=	compilation fails: LLVM ERROR: out of memory
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	ggerganov
-GH_TAGNAME=	83835ff
+GH_TAGNAME=	978f6e1
 
 CMAKE_ON=	BUILD_SHARED_LIBS
-CMAKE_OFF=	GGML_BUILD_TESTS GGML_BUILD_EXAMPLES
+CMAKE_OFF=	GGML_BUILD_TESTS \
+		GGML_BUILD_EXAMPLES \
+		GGML_NATIVE
 CMAKE_TESTING_ON=	GGML_BUILD_TESTS
 
 BINARY_ALIAS=	git=false
diff --git a/misc/ggml/distinfo b/misc/ggml/distinfo
index a17e9ebaeb14..d8983992a40c 100644
--- a/misc/ggml/distinfo
+++ b/misc/ggml/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1756957568
-SHA256 (ggerganov-ggml-g20250828-83835ff_GH0.tar.gz) = 42e76df96d99c86e9fe15a87dfe5eab6c0a117497d5bb6c4ef154dbf7b5e805c
-SIZE (ggerganov-ggml-g20250828-83835ff_GH0.tar.gz) = 2072055
+TIMESTAMP = 1758234399
+SHA256 (ggerganov-ggml-g20250916-978f6e1_GH0.tar.gz) = 6aed1d94900779583ae4c1981d27827a641aa97562421b24150f24b03a28e3f1
+SIZE (ggerganov-ggml-g20250916-978f6e1_GH0.tar.gz) = 2133677
diff --git a/misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt b/misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt
index fab5880da52b..a44169da8da7 100644
--- a/misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt
+++ b/misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt
@@ -1,6 +1,17 @@
---- src/ggml-cpu/CMakeLists.txt.orig	2025-09-07 09:13:51 UTC
+--- src/ggml-cpu/CMakeLists.txt.orig	2025-09-16 11:42:24 UTC
 +++ src/ggml-cpu/CMakeLists.txt
-@@ -382,13 +382,13 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
+@@ -127,10 +127,6 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
+                 if (NOT ARM_MCPU_RESULT)
+                     string(REGEX MATCH "-mcpu=[^ ']+" ARM_MCPU_FLAG "${ARM_MCPU}")
+                 endif()
+-                if ("${ARM_MCPU_FLAG}" STREQUAL "")
+-                    set(ARM_MCPU_FLAG -mcpu=native)
+-                    message(STATUS "ARM -mcpu not found, -mcpu=native will be used")
+-                endif()
+ 
+                 include(CheckCXXSourceRuns)
+ 
+@@ -382,13 +378,13 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
              string(REGEX REPLACE "POWER *([0-9]+)" "\\1" EXTRACTED_NUMBER "${MATCHED_STRING}")
  
              if (EXTRACTED_NUMBER GREATER_EQUAL 10)