aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/zstd/CONTROL3
-rw-r--r--ports/zstd/portfile.cmake5
2 files changed, 6 insertions, 2 deletions
diff --git a/ports/zstd/CONTROL b/ports/zstd/CONTROL
index 84911e6b8..63ca9098c 100644
--- a/ports/zstd/CONTROL
+++ b/ports/zstd/CONTROL
@@ -1,4 +1,5 @@
Source: zstd
-Version: 1.4.4-1
+Version: 1.4.4
+Port-Version: 2
Description: Zstandard - Fast real-time compression algorithm
Homepage: https://facebook.github.io/zstd/
diff --git a/ports/zstd/portfile.cmake b/ports/zstd/portfile.cmake
index 0836ab0e6..8ed5f36e9 100644
--- a/ports/zstd/portfile.cmake
+++ b/ports/zstd/portfile.cmake
@@ -1,4 +1,3 @@
-include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebook/zstd
@@ -40,6 +39,10 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/zstd)
+if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libzstd.pc")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libzstd.pc" "-lzstd" "-lzstdd")
+endif()
+vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)