aboutsummaryrefslogtreecommitdiff
path: root/ports/icu
diff options
context:
space:
mode:
Diffstat (limited to 'ports/icu')
-rw-r--r--ports/icu/CONTROL2
-rw-r--r--ports/icu/portfile.cmake12
2 files changed, 11 insertions, 3 deletions
diff --git a/ports/icu/CONTROL b/ports/icu/CONTROL
index 4ba1c8e96..5cbf72816 100644
--- a/ports/icu/CONTROL
+++ b/ports/icu/CONTROL
@@ -1,5 +1,5 @@
Source: icu
-Version: 67.1-2
+Version: 67.1-3
Homepage: http://icu-project.org/apiref/icu4c/
Description: Mature and widely used Unicode and localization library.
Supports: !(arm|uwp)
diff --git a/ports/icu/portfile.cmake b/ports/icu/portfile.cmake
index 82fd00464..20ca4dab1 100644
--- a/ports/icu/portfile.cmake
+++ b/ports/icu/portfile.cmake
@@ -169,8 +169,6 @@ file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/share
${CURRENT_PACKAGES_DIR}/debug/share
- ${CURRENT_PACKAGES_DIR}/lib/pkgconfig
- ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig
${CURRENT_PACKAGES_DIR}/lib/icu
${CURRENT_PACKAGES_DIR}/debug/lib/icud)
@@ -203,6 +201,15 @@ else()
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/sicu${MODULE}d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/icu${MODULE}d.lib)
endif()
endforeach()
+
+ file(GLOB_RECURSE pkg_files LIST_DIRECTORIES false ${CURRENT_PACKAGES_DIR}/*.pc)
+ message(STATUS "${pkg_files}")
+ foreach(pkg_file IN LISTS pkg_files)
+ message(STATUS "${pkg_file}")
+ file(READ ${pkg_file} PKG_FILE)
+ string(REGEX REPLACE "-ls([^ \\t\\n]+)" "-l\\1" PKG_FILE "${PKG_FILE}" )
+ file(WRITE ${pkg_file} "${PKG_FILE}")
+ endforeach()
endif()
# force U_STATIC_IMPLEMENTATION macro
@@ -226,6 +233,7 @@ endif()
# Generates warnings about missing pdbs for icudt.dll
# This is expected because ICU database contains no executable code
vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread m)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file