git: b1cbc02193a4 - 2026Q3 - graphics/gowall: fix build on armv7

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 16 Jul 2026 14:16:48 UTC
The branch 2026Q3 has been updated by fuz:

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

commit b1cbc02193a40611ad7f8fcaaaa489385f94f48a
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-07-15 08:50:34 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-07-16 14:16:37 +0000

    graphics/gowall: fix build on armv7
    
    Same issue as on i386, probably also applies to powerpc.
    The patch could be applied unconditionally.
    An upstream bug report was filed.
    
    While we are at it, exclude option ONNX on i386 as the port
    misc/onnx-runtime required for this option to work is currently
    broken there.
    
    Approved by:    portmgr (build fix blanket)
    MFH:            2026Q3
    See also:       https://github.com/gen2brain/go-fitz/issues/152
    
    (cherry picked from commit 2bf74addd2ca6d695d4d34ac68455b7c3c2f524f)
---
 graphics/gowall/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/graphics/gowall/Makefile b/graphics/gowall/Makefile
index 9973e45d9750..3438ed613348 100644
--- a/graphics/gowall/Makefile
+++ b/graphics/gowall/Makefile
@@ -31,6 +31,8 @@ TESTING_UNSAFE=	yes
 PLIST_FILES=	bin/${PORTNAME}
 
 OPTIONS_DEFAULT=		ONNX PNGQUANT PREVIEW UPSCALE
+# misc/onnxruntime broken on i386
+OPTIONS_EXCLUDE_i386=		ONNX
 OPTIONS_GROUP=			COMPRESSION FEATURES OCR
 OPTIONS_GROUP_COMPRESSION=	PNGQUANT
 OPTIONS_GROUP_FEATURES=		ONNX PREVIEW UPSCALE
@@ -55,7 +57,7 @@ post-patch:
 
 .include <bsd.port.options.mk>
 
-.if ${ARCH} == "i386"
+.if ${ARCH} == "i386" || ${ARCH:Marmv?}
 EXTRA_PATCHES=	${PATCHDIR}/i386/extra-patch-vendor_github.com_gen2brain_go-fitz_fitz__cgo.go
 .endif