git: 19a88b944cbf - main - print/ghostscript10: Fix compilation with Tessaract

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Thu, 25 Sep 2025 14:13:56 UTC
The branch main has been updated by michaelo:

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

commit 19a88b944cbfa88a89043c83b962a8a96c9f18ef
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2025-09-25 07:09:55 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2025-09-25 14:13:49 +0000

    print/ghostscript10: Fix compilation with Tessaract
    
    Reported by:    vvd
    Approved by:    jrm (mentor), vvd
    Tested by:      vvd
    External PR:    https://bugs.ghostscript.com/show_bug.cgi?id=708849
    Differential Revision:   https://reviews.freebsd.org/D52722
---
 print/ghostscript10/files/patch-base_ocr.mak | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/print/ghostscript10/files/patch-base_ocr.mak b/print/ghostscript10/files/patch-base_ocr.mak
new file mode 100644
index 000000000000..02f9e01d7cca
--- /dev/null
+++ b/print/ghostscript10/files/patch-base_ocr.mak
@@ -0,0 +1,11 @@
+--- base/ocr.mak	2025-09-25 07:52:48 UTC
++++ base/ocr.mak
+@@ -20,7 +20,7 @@
+ 
+ # Define the name of this makefile.
+ LIBOCR_MAK=$(GLSRC)ocr.mak $(TOP_MAKEFILES)
+-OCRCXX = $(CXX) $(TESSINCLUDES) $(TESSCXXFLAGS) $(CCXXFLAGS) -DTESSERACT_IMAGEDATA_AS_PIX -DTESSERACT_DISABLE_DEBUG_FONTS -DGRAPHICS_DISABLED -UCLUSTER
++OCRCXX = $(CXX) $(TESSINCLUDES) $(TESSCXXFLAGS) $(CCFLAGS) -DTESSERACT_IMAGEDATA_AS_PIX -DTESSERACT_DISABLE_DEBUG_FONTS -DGRAPHICS_DISABLED -UCLUSTER
+ 
+ # Tesseract veneer.
+ $(GLGEN)tessocr.$(OBJ) : $(GLSRC)tessocr.cpp $(GLSRC)tessocr.h $(LIBOCR_MAK) \