Commit Graph

8 Commits

Author SHA1 Message Date
krant 32bed2e89d tesseract: update to 5.3.4
- Fix NEON mis-detection which was breaking builds on some platforms

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-02-22 16:05:34 -08:00
Rosen Penev e835bd58c7 tesseract: update to 5.3.3
Fixes compilation with GCC13.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-01 11:20:30 -08:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Sergey V. Lobanov d7f42a4c58 tesseract: fix build on macos
tesseract build script checks /proc/cpuinfo file, but this file is
not exist or darwin. This check is used for getting  optimized build
flags depends on CPU. This feature does not work in cross-compile
case and should be explicitly disabled.

This patch disables CPU detection using cmake option
BUILD_TRAINING_TOOLS=OFF.

Generated binaries (aarch64 target) are exactly the same on
Ubuntu 20.04 x86_64 and MacOS 11.6 arm64. Binaries generated on
Linux build host are not changed (the same checksums before and
after applying this patch).

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-07 21:26:12 -08:00
Rosen Penev 2e654b19f3 treewide: back to cmake.mk
Ninja was merged to base and therefore we can now use normal cmake.mk

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-12 21:05:01 -07:00
Rosen Penev c4981cd87e tesseract: update to 4.1.1
Switch to AUTORELEASE for simplicity.

Add libarchive dependency since it's now used.

Build with ninja for faster compilation.

Refresh SIMD CMake patch and add musl patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-25 16:49:00 -07:00
Rosen Penev ea5405bfa6
tesseract: switch to CMake
Allows simplifying the Makefile. Also faster compilation.

Added CMake patch to fix compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-08 16:59:00 -07:00
Valentín Kivachuk 9c8e7c6f52 tesseract: add package
Tesseract is an open source text recognizer (OCR) Engine, available under the Apache 2.0 license. It can be used directly, or (for programmers) using an API to extract printed text from images. It supports a wide variety of languages.

Signed-off-by: Valentín Kivachuk <vk18496@gmail.com>
2019-07-18 11:38:04 +02:00