diff options
| author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2020-07-14 23:40:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-14 14:40:43 -0700 |
| commit | c9da48de3192936b1a208980333cfa583da1be25 (patch) | |
| tree | 3d0ea5d4ded4d69f7179f22241fdf9701a8de33a /ports/zstd | |
| parent | d2620cf02bf01bb3cd6873aa2ba7687644019ed0 (diff) | |
| download | vcpkg-c9da48de3192936b1a208980333cfa583da1be25.tar.gz vcpkg-c9da48de3192936b1a208980333cfa583da1be25.zip | |
[zstd] fix pkg-config files (#12407)
* [zstd] add pkgconfig
* [zstd] correct debug link
* Update ports/zstd/CONTROL
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Diffstat (limited to 'ports/zstd')
| -rw-r--r-- | ports/zstd/CONTROL | 3 | ||||
| -rw-r--r-- | ports/zstd/portfile.cmake | 5 |
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) |
