Index: head/graphics/tesseract/Makefile =================================================================== --- head/graphics/tesseract/Makefile +++ head/graphics/tesseract/Makefile @@ -2,11 +2,10 @@ # $FreeBSD$ PORTNAME= tesseract -PORTVERSION= 4.0.0 -PORTREVISION= 3 +PORTVERSION= 4.1.0 CATEGORIES= graphics -MAINTAINER= pkubaj@anongoth.pl +MAINTAINER= pkubaj@FreeBSD.org COMMENT= Commercial quality open source OCR engine LICENSE= APACHE20 @@ -49,7 +48,6 @@ TOOLS_DESC= Include training tools TOOLS_LIB_DEPENDS=libicui18n.so:devel/icu \ libfontconfig.so:x11-fonts/fontconfig -TOOLS_USES= compiler:c++11-lib TOOLS_USE= GNOME=cairo,glib20,pango post-patch: Index: head/graphics/tesseract/distinfo =================================================================== --- head/graphics/tesseract/distinfo +++ head/graphics/tesseract/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1544717557 -SHA256 (tesseract-ocr-tesseract-4.0.0_GH0.tar.gz) = a1f5422ca49a32e5f35c54dee5112b11b99928fc9f4ee6695cdc6768d69f61dd -SIZE (tesseract-ocr-tesseract-4.0.0_GH0.tar.gz) = 1961372 +TIMESTAMP = 1562588745 +SHA256 (tesseract-ocr-tesseract-4.1.0_GH0.tar.gz) = 5c5ed5f1a76888dc57a83704f24ae02f8319849f5c4cf19d254296978a1a1961 +SIZE (tesseract-ocr-tesseract-4.1.0_GH0.tar.gz) = 1965053 Index: head/graphics/tesseract/files/patch-configure.ac =================================================================== --- head/graphics/tesseract/files/patch-configure.ac +++ head/graphics/tesseract/files/patch-configure.ac @@ -3,16 +3,15 @@ libtesseract.so is not linked against libomp if openmp is enabled, which makes dependent ports fail. This adds a workaround by linking directly against libomp. ---- configure.ac.orig 2019-03-26 21:58:42 UTC +--- configure.ac.orig 2019-07-07 12:34:08 UTC +++ configure.ac -@@ -375,6 +375,10 @@ CXXFLAGS="$OLD_CXXFLAGS" +@@ -372,6 +372,9 @@ esac # ---------------------------------------- - AC_SEARCH_LIBS([sem_init], [pthread rt]) -+AC_SEARCH_LIBS([pthread_create], [pthread]) + AC_SEARCH_LIBS([pthread_create], [pthread]) +if test "$enable_openmp" != no; then + AC_SEARCH_LIBS([omp_get_thread_num ], [omp]) +fi - + # ---------------------------------------- Index: head/graphics/tesseract/files/patch-doc_Makefile.am =================================================================== --- head/graphics/tesseract/files/patch-doc_Makefile.am +++ head/graphics/tesseract/files/patch-doc_Makefile.am @@ -1,15 +0,0 @@ ---- doc/Makefile.am.orig 2019-03-28 05:11:18 UTC -+++ doc/Makefile.am -@@ -36,7 +36,11 @@ EXTRA_DIST = $(man_MANS) Doxyfile - html: $(patsubst %,%.html,$(man_MANS)) - - %: %.asc -- $(asciidoc) -o $@ $< -+ $(asciidoc) $< -+ $(asciidoc) -b docbook $< -+ %%LOCALBASE%%/bin/xsltproc --nonet --param man.charmap.use.subset "0" \ -+ %%LOCALBASE%%/share/xsl/docbook/manpages/docbook.xsl \ -+ $@.xml - - %.html: %.asc - asciidoc -b html5 -o $@ $< Index: head/graphics/tesseract/files/patch-src_ccutil_ocrclass.h =================================================================== --- head/graphics/tesseract/files/patch-src_ccutil_ocrclass.h +++ head/graphics/tesseract/files/patch-src_ccutil_ocrclass.h @@ -0,0 +1,10 @@ +--- src/ccutil/ocrclass.h.orig 2019-07-08 13:00:14 UTC ++++ src/ccutil/ocrclass.h +@@ -31,6 +31,7 @@ + #ifdef _WIN32 + #include // for timeval + #endif ++#include + + /********************************************************************** + * EANYCODE_CHAR Index: head/graphics/tesseract/pkg-plist =================================================================== --- head/graphics/tesseract/pkg-plist +++ head/graphics/tesseract/pkg-plist @@ -22,7 +22,6 @@ include/tesseract/capi.h include/tesseract/genericvector.h include/tesseract/helpers.h -include/tesseract/host.h include/tesseract/ltrresultiterator.h include/tesseract/ocrclass.h include/tesseract/osdetect.h @@ -40,7 +39,7 @@ lib/libtesseract.a lib/libtesseract.so lib/libtesseract.so.4 -lib/libtesseract.so.4.0.0 +lib/libtesseract.so.4.0.1 libdata/pkgconfig/tesseract.pc man/man1/ambiguous_words.1.gz man/man1/classifier_tester.1.gz