aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Osipov <michaelo@FreeBSD.org>2025-09-25 09:09:55 +0200
committerMichael Osipov <michaelo@FreeBSD.org>2025-09-25 16:13:49 +0200
commit19a88b944cbfa88a89043c83b962a8a96c9f18ef (patch)
tree803c8dad722730c67819750ec3e399dd752815fc
parent9c1263b9b5ca7f949625369dfdd59fcadf75de60 (diff)
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
-rw-r--r--print/ghostscript10/files/patch-base_ocr.mak11
1 files changed, 11 insertions, 0 deletions
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) \