git: 7d1ed4c1a393 - main - graphics/opencv: explicitely disable support for graphics/tesseract

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Tue, 23 Nov 2021 10:16:13 UTC
The branch main has been updated by tcberner:

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

commit 7d1ed4c1a3936a37890aad7b07094eb1904be02a
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2021-11-23 08:19:43 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2021-11-23 10:15:48 +0000

    graphics/opencv: explicitely disable support for graphics/tesseract
    
    Since the update of graphics/tesseract to 4.1.3 in 3f1cf94980fdec66bdb115c46c94635ec3b54572
    the configure script of opencv now can find tesseract support,
    however in a broken state.
    
    For now, disable tesseract in graphics/opencv explicitely, so that
    people building in an unclean environment with tesseract possibly
    installed can still build opencv.
    
    In the future, this will be replaced by an option toggle and fixed
    properly.
    
    PR:             259930
    Reported by:    rhurlin
---
 graphics/opencv/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile
index 1d6d55cca4cd..84f5c2fb9f66 100644
--- a/graphics/opencv/Makefile
+++ b/graphics/opencv/Makefile
@@ -38,7 +38,8 @@ GH_TAGNAME=	v0.1.1f:ade \
 CMAKE_ON=	OPENCV_GENERATE_PKGCONFIG
 CMAKE_OFF=	OPENCV_GENERATE_SETUPVARS \
 		BUILD_opencv_python2 \
-		BUILD_TESTS
+		BUILD_TESTS \
+		WITH_TESSERACT
 CMAKE_ARGS=	-DOPENCV_EXTRA_MODULES_PATH="${WRKSRC}/contrib/modules"
 
 DATADIR=	${PREFIX}/share/${PORTNAME}4