git: 9205101df1ed - main - graphics/opencv: add TESSERACT option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Apr 2022 18:03:56 UTC
The branch main has been updated by adridg: URL: https://cgit.FreeBSD.org/ports/commit/?id=9205101df1ed3f52d833805bd2ba49b986462261 commit 9205101df1ed3f52d833805bd2ba49b986462261 Author: Adriaan de Groot <adridg@FreeBSD.org> AuthorDate: 2022-04-09 18:00:19 +0000 Commit: Adriaan de Groot <adridg@FreeBSD.org> CommitDate: 2022-04-09 18:03:54 +0000 graphics/opencv: add TESSERACT option Tesseract support was explicitly turned off previously, because in a dirty build environment it would pick up an existing installation and then break. In the meantime, opencv and leptonica have been updated, and Tesseract behaves well in combination with opencv. Make it an option, default off (corresponding to previous behavior). While here, hand off to desktop@ at tcberner's request. PR: 259930 --- graphics/opencv/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile index e229ffb095ca..ac69d63c79fd 100644 --- a/graphics/opencv/Makefile +++ b/graphics/opencv/Makefile @@ -1,9 +1,9 @@ PORTNAME= opencv DISTVERSION= 4.5.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics -MAINTAINER= tcberner@FreeBSD.org +MAINTAINER= desktop@FreeBSD.org COMMENT= Open Source Computer Vision library LICENSE= BSD3CLAUSE @@ -35,15 +35,15 @@ GH_TAGNAME= v0.1.1f:ade \ CMAKE_ON= OPENCV_GENERATE_PKGCONFIG CMAKE_OFF= OPENCV_GENERATE_SETUPVARS \ BUILD_opencv_python2 \ - BUILD_TESTS \ - WITH_TESSERACT + BUILD_TESTS CMAKE_ARGS= -DOPENCV_EXTRA_MODULES_PATH="${WRKSRC}/contrib/modules" DATADIR= ${PREFIX}/share/${PORTNAME}4 PLIST_SUB= SHLIB_VER=${DISTVERSION} -OPTIONS_DEFINE= EIGEN GDAL GDCM HARDENING JAVA LTO OPENCL PATENTED PROTOBUF PYTHON TBB +OPTIONS_DEFINE= EIGEN GDAL GDCM HARDENING JAVA LTO OPENCL \ + PATENTED PROTOBUF PYTHON TBB TESSERACT OPTIONS_GROUP= GUI IMAGE VIDEO OPTIONS_GROUP_GUI= GTK3 VTK @@ -110,6 +110,10 @@ PYTHON_CMAKE_ON= -DOPENCV_PYTHON3_INSTALL_PATH=${PYTHON_SITELIBDIR} TBB_DESC= Add Intel Threading Building Blocks Support TBB_CMAKE_BOOL= WITH_TBB TBB_LIB_DEPENDS= libtbb.so:devel/tbb + +TESSERACT_DESC= Add Tesseract-based OCR +TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract +TESSERACT_CMAKE_BOOL= WITH_TESSERACT ### # GUI group options (GTK3 VTK)