2016-09-19 11:50:08 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2016-09-21 07:50:56 +08:00
|
|
|
URL "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})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tiff-4.0.6
|
|
|
|
OPTIONS -Dcxx=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_build_cmake()
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
|
|
|
${CURRENT_PACKAGES_DIR}/share
|
|
|
|
)
|
|
|
|
file(COPY
|
|
|
|
${CURRENT_BUILDTREES_DIR}/src/tiff-4.0.6/COPYRIGHT
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/tiff
|
|
|
|
)
|
|
|
|
file(RENAME
|
|
|
|
${CURRENT_PACKAGES_DIR}/share/tiff/COPYRIGHT
|
|
|
|
${CURRENT_PACKAGES_DIR}/share/tiff/c2
|
|
|
|
)
|
|
|
|
file(RENAME
|
|
|
|
${CURRENT_PACKAGES_DIR}/share/tiff/c2
|
|
|
|
${CURRENT_PACKAGES_DIR}/share/tiff/copyright
|
|
|
|
)
|
|
|
|
file(GLOB EXES ${CURRENT_PACKAGES_DIR}/bin/*.exe ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
|
|
|
file(REMOVE ${EXES})
|
|
|
|
vcpkg_copy_pdbs()
|