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.3.0
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BUILD_DEPENDS= harfbuzz:dev:standard
23 leptonica:dev:standard
24 BUILDRUN_DEPENDS= icu:single:standard
25 leptonica:primary:standard
27 pango:primary:standard
28 RUN_DEPENDS= tesseract-data:latin:standard
29 EXRUN[tools]= tesseract:library:standard
31 USES= cpe autoreconf libtool fontconfig pkgconfig gettext
33 C_USES[freebsd]= fortran:library
35 CPE_VENDOR= tesseract_project
36 FPC_EQUIVALENT= graphics/tesseract
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
53 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
55 [FILE:291:descriptions/desc.library]
56 The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV
57 Accuracy test. Between 1995 and 2006 it had little work done on it, but
58 it is probably one of the most accurate open source OCR engines available.
59 The source code will read a binary, grey or color image and output text.
62 [FILE:54:descriptions/desc.tools]
63 This package contains the Tesseract OCR engine tools.
67 7e70870f8341e5ea228af2836ce79a36eefa11b01b56177b4a8997f330c014b8 1913678 tesseract-ocr-tesseract-5.3.0.tar.gz
70 [FILE:632:manifests/plist.library]
88 libtesseract.so.%%SOMAJOR%%
89 libtesseract.so.%%SOVERSION%%
90 lib/pkgconfig/tesseract.pc
126 [FILE:254:manifests/plist.tools]
138 set_unicharset_properties
145 [FILE:683:freebsd/patch-configure.ac]
146 sem_init(3) is part of libc on FreeBSD, so we ended up not linking against
147 libpthread. Look for a symbol that causes us to load it.
148 libtesseract.so is not linked against libomp if openmp is enabled,
149 which makes dependent ports fail. This adds a workaround by linking
150 directly against libomp.
151 --- configure.ac.orig 2022-07-06 20:15:49 UTC
153 @@ -463,6 +463,9 @@ esac
154 # ----------------------------------------
156 AC_SEARCH_LIBS([pthread_create], [pthread])
157 +if test "$enable_openmp" != no; then
158 + AC_SEARCH_LIBS([omp_get_thread_num ], [omp])
161 # Set PKG_CONFIG_PATH for MacOS with Homebrew unless it is already set.
162 AC_CHECK_PROG([have_brew], brew, true, false)