1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= OCR (Optical Character Recognition) engine
9 HOMEPAGE= https://github.com/tesseract-ocr/tesseract
13 SITES[main]= GITHUB/tesseract-ocr:tesseract:4.1.1
14 DISTFILE[1]= generated:main
16 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
23 BUILDRUN_DEPENDS= fontconfig:primary:standard
25 leptonica:single:standard
27 pango:primary:standard
28 RUN_DEPENDS= tesseract-data:latin:standard
29 EXRUN[tools]= tesseract:library:standard
31 USES= autoreconf libtool pkgconfig shebangfix
32 C_USES[freebsd]= fortran:library
34 FPC_EQUIVALENT= graphics/tesseract
35 SHEBANG_FILES= {{WRKSRC}}/src/training/tesstrain.sh
36 {{WRKSRC}}/src/training/language-specific.sh
39 CONFIGURE_ENV= LIBLEPT_HEADERSDIR="{{LOCALBASE}}/include/leptonica"
41 MAKE_ARGS= datadir={{LOCALBASE}}/share/tesseract-data
43 INSTALL_TARGET= install-strip training-install
44 INSTALL_REQ_TOOLCHAIN= yes
50 ${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
52 [FILE:54:descriptions/desc.tools]
53 This package contains the Tesseract OCR engine tools.
56 [FILE:291:descriptions/desc.library]
57 The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV
58 Accuracy test. Between 1995 and 2006 it had little work done on it, but
59 it is probably one of the most accurate open source OCR engines available.
60 The source code will read a binary, grey or color image and output text.
64 2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb 1974988 tesseract-ocr-tesseract-4.1.1.tar.gz
67 [FILE:310:manifests/plist.tools]
80 set_unicharset_properties
89 [FILE:732:manifests/plist.library]
114 libtesseract.so.%%SOMAJOR%%
115 libtesseract.so.%%SOVERSION%%
116 lib/pkgconfig/tesseract.pc
117 share/tesseract-data/
152 [FILE:609:freebsd/patch-configure.ac]
153 sem_init(3) is part of libc on FreeBSD, so we ended up not linking against
154 libpthread. Look for a symbol that causes us to load it.
155 libtesseract.so is not linked against libomp if openmp is enabled,
156 which makes dependent ports fail. This adds a workaround by linking
157 directly against libomp.
158 --- configure.ac.orig 2019-07-07 12:34:08 UTC
160 @@ -372,6 +372,9 @@ esac
161 # ----------------------------------------
163 AC_SEARCH_LIBS([pthread_create], [pthread])
164 +if test "$enable_openmp" != no; then
165 + AC_SEARCH_LIBS([omp_get_thread_num ], [omp])
169 # ----------------------------------------
172 [FILE:276:freebsd/patch-src_ccutil_ocrclass.h]
173 --- src/ccutil/ocrclass.h.orig 2019-07-07 12:34:08 UTC
174 +++ src/ccutil/ocrclass.h
177 #include <winsock2.h> // for timeval
179 +#include <sys/time.h>
181 /**********************************************************************