diff options
| -rw-r--r-- | meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch | 34 | ||||
| -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 @@ | |||
| 1 | From b47fa9532a7090d76521603dbc818bdec100085f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 15 Sep 2020 17:04:27 -0700 | ||
| 4 | Subject: [PATCH] include sys/time.h | ||
| 5 | |||
| 6 | This provides missing definitions of timeval stuct | ||
| 7 | |||
| 8 | Fixes | ||
| 9 | | ../../../git/src/ccutil/ocrclass.h:154:7: error: member access into | ||
| 10 | incomplete type 'struct timeval' | ||
| 11 | | tv->tv_usec = (millisecs.count() % 1000) * 1000; | ||
| 12 | |||
| 13 | Upstream-Status: Pending | ||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | src/ccutil/ocrclass.h | 2 ++ | ||
| 17 | 1 file changed, 2 insertions(+) | ||
| 18 | |||
| 19 | diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h | ||
| 20 | index 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 | -- | ||
| 33 | 2.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 @@ | |||
| 1 | SUMMARY = "A commercial quality OCR engine " | 1 | SUMMARY = "A commercial quality OCR engine " |
| 2 | HOMEPAGE = "https://github.com/tesseract-ocr/tesseract" | ||
| 3 | BUGTRACKER = "https://github.com/tesseract-ocr/tesseract/issues" | ||
| 2 | 4 | ||
| 3 | LICENSE = "Apache-2.0" | 5 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=7ea4f9a43aba9d3c849fe5c203a0ed40" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 7 | |||
| 8 | BRANCH = "4.1" | ||
| 9 | SRCREV = "f4ef2f2050f4c25b28bdbf0063b7d2eb30f41cf7" | ||
| 10 | SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=${BRANCH} \ | ||
| 11 | file://0001-include-sys-time.h.patch \ | ||
| 12 | " | ||
| 5 | 13 | ||
| 6 | BRANCH = "3.05" | ||
| 7 | PV = "${BRANCH}.01+git${SRCPV}" | ||
| 8 | SRCREV = "215866151e774972c9502282111b998d7a053562" | ||
| 9 | SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=${BRANCH}" | ||
| 10 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
| 11 | 15 | ||
| 12 | DEPENDS = "leptonica" | 16 | DEPENDS = "leptonica" |
| 13 | 17 | ||
| 14 | EXTRA_OECONF += "LIBLEPT_HEADERSDIR=${STAGING_INCDIR}/leptonica" | 18 | EXTRA_OECONF += "LIBLEPT_HEADERSDIR=${STAGING_INCDIR}/leptonica" |
| 15 | 19 | ||
| 16 | |||
| 17 | inherit autotools pkgconfig | 20 | inherit autotools pkgconfig |
| 18 | 21 | ||
| 19 | FILES_${PN} += "${datadir}/tessdata" | 22 | FILES_${PN} += "${datadir}/tessdata" |
