Ravenports generated: 15 Apr 2022 22:13
[ravenports.git] / bucket_5D / tesseract
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               tesseract
4 VERSION=                5.1.0
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.1.0
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         library
17                         tools
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 BUILDRUN_DEPENDS=       fontconfig:primary:standard
23                         icu:single:standard
24                         leptonica:single:standard
25                         llvm:single:standard
26                         pango:primary:standard
27 RUN_DEPENDS=            tesseract-data:latin:standard
28 EXRUN[tools]=           tesseract:library:standard
29
30 USES=                   autoreconf libtool pkgconfig fortran:library,tools
31 C_USES[freebsd]=        fortran:library
32
33 FPC_EQUIVALENT=         graphics/tesseract
34
35 MUST_CONFIGURE=         gnu
36 CONFIGURE_ENV=          LIBLEPT_HEADERSDIR="{{LOCALBASE}}/include/leptonica"
37
38 MAKE_ARGS=              datadir={{LOCALBASE}}/share/tesseract-data
39
40 INSTALL_TARGET=         install-strip training-install
41 INSTALL_REQ_TOOLCHAIN=  yes
42 SOVERSION=              5.0.1
43
44 LDFLAGS=                -lpthread
45
46 post-patch:
47         ${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
48
49 [FILE:291:descriptions/desc.library]
50 The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV
51 Accuracy test. Between 1995 and 2006 it had little work done on it, but
52 it is probably one of the most accurate open source OCR engines available.
53 The source code will read a binary, grey or color image and output text.
54
55
56 [FILE:54:descriptions/desc.tools]
57 This package contains the Tesseract OCR engine tools.
58
59
60 [FILE:115:distinfo]
61 fdec8528d5a0ecc28ab5fff985e0b8ced60726f6ef33f54126f2868e323d4bd2      1910376 tesseract-ocr-tesseract-5.1.0.tar.gz
62
63
64 [FILE:632:manifests/plist.library]
65 bin/tesseract
66 include/tesseract/
67  baseapi.h
68  capi.h
69  export.h
70  ltrresultiterator.h
71  ocrclass.h
72  osdetect.h
73  pageiterator.h
74  publictypes.h
75  renderer.h
76  resultiterator.h
77  unichar.h
78  version.h
79 lib/
80  libtesseract.a
81  libtesseract.so
82  libtesseract.so.%%SOMAJOR%%
83  libtesseract.so.%%SOVERSION%%
84 lib/pkgconfig/tesseract.pc
85 share/tesseract-data/
86  alto
87  ambigs.train
88  api_config
89  batch
90  batch.nochop
91  bigram
92  box.train
93  box.train.stderr
94  digits
95  get.images
96  hocr
97  inter
98  kannada
99  linebox
100  logfile
101  lstm.train
102  lstmbox
103  lstmdebug
104  makebox
105  matdemo
106  msdemo
107  nobatch
108  pdf
109  pdf.ttf
110  quiet
111  rebox
112  segdemo
113  strokewidth
114  tsv
115  txt
116  unlv
117  wordstrbox
118
119
120 [FILE:254:manifests/plist.tools]
121 bin/
122  ambiguous_words
123  classifier_tester
124  cntraining
125  combine_lang_model
126  combine_tessdata
127  dawg2wordlist
128  lstmeval
129  lstmtraining
130  merge_unicharsets
131  mftraining
132  set_unicharset_properties
133  shapeclustering
134  text2image
135  unicharset_extractor
136  wordlist2dawg
137
138
139 [FILE:609:freebsd/patch-configure.ac]
140 sem_init(3) is part of libc on FreeBSD, so we ended up not linking against
141 libpthread. Look for a symbol that causes us to load it.
142 libtesseract.so is not linked against libomp if openmp is enabled,
143 which makes dependent ports fail. This adds a workaround by linking
144 directly against libomp.
145 --- configure.ac.orig   2022-01-07 12:43:52 UTC
146 +++ configure.ac
147 @@ -442,6 +442,9 @@ esac
148  # ----------------------------------------
149  
150  AC_SEARCH_LIBS([pthread_create], [pthread])
151 +if test "$enable_openmp" != no; then
152 +  AC_SEARCH_LIBS([omp_get_thread_num ], [omp])
153 +fi
154  
155  
156  # ----------------------------------------
157