summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch34
-rw-r--r--meta-oe/recipes-graphics/tesseract/tesseract_4.1.1.bb (renamed from meta-oe/recipes-graphics/tesseract/tesseract_git.bb)15
2 files changed, 43 insertions, 6 deletions
diff --git a/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch b/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch
new file mode 100644
index 0000000000..de1fa75b7c
--- /dev/null
+++ b/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch
@@ -0,0 +1,34 @@
1From b47fa9532a7090d76521603dbc818bdec100085f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 15 Sep 2020 17:04:27 -0700
4Subject: [PATCH] include sys/time.h
5
6This provides missing definitions of timeval stuct
7
8Fixes
9| ../../../git/src/ccutil/ocrclass.h:154:7: error: member access into
10incomplete type 'struct timeval'
11| tv->tv_usec = (millisecs.count() % 1000) * 1000;
12
13Upstream-Status: Pending
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 src/ccutil/ocrclass.h | 2 ++
17 1 file changed, 2 insertions(+)
18
19diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h
20index d39a6dd6..96395c9b 100644
21--- a/src/ccutil/ocrclass.h
22+++ b/src/ccutil/ocrclass.h
23@@ -28,6 +28,8 @@
24
25 #include <chrono>
26 #include <ctime>
27+#include <sys/time.h>
28+
29 #ifdef _WIN32
30 #include <winsock2.h> // for timeval
31 #endif
32--
332.28.0
34
diff --git a/meta-oe/recipes-graphics/tesseract/tesseract_git.bb b/meta-oe/recipes-graphics/tesseract/tesseract_4.1.1.bb
index 89d09a0f55..3b5032f06d 100644
--- a/meta-oe/recipes-graphics/tesseract/tesseract_git.bb
+++ b/meta-oe/recipes-graphics/tesseract/tesseract_4.1.1.bb
@@ -1,19 +1,22 @@
1SUMMARY = "A commercial quality OCR engine " 1SUMMARY = "A commercial quality OCR engine "
2HOMEPAGE = "https://github.com/tesseract-ocr/tesseract"
3BUGTRACKER = "https://github.com/tesseract-ocr/tesseract/issues"
2 4
3LICENSE = "Apache-2.0" 5LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://COPYING;md5=7ea4f9a43aba9d3c849fe5c203a0ed40" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
7
8BRANCH = "4.1"
9SRCREV = "f4ef2f2050f4c25b28bdbf0063b7d2eb30f41cf7"
10SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=${BRANCH} \
11 file://0001-include-sys-time.h.patch \
12 "
5 13
6BRANCH = "3.05"
7PV = "${BRANCH}.01+git${SRCPV}"
8SRCREV = "215866151e774972c9502282111b998d7a053562"
9SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=${BRANCH}"
10S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
11 15
12DEPENDS = "leptonica" 16DEPENDS = "leptonica"
13 17
14EXTRA_OECONF += "LIBLEPT_HEADERSDIR=${STAGING_INCDIR}/leptonica" 18EXTRA_OECONF += "LIBLEPT_HEADERSDIR=${STAGING_INCDIR}/leptonica"
15 19
16
17inherit autotools pkgconfig 20inherit autotools pkgconfig
18 21
19FILES_${PN} += "${datadir}/tessdata" 22FILES_${PN} += "${datadir}/tessdata"