mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 01:09:07 +08:00
[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:
parent
3b433e5081
commit
a66c5ec385
@ -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
|
||||
|
@ -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
|
||||
|
@ -5698,7 +5698,7 @@
|
||||
},
|
||||
"tiff": {
|
||||
"baseline": "4.1.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"tinkerforge": {
|
||||
"baseline": "2.1.25",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "8bb1dc9606c9b3573f08bcf6befad16ac730f287",
|
||||
"version-string": "4.1.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "c2beac2991ae6df4dfeaf0a3b158092a78128214",
|
||||
"version-string": "4.1.0",
|
||||
|
Loading…
Reference in New Issue
Block a user