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