2016-09-19 11:50:08 +08:00
|
|
|
include(vcpkg_common_functions)
|
2016-09-29 08:05:56 +08:00
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tiff-4.0.6)
|
2016-09-19 11:50:08 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2016-09-25 06:23:04 +08:00
|
|
|
URLS "http://download.osgeo.org/libtiff/tiff-4.0.6.tar.gz"
|
2016-09-19 11:50:08 +08:00
|
|
|
FILENAME "tiff-4.0.6.tar.gz"
|
2016-09-23 04:13:09 +08:00
|
|
|
SHA512 2c8dbaaaab9f82a7722bfe8cb6fcfcf67472beb692f1b7dafaf322759e7016dad1bc58457c0f03db50aa5bd088fef2b37358fcbc1524e20e9e14a9620373fdf8
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
2016-11-11 09:52:19 +08:00
|
|
|
vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2016-11-11 19:29:12 +08:00
|
|
|
PATCHES ${CMAKE_CURRENT_LIST_DIR}/add-component-options.patch
|
2017-03-24 05:33:22 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/fix-uwp.patch
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/fix-cxx-shared-libs.patch
|
2016-11-11 09:52:19 +08:00
|
|
|
)
|
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
vcpkg_configure_cmake(
|
2016-09-29 08:05:56 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-03-24 05:33:22 +08:00
|
|
|
PREFER_NINJA
|
2016-11-11 09:52:19 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TOOLS=OFF
|
|
|
|
-DBUILD_DOCS=OFF
|
|
|
|
-DBUILD_CONTRIB=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
2017-03-24 05:33:22 +08:00
|
|
|
-Djbig=OFF # This is disabled by default due to GPL/Proprietary licensing.
|
|
|
|
-Djpeg12=OFF
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
|
|
|
${CURRENT_PACKAGES_DIR}/share
|
|
|
|
)
|
2016-11-11 09:52:19 +08:00
|
|
|
file(INSTALL
|
2016-09-29 08:05:56 +08:00
|
|
|
${SOURCE_PATH}/COPYRIGHT
|
2016-09-19 11:50:08 +08:00
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/tiff
|
2016-11-11 09:52:19 +08:00
|
|
|
RENAME copyright
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
2016-11-03 07:25:40 +08:00
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
vcpkg_copy_pdbs()
|