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
34 GNOME_COMPONENTS= pango cairo
36 CPE_VENDOR= tesseract_project
37 FPC_EQUIVALENT= graphics/tesseract
40 CONFIGURE_ENV= LIBLEPT_HEADERSDIR="{{LOCALBASE}}/include/leptonica"
42 MAKE_ARGS= datadir={{LOCALBASE}}/share/tesseract-data
44 INSTALL_TARGET= install-strip training-install
45 INSTALL_REQ_TOOLCHAIN= yes
51 ${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
54 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
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.
63 [FILE:54:descriptions/desc.tools]
64 This package contains the Tesseract OCR engine tools.
68 7e70870f8341e5ea228af2836ce79a36eefa11b01b56177b4a8997f330c014b8 1913678 tesseract-ocr-tesseract-5.3.0.tar.gz
71 [FILE:632:manifests/plist.library]
89 libtesseract.so.%%SOMAJOR%%
90 libtesseract.so.%%SOVERSION%%
91 lib/pkgconfig/tesseract.pc
127 [FILE:254:manifests/plist.tools]
139 set_unicharset_properties
146 [FILE:683:freebsd/patch-configure.ac]
147 sem_init(3) is part of libc on FreeBSD, so we ended up not linking against
148 libpthread. Look for a symbol that causes us to load it.
149 libtesseract.so is not linked against libomp if openmp is enabled,
150 which makes dependent ports fail. This adds a workaround by linking
151 directly against libomp.
152 --- configure.ac.orig 2022-07-06 20:15:49 UTC
154 @@ -463,6 +463,9 @@ esac
155 # ----------------------------------------
157 AC_SEARCH_LIBS([pthread_create], [pthread])
158 +if test "$enable_openmp" != no; then
159 + AC_SEARCH_LIBS([omp_get_thread_num ], [omp])
162 # Set PKG_CONFIG_PATH for MacOS with Homebrew unless it is already set.
163 AC_CHECK_PROG([have_brew], brew, true, false)