From c2fb13ab01b133c2edbe526f57c01f5a3040d26e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Lu=C4=8Div=C5=88=C3=A1k?= Date: Sat, 26 May 2018 23:05:37 +0200 Subject: [PATCH] fix leptonica in tesseract --- ports/tesseract/leptonica.patch | 13 +++++++++++++ ports/tesseract/portfile.cmake | 1 + 2 files changed, 14 insertions(+) create mode 100644 ports/tesseract/leptonica.patch diff --git a/ports/tesseract/leptonica.patch b/ports/tesseract/leptonica.patch new file mode 100644 index 0000000000..507721d9d6 --- /dev/null +++ b/ports/tesseract/leptonica.patch @@ -0,0 +1,13 @@ +diff --git a/cmake/templates/TesseractConfig.cmake.in b/cmake/templates/TesseractConfig.cmake.in +index 13838361..245ca2bc 100644 +--- a/cmake/templates/TesseractConfig.cmake.in ++++ b/cmake/templates/TesseractConfig.cmake.in +@@ -21,6 +21,8 @@ + + include(${CMAKE_CURRENT_LIST_DIR}/TesseractTargets.cmake) + ++find_package(Leptonica REQUIRED) ++ + # ====================================================== + # Version variables: + # ====================================================== diff --git a/ports/tesseract/portfile.cmake b/ports/tesseract/portfile.cmake index cebf4316b9..59c76e3e6f 100644 --- a/ports/tesseract/portfile.cmake +++ b/ports/tesseract/portfile.cmake @@ -18,6 +18,7 @@ vcpkg_apply_patches( PATCHES ${CMAKE_CURRENT_LIST_DIR}/use-vcpkg-icu.patch ${CMAKE_CURRENT_LIST_DIR}/ws2-32.patch + ${CMAKE_CURRENT_LIST_DIR}/leptonica.patch ) # The built-in cmake FindICU is better