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.3
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
23 BUILD_DEPENDS= harfbuzz:dev:standard
24 leptonica:dev:standard
28 BUILDRUN_DEPENDS= icu:primary:standard
29 leptonica:primary:standard
31 pango:primary:standard
32 RUN_DEPENDS= tesseract-data:latin:standard
33 EXRUN[tools]= tesseract:primary:standard
35 USES= cpe autoreconf libtool fontconfig pkgconfig gettext
37 C_USES[freebsd]= fortran:library
38 GNOME_COMPONENTS= pango cairo
40 CPE_VENDOR= tesseract_project
41 FPC_EQUIVALENT= graphics/tesseract
44 CONFIGURE_ENV= LIBLEPT_HEADERSDIR="{{LOCALBASE}}/include/leptonica"
46 MAKE_ARGS= datadir={{LOCALBASE}}/share/tesseract-data
48 INSTALL_TARGET= install-strip training-install
49 INSTALL_REQ_TOOLCHAIN= yes
55 ${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
58 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
60 [FILE:291:descriptions/desc.primary]
61 The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV
62 Accuracy test. Between 1995 and 2006 it had little work done on it, but
63 it is probably one of the most accurate open source OCR engines available.
64 The source code will read a binary, grey or color image and output text.
67 [FILE:54:descriptions/desc.tools]
68 This package contains the Tesseract OCR engine tools.
72 dc4329f85f41191b2d813b71b528ba6047745813474e583ccce8795ff2ff5681 1918172 tesseract-ocr-tesseract-5.3.3.tar.gz
75 [FILE:65:manifests/plist.primary]
77 libtesseract.so.%%SOMAJOR%%
78 libtesseract.so.%%SOVERSION%%
81 [FILE:241:manifests/plist.dev]
98 lib/pkgconfig/tesseract.pc
101 [FILE:582:manifests/plist.tools]
113 set_unicharset_properties
119 share/tesseract-data/
154 [FILE:683:freebsd/patch-configure.ac]
155 sem_init(3) is part of libc on FreeBSD, so we ended up not linking against
156 libpthread. Look for a symbol that causes us to load it.
157 libtesseract.so is not linked against libomp if openmp is enabled,
158 which makes dependent ports fail. This adds a workaround by linking
159 directly against libomp.
160 --- configure.ac.orig 2022-07-06 20:15:49 UTC
162 @@ -463,6 +463,9 @@ esac
163 # ----------------------------------------
165 AC_SEARCH_LIBS([pthread_create], [pthread])
166 +if test "$enable_openmp" != no; then
167 + AC_SEARCH_LIBS([omp_get_thread_num ], [omp])
170 # Set PKG_CONFIG_PATH for MacOS with Homebrew unless it is already set.
171 AC_CHECK_PROG([have_brew], brew, true, false)