From 6c5542225acef68713ab874fd9e2287b2578a75c Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Wed, 20 Nov 2024 21:04:15 +0100 Subject: [PATCH] tesseract: update to 5.5.0 https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.0 --- thirdparty/tesseract/CMakeLists.txt | 4 ++-- thirdparty/tesseract/cmake_tweaks.patch | 13 ++----------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/thirdparty/tesseract/CMakeLists.txt b/thirdparty/tesseract/CMakeLists.txt index 7415ba71d..d61b8c8dd 100644 --- a/thirdparty/tesseract/CMakeLists.txt +++ b/thirdparty/tesseract/CMakeLists.txt @@ -22,8 +22,8 @@ list(APPEND BUILD_CMD COMMAND ninja) list(APPEND INSTALL_CMD COMMAND ${CMAKE_COMMAND} --install .) external_project( - DOWNLOAD URL d26794016908c0859d893951f0efea73 - https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.4.1.tar.gz + DOWNLOAD URL 17a6d7b78793ff587686449b29d51894 + https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.5.0.tar.gz PATCH_FILES ${PATCH_FILES} CMAKE_ARGS ${CMAKE_ARGS} BUILD_COMMAND ${BUILD_CMD} diff --git a/thirdparty/tesseract/cmake_tweaks.patch b/thirdparty/tesseract/cmake_tweaks.patch index 67f62523e..7a8fdb302 100644 --- a/thirdparty/tesseract/cmake_tweaks.patch +++ b/thirdparty/tesseract/cmake_tweaks.patch @@ -37,15 +37,6 @@ endif() target_link_libraries(libtesseract PRIVATE ${LIB_Ws2_32} ${LIB_pthread}) if(OpenMP_CXX_FOUND) -@@ -829,7 +836,7 @@ - ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) - set_target_properties( - libtesseract PROPERTIES SOVERSION -- ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) -+ ${VERSION_MAJOR}) - - set_target_properties( - libtesseract @@ -865,18 +872,20 @@ endif() @@ -90,8 +81,8 @@ URL: https://github.com/tesseract-ocr/tesseract Version: @tesseract_VERSION@ Requires.private: lept --Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @libarchive_LIBS@ @libcurl_LIBS@ @TENSORFLOW_LIBS@ -+Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @cpu_features_LIBS@ @libarchive_LIBS@ @libcurl_LIBS@ @TENSORFLOW_LIBS@ +-Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @libarchive_LIBS@ @libcurl_LIBS@ ++Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @cpu_features_LIBS@ @libarchive_LIBS@ @libcurl_LIBS@ Libs.private: Cflags: -I${includedir}