diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/tiff/CONTROL | 1 | ||||
| -rw-r--r-- | ports/tiff/portfile.cmake | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ports/tiff/CONTROL b/ports/tiff/CONTROL index f37049768..1eb69723c 100644 --- a/ports/tiff/CONTROL +++ b/ports/tiff/CONTROL @@ -1,5 +1,6 @@ Source: tiff Version: 4.1.0 +Port-Version: 1 Build-Depends: zlib, libjpeg-turbo, liblzma Homepage: https://download.osgeo.org/libtiff Description: A library that supports the manipulation of TIFF image files diff --git a/ports/tiff/portfile.cmake b/ports/tiff/portfile.cmake index ab610d328..7e94ac05a 100644 --- a/ports/tiff/portfile.cmake +++ b/ports/tiff/portfile.cmake @@ -41,7 +41,22 @@ vcpkg_configure_cmake( ) vcpkg_install_cmake() +set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libtiff-4.pc") +if(EXISTS "${_file}") + vcpkg_replace_string("${_file}" "-ltiff" "-ltiffd") +endif() + +# Fix dependencies: +set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libtiff-4.pc") +if(EXISTS "${_file}") + vcpkg_replace_string("${_file}" "Version: 4.1.0" "Version: 4.1.0\nRequires.private: liblzma libjpeg") +endif() +set(_file "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libtiff-4.pc") +if(EXISTS "${_file}") + vcpkg_replace_string("${_file}" "Version: 4.1.0" "Version: 4.1.0\nRequires.private: liblzma libjpeg") +endif() +vcpkg_fixup_pkgconfig() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share |
