initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From ea1e1ddfc0af9966a0c613a93087bc3e0a5979a7 Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Talis <gilles.talis@gmail.com>
|
||||
Date: Fri, 19 Jul 2019 18:52:03 +0200
|
||||
Subject: [PATCH] Fix timeval structure build failure
|
||||
|
||||
timeval structure definition requires <sys/time.h> to be included
|
||||
|
||||
Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
|
||||
---
|
||||
src/ccutil/ocrclass.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h
|
||||
index d39a6dd..2a01118 100644
|
||||
--- a/src/ccutil/ocrclass.h
|
||||
+++ b/src/ccutil/ocrclass.h
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <chrono>
|
||||
#include <ctime>
|
||||
+#include <sys/time.h>
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h> // for timeval
|
||||
#endif
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
comment "tesseract-ocr needs a toolchain w/ threads, C++, gcc >= 4.8, dynamic library, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|
||||
menuconfig BR2_PACKAGE_TESSERACT_OCR
|
||||
bool "tesseract-ocr"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_LEPTONICA
|
||||
help
|
||||
Tesseract is an OCR (Optical Character Recognition) engine,
|
||||
It can be used directly, or (for programmers) using an API.
|
||||
It supports a wide variety of languages.
|
||||
|
||||
https://github.com/tesseract-ocr/tesseract
|
||||
|
||||
if BR2_PACKAGE_TESSERACT_OCR
|
||||
|
||||
comment "tesseract-ocr languages support"
|
||||
|
||||
config BR2_PACKAGE_TESSERACT_OCR_LANG_ENG
|
||||
bool "English"
|
||||
|
||||
config BR2_PACKAGE_TESSERACT_OCR_LANG_FRA
|
||||
bool "French"
|
||||
|
||||
config BR2_PACKAGE_TESSERACT_OCR_LANG_GER
|
||||
bool "German"
|
||||
|
||||
config BR2_PACKAGE_TESSERACT_OCR_LANG_SPA
|
||||
bool "Spanish"
|
||||
|
||||
config BR2_PACKAGE_TESSERACT_OCR_LANG_CHI_SIM
|
||||
bool "Simplified Chinese"
|
||||
|
||||
config BR2_PACKAGE_TESSERACT_OCR_LANG_CHI_TRA
|
||||
bool "Traditional Chinese"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,9 @@
|
||||
# locally computed
|
||||
sha256 2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb tesseract-ocr-4.1.1.tar.gz
|
||||
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
|
||||
sha256 daa0c97d651c19fba3b25e81317cd697e9908c8208090c94c3905381c23fc047 eng.traineddata
|
||||
sha256 eac01c1d72540d6090facb7b2f42dd0a2ee8fc57c5be1b20548ae668e2761913 fra.traineddata
|
||||
sha256 896b3b4956503ab9daa10285db330881b2d74b70d889b79262cc534b9ec699a4 deu.traineddata
|
||||
sha256 0b0fcbb4665189e01ab8019e591f014dd7260460de072543edd4b2cb4ede7c96 spa.traineddata
|
||||
sha256 fc05d89ab31d8b4e226910f16a8bcbf78e43bae3e2580bb5feefd052efdab363 chi_sim.traineddata
|
||||
sha256 559067dc0f7c94788884742129d66a0117dde7f4ff12b263d92147173497db14 chi_tra.traineddata
|
||||
@@ -0,0 +1,66 @@
|
||||
################################################################################
|
||||
#
|
||||
# tesseract-ocr
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TESSERACT_OCR_VERSION = 4.1.1
|
||||
TESSERACT_OCR_DATA_VERSION = 4.0.0
|
||||
TESSERACT_OCR_SITE = $(call github,tesseract-ocr,tesseract,$(TESSERACT_OCR_VERSION))
|
||||
TESSERACT_OCR_LICENSE = Apache-2.0
|
||||
TESSERACT_OCR_LICENSE_FILES = LICENSE
|
||||
|
||||
# Source from github, no configure script provided
|
||||
TESSERACT_OCR_AUTORECONF = YES
|
||||
|
||||
# cairo, pango and icu are optional dependencies, but only needed for
|
||||
# building training tools, which are only built explicitly with "make
|
||||
# training", which is not done by this package.
|
||||
TESSERACT_OCR_DEPENDENCIES = leptonica host-pkgconf
|
||||
TESSERACT_OCR_INSTALL_STAGING = YES
|
||||
TESSERACT_OCR_CONF_ENV = \
|
||||
ac_cv_prog_have_asciidoc=false \
|
||||
LIBLEPT_HEADERSDIR=$(STAGING_DIR)/usr/include/leptonica
|
||||
TESSERACT_OCR_CONF_OPTS = \
|
||||
--disable-opencl
|
||||
|
||||
# Language data files download
|
||||
ifeq ($(BR2_PACKAGE_TESSERACT_OCR_LANG_ENG),y)
|
||||
TESSERACT_OCR_DATA_FILES += eng.traineddata
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TESSERACT_OCR_LANG_FRA),y)
|
||||
TESSERACT_OCR_DATA_FILES += fra.traineddata
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TESSERACT_OCR_LANG_DEU),y)
|
||||
TESSERACT_OCR_DATA_FILES += deu.traineddata
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TESSERACT_OCR_LANG_SPA),y)
|
||||
TESSERACT_OCR_DATA_FILES += spa.traineddata
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TESSERACT_OCR_LANG_CHI_SIM),y)
|
||||
TESSERACT_OCR_DATA_FILES += chi_sim.traineddata
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TESSERACT_OCR_LANG_CHI_TRA),y)
|
||||
TESSERACT_OCR_DATA_FILES += chi_tra.traineddata
|
||||
endif
|
||||
|
||||
TESSERACT_OCR_EXTRA_DOWNLOADS = \
|
||||
$(addprefix https://github.com/tesseract-ocr/tessdata/raw/$(TESSERACT_OCR_DATA_VERSION)/,\
|
||||
$(TESSERACT_OCR_DATA_FILES))
|
||||
|
||||
# Language data files installation
|
||||
define TESSERACT_OCR_INSTALL_LANG_DATA
|
||||
$(foreach langfile,$(TESSERACT_OCR_DATA_FILES), \
|
||||
$(INSTALL) -D -m 0644 $(TESSERACT_OCR_DL_DIR)/$(langfile) \
|
||||
$(TARGET_DIR)/usr/share/tessdata/$(langfile)
|
||||
)
|
||||
endef
|
||||
|
||||
TESSERACT_OCR_POST_INSTALL_TARGET_HOOKS += TESSERACT_OCR_INSTALL_LANG_DATA
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user