aboutsummaryrefslogtreecommitdiff
path: root/ports/tesseract/fix-text2image.patch
diff options
context:
space:
mode:
authorzhbanito <shpioner@mail.ru>2020-01-18 03:24:09 +0300
committerVictor Romero <romerosanchezv@gmail.com>2020-01-17 16:24:09 -0800
commitd672201c632473992c1d2c38282a5afc846d1702 (patch)
treea058221e1b330ec80c89981879a6c481d4f5702b /ports/tesseract/fix-text2image.patch
parent5a213dff376b348c5b333ede04408227008fef0b (diff)
downloadvcpkg-d672201c632473992c1d2c38282a5afc846d1702.tar.gz
vcpkg-d672201c632473992c1d2c38282a5afc846d1702.zip
[tesseract] port update to 4.1.1 release (#9629)
* Update portfile.cmake * Update fix-text2image.patch * Update CONTROL
Diffstat (limited to 'ports/tesseract/fix-text2image.patch')
-rw-r--r--ports/tesseract/fix-text2image.patch18
1 files changed, 9 insertions, 9 deletions
diff --git a/ports/tesseract/fix-text2image.patch b/ports/tesseract/fix-text2image.patch
index e4d83347f..8a9c6caf4 100644
--- a/ports/tesseract/fix-text2image.patch
+++ b/ports/tesseract/fix-text2image.patch
@@ -5,9 +5,9 @@ index 8fd96a9..186341e 100644
@@ -52,7 +52,7 @@ endif()
# experimental
- if (NOT CPPAN_BUILD)
-- find_package(ICU COMPONENTS uc i18n)
-+ find_package(ICU REQUIRED COMPONENTS i18n uc)
+ if (NOT CPPAN_BUILD AND NOT SW_BUILD)
+- find_package(ICU 52.1 COMPONENTS uc i18n)
++ find_package(ICU 52.1 REQUIRED COMPONENTS i18n uc)
endif()
########################################
@@ -18,17 +18,17 @@ index 8fd96a9..186341e 100644
+if(UNIX)
+ list(APPEND ICU_LIBRARIES ${CMAKE_DL_LIBS})
+endif()
- if (NOT CPPAN_BUILD)
- target_link_libraries (unicharset_training common_training ${ICU_LIBRARIES})
- else()
-@@ -253,16 +256,27 @@ if (NOT CPPAN_BUILD)
+ if (CPPAN_BUILD)
+ target_link_libraries (unicharset_training common_training pvt.cppan.demo.unicode.icu.i18n)
+ elseif (SW_BUILD)
+@@ -253,16 +256,27 @@ if (NOT CPPAN_BUILD AND NOT SW_BUILD)
find_package(PkgConfig)
endif()
--if (PKG_CONFIG_FOUND OR CPPAN_BUILD)
+-if (PKG_CONFIG_FOUND OR CPPAN_BUILD OR SW_BUILD)
-
-if (PKG_CONFIG_FOUND)
--pkg_check_modules(Pango REQUIRED pango)
+-pkg_check_modules(Pango REQUIRED pango>=1.22.0)
-pkg_check_modules(Cairo REQUIRED cairo)
-pkg_check_modules(PangoFt2 REQUIRED pangoft2)
-pkg_check_modules(PangoCairo REQUIRED pangocairo)