Create Ravenports release 20231029.1
[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 lib/pkgconfig/tesseract.pc
83 include/tesseract/
84  baseapi.h
85  capi.h
86  export.h
87  ltrresultiterator.h
88  ocrclass.h
89  osdetect.h
90  pageiterator.h
91  publictypes.h
92  renderer.h
93  resultiterator.h
94  unichar.h
95  version.h
96 lib/
97  libtesseract.a
98  libtesseract.so
99
100
101 [FILE:582:manifests/plist.tools]
102 share/tesseract-data/
103  alto
104  ambigs.train
105  api_config
106  batch
107  batch.nochop
108  bigram
109  box.train
110  box.train.stderr
111  digits
112  get.images
113  hocr
114  inter
115  kannada
116  linebox
117  logfile
118  lstm.train
119  lstmbox
120  lstmdebug
121  makebox
122  matdemo
123  msdemo
124  nobatch
125  pdf
126  pdf.ttf
127  quiet
128  rebox
129  segdemo
130  strokewidth
131  tsv
132  txt
133  unlv
134  wordstrbox
135 bin/
136  tesseract
137  ambiguous_words
138  classifier_tester
139  cntraining
140  combine_lang_model
141  combine_tessdata
142  dawg2wordlist
143  lstmeval
144  lstmtraining
145  merge_unicharsets
146  mftraining
147  set_unicharset_properties
148  shapeclustering
149  text2image
150  unicharset_extractor
151  wordlist2dawg
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