[tiff] Install runtime deps for tiff[tool] (#11364)

* Install runtime deps for tiff[tool]

fixes microsoft/vcpkg#11361

* Remove deprecated include

* Increment port version
This commit is contained in:
Thomas Gwynne-Timothy 2020-05-15 18:04:10 -06:00 committed by GitHub
parent 830d48241c
commit 9db3ff7a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
Source: tiff
Version: 4.0.10-8
Version: 4.0.10-9
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

@ -1,5 +1,3 @@
include(vcpkg_common_functions)
set(LIBTIFF_VERSION 4.0.10)
vcpkg_download_distfile(ARCHIVE
@ -57,10 +55,11 @@ file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/
if ("tool" IN_LIST FEATURES)
file(GLOB TIFF_TOOLS ${CURRENT_PACKAGES_DIR}/bin/*.exe)
file(INSTALL ${TIFF_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
file(REMOVE ${TIFF_TOOLS})
file(GLOB TIFF_TOOLS ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
file(REMOVE ${TIFF_TOOLS})
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()