Ravenports generated: 13 Dec 2023 00:13
[ravenports.git] / bucket_5D / tesseract
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               tesseract
4 VERSION=                5.3.3
5 KEYWORDS=               graphics
6 VARIANTS=               standard
7 SDESC[standard]=        OCR (Optical Character Recognition) engine
8 HOMEPAGE=               https://github.com/tesseract-ocr/tesseract
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/tesseract-ocr:tesseract:5.3.3
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         dev
18                         tools
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 BUILD_DEPENDS=          harfbuzz:dev:standard
24                         leptonica:dev:standard
25                         icu:dev:standard
26                         llvm:dev:standard
27                         llvm:tools:standard
28 BUILDRUN_DEPENDS=       icu:primary:standard
29                         leptonica:primary:standard
30                         llvm:primary:standard
31                         pango:primary:standard
32 RUN_DEPENDS=            tesseract-data:latin:standard
33 EXRUN[tools]=           tesseract:primary:standard
34
35 USES=                   cpe autoreconf libtool fontconfig pkgconfig gettext
36                         fortran:library,tools
37 C_USES[freebsd]=        fortran:library
38 GNOME_COMPONENTS=       pango cairo
39
40 CPE_VENDOR=             tesseract_project
41 FPC_EQUIVALENT=         graphics/tesseract
42
43 MUST_CONFIGURE=         gnu
44 CONFIGURE_ENV=          LIBLEPT_HEADERSDIR="{{LOCALBASE}}/include/leptonica"
45
46 MAKE_ARGS=              datadir={{LOCALBASE}}/share/tesseract-data
47
48 INSTALL_TARGET=         install-strip training-install
49 INSTALL_REQ_TOOLCHAIN=  yes
50 SOVERSION=              5.0.3
51
52 LDFLAGS=                -lpthread
53
54 post-patch:
55         ${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
56
57 post-install:
58         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
59
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.
65
66
67 [FILE:54:descriptions/desc.tools]
68 This package contains the Tesseract OCR engine tools.
69
70
71 [FILE:115:distinfo]
72 dc4329f85f41191b2d813b71b528ba6047745813474e583ccce8795ff2ff5681      1918172 tesseract-ocr-tesseract-5.3.3.tar.gz
73
74
75 [FILE:65:manifests/plist.primary]
76 lib/
77  libtesseract.so.%%SOMAJOR%%
78  libtesseract.so.%%SOVERSION%%
79
80
81 [FILE:241:manifests/plist.dev]
82 include/tesseract/
83  baseapi.h
84  capi.h
85  export.h
86  ltrresultiterator.h
87  ocrclass.h
88  osdetect.h
89  pageiterator.h
90  publictypes.h
91  renderer.h
92  resultiterator.h
93  unichar.h
94  version.h
95 lib/
96  libtesseract.a
97  libtesseract.so
98 lib/pkgconfig/tesseract.pc
99
100
101 [FILE:582:manifests/plist.tools]
102 bin/
103  ambiguous_words
104  classifier_tester
105  cntraining
106  combine_lang_model
107  combine_tessdata
108  dawg2wordlist
109  lstmeval
110  lstmtraining
111  merge_unicharsets
112  mftraining
113  set_unicharset_properties
114  shapeclustering
115  tesseract
116  text2image
117  unicharset_extractor
118  wordlist2dawg
119 share/tesseract-data/
120  alto
121  ambigs.train
122  api_config
123  batch
124  batch.nochop
125  bigram
126  box.train
127  box.train.stderr
128  digits
129  get.images
130  hocr
131  inter
132  kannada
133  linebox
134  logfile
135  lstm.train
136  lstmbox
137  lstmdebug
138  makebox
139  matdemo
140  msdemo
141  nobatch
142  pdf
143  pdf.ttf
144  quiet
145  rebox
146  segdemo
147  strokewidth
148  tsv
149  txt
150  unlv
151  wordstrbox
152
153
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
161 +++ configure.ac
162 @@ -463,6 +463,9 @@ esac
163  # ----------------------------------------
164  
165  AC_SEARCH_LIBS([pthread_create], [pthread])
166 +if test "$enable_openmp" != no; then
167 +  AC_SEARCH_LIBS([omp_get_thread_num ], [omp])
168 +fi
169  
170  # Set PKG_CONFIG_PATH for MacOS with Homebrew unless it is already set.
171  AC_CHECK_PROG([have_brew], brew, true, false)
172