1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= OCR (Optical Character Recognition) engine
8 HOMEPAGE= https://github.com/tesseract-ocr/tesseract
12 SITES[main]= GITHUB/tesseract-ocr:tesseract:5.1.0
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BUILDRUN_DEPENDS= fontconfig:primary:standard
24 leptonica:single:standard
26 pango:primary:standard
27 RUN_DEPENDS= tesseract-data:latin:standard
28 EXRUN[tools]= tesseract:library:standard
30 USES= autoreconf libtool pkgconfig fortran:library,tools
31 C_USES[freebsd]= fortran:library
33 FPC_EQUIVALENT= graphics/tesseract
36 CONFIGURE_ENV= LIBLEPT_HEADERSDIR="{{LOCALBASE}}/include/leptonica"
38 MAKE_ARGS= datadir={{LOCALBASE}}/share/tesseract-data
40 INSTALL_TARGET= install-strip training-install
41 INSTALL_REQ_TOOLCHAIN= yes
47 ${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
49 [FILE:291:descriptions/desc.library]
50 The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV
51 Accuracy test. Between 1995 and 2006 it had little work done on it, but
52 it is probably one of the most accurate open source OCR engines available.
53 The source code will read a binary, grey or color image and output text.
56 [FILE:54:descriptions/desc.tools]
57 This package contains the Tesseract OCR engine tools.
61 fdec8528d5a0ecc28ab5fff985e0b8ced60726f6ef33f54126f2868e323d4bd2 1910376 tesseract-ocr-tesseract-5.1.0.tar.gz
64 [FILE:632:manifests/plist.library]
82 libtesseract.so.%%SOMAJOR%%
83 libtesseract.so.%%SOVERSION%%
84 lib/pkgconfig/tesseract.pc
120 [FILE:254:manifests/plist.tools]
132 set_unicharset_properties
139 [FILE:609:freebsd/patch-configure.ac]
140 sem_init(3) is part of libc on FreeBSD, so we ended up not linking against
141 libpthread. Look for a symbol that causes us to load it.
142 libtesseract.so is not linked against libomp if openmp is enabled,
143 which makes dependent ports fail. This adds a workaround by linking
144 directly against libomp.
145 --- configure.ac.orig 2022-01-07 12:43:52 UTC
147 @@ -442,6 +442,9 @@ esac
148 # ----------------------------------------
150 AC_SEARCH_LIBS([pthread_create], [pthread])
151 +if test "$enable_openmp" != no; then
152 + AC_SEARCH_LIBS([omp_get_thread_num ], [omp])
156 # ----------------------------------------