[tiff] add vcpkg_fixup_pkgconfig for tiff (#15734)

* [tiff] add vcpkg_fixup_pkgconfig for tiff

* add version

* fix tiff deps in *.pc file

* update version
This commit is contained in:
Alexander Neumann 2021-01-22 23:02:31 +01:00 committed by GitHub
parent 3b433e5081
commit a66c5ec385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -5698,7 +5698,7 @@
},
"tiff": {
"baseline": "4.1.0",
"port-version": 0
"port-version": 1
},
"tinkerforge": {
"baseline": "2.1.25",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8bb1dc9606c9b3573f08bcf6befad16ac730f287",
"version-string": "4.1.0",
"port-version": 1
},
{
"git-tree": "c2beac2991ae6df4dfeaf0a3b158092a78128214",
"version-string": "4.1.0",