a32e41b09a
Drop patches (already in version) This bump will fix the following build failure raised since bump of leptonica to version 1.83.1 in commita4e713558d
thanks to27b1827ccd
: src/textord/devanagari_processing.cpp: In member function 'bool tesseract::ShiroRekhaSplitter::Split(bool, tesseract::DebugPixa*)': src/textord/devanagari_processing.cpp:130:19: error: invalid use of incomplete type 'struct Pixa' 130 | Box *box = ccs->boxa->box[i]; | ^~ In file included from /home/autobuild/autobuild/instance-5/output-1/host/bin/../s390x-buildroot-linux-gnu/sysroot/usr/include/leptonica/alltypes.h:52, from /home/autobuild/autobuild/instance-5/output-1/host/bin/../s390x-buildroot-linux-gnu/sysroot/usr/include/leptonica/allheaders.h:35, from src/textord/devanagari_processing.h:16, from src/textord/devanagari_processing.cpp:25: /home/autobuild/autobuild/instance-5/output-1/host/bin/../s390x-buildroot-linux-gnu/sysroot/usr/include/leptonica/bmf.h:48:12: note: forward declaration of 'struct Pixa' 48 | struct Pixa *pixa; /*!< pixa of bitmaps for 93 characters */ | ^~~~ https://github.com/tesseract-ocr/tesseract/blob/5.3.3/ChangeLog Fixes: - http://autobuild.buildroot.org/results/46d3ffc8885245ee9a56a528be055b0b27a18245 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
73 lines
2.2 KiB
Makefile
73 lines
2.2 KiB
Makefile
################################################################################
|
|
#
|
|
# tesseract-ocr
|
|
#
|
|
################################################################################
|
|
|
|
TESSERACT_OCR_VERSION = 5.3.3
|
|
TESSERACT_OCR_DATA_VERSION = 4.1.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
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
|
TESSERACT_OCR_CONF_ENV += ax_cv_check_cxxflags__mfpu_neon=yes
|
|
else
|
|
TESSERACT_OCR_CONF_ENV += ax_cv_check_cxxflags__mfpu_neon=no
|
|
endif
|
|
|
|
# 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_GER),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))
|