diff options
| author | Kai Pastor <dg0yt@darc.de> | 2021-09-24 21:06:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-24 12:06:17 -0700 |
| commit | 845a5fda11742e02f6884125cd639d76f64be95e (patch) | |
| tree | b83d38368c0ed0b6d8ea078aa1d10d64191b8d3e /ports/lz4 | |
| parent | bb92b7d34dc5d595a23796109913ddc77c4437d0 (diff) | |
| download | vcpkg-845a5fda11742e02f6884125cd639d76f64be95e.tar.gz vcpkg-845a5fda11742e02f6884125cd639d76f64be95e.zip | |
[libarchive,lz4] Fix pc file, modernize portfile (#20146)
* Fix pc file
* Modernize portfile
* OpenSSL unused on 'Darwin'
* x-add-version
* More port cleanup (CR requests)
* Revise wrapper, using find_package
* Don't use pkgconfig modules for windows openssl
* Update versions
* Use namespaced variables for custom lzo lookup
* Wrapper needs CMP0012
* Skip dependencies if not LibArchive_FOUND
* Update versions
* Fix liblz4.pc debug lib fixup
* Update versions
Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
Diffstat (limited to 'ports/lz4')
| -rw-r--r-- | ports/lz4/portfile.cmake | 4 | ||||
| -rw-r--r-- | ports/lz4/vcpkg.json | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ports/lz4/portfile.cmake b/ports/lz4/portfile.cmake index 63e858ba8..80bcecc38 100644 --- a/ports/lz4/portfile.cmake +++ b/ports/lz4/portfile.cmake @@ -31,8 +31,8 @@ endforeach() vcpkg_cmake_config_fixup() vcpkg_fixup_pkgconfig() -if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/lz4.pc") - vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/lz4.pc" " -llz4" " -llz4d") +if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/liblz4.pc" " -llz4" " -llz4d") endif() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") diff --git a/ports/lz4/vcpkg.json b/ports/lz4/vcpkg.json index 0faa46291..5167b44ad 100644 --- a/ports/lz4/vcpkg.json +++ b/ports/lz4/vcpkg.json @@ -1,7 +1,7 @@ { "name": "lz4", "version": "1.9.3", - "port-version": 2, + "port-version": 3, "description": "Lossless compression algorithm, providing compression speed at 400 MB/s per core.", "homepage": "https://github.com/lz4/lz4", "dependencies": [ |
