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