summaryrefslogtreecommitdiffstats
path: root/package/tesseract-ocr/Config.in
diff options
context:
space:
mode:
authorGilles Talis <gilles.talis@gmail.com>2017-03-19 09:07:53 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-19 14:57:56 +0100
commitd1103eeab34c60baf3a1f4b01306977b08bc3d2f (patch)
tree9903c493b1b3116c2bd7eab851436a289af5046e /package/tesseract-ocr/Config.in
parentccab2d636fbee6eb8073ea2010442d7678a9ec54 (diff)
downloadbuildroot-d1103eeab34c60baf3a1f4b01306977b08bc3d2f.tar.gz
buildroot-d1103eeab34c60baf3a1f4b01306977b08bc3d2f.zip
tesseract-ocr: new package
Signed-off-by: Gilles Talis <gilles.talis@gmail.com> [Thomas: - remove jpeg, tiff and libpng dependencies, they do not seem to be used - add host-pkgconf as a dependency, since the configure script uses PKG_CHECK_MODULES() - pass --disable-opencl to explicitly disable OpenCL support - add comment to explain why we don't add support for cairo, pango and icu as optional dependencies.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/tesseract-ocr/Config.in')
-rw-r--r--package/tesseract-ocr/Config.in43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/tesseract-ocr/Config.in b/package/tesseract-ocr/Config.in
new file mode 100644
index 0000000000..d4c23fbe46
--- /dev/null
+++ b/package/tesseract-ocr/Config.in
@@ -0,0 +1,43 @@
+comment "tesseract-ocr needs a toolchain w/ threads, C++, gcc >= 4.8, dynamic library"
+ depends on BR2_USE_MMU
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || BR2_STATIC_LIBS
+
+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
+ 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
OpenPOWER on IntegriCloud