2020-10-14 05:38:05 +08:00
|
|
|
vcpkg_from_github(
|
2018-10-22 04:16:02 -07:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-10-14 05:38:05 +08:00
|
|
|
REPO OSGeo/libgeotiff
|
2022-03-23 20:24:10 +01:00
|
|
|
REF 1.7.1
|
|
|
|
SHA512 3c71a19f02a46a86d546777e2afe6bd715098779845967a5253ca949e0cacc0117c697cabd099611247e85e15cf1813733ae0ef445b136d7001f34667a4c8dd6
|
2020-10-14 05:38:05 +08:00
|
|
|
HEAD_REF master
|
2018-10-22 04:16:02 -07:00
|
|
|
PATCHES
|
2019-05-29 01:58:00 +02:00
|
|
|
cmakelists.patch
|
2021-11-10 23:54:19 +01:00
|
|
|
skip-doc-install.patch
|
2022-07-08 00:05:52 +02:00
|
|
|
public-dependencies.patch
|
2018-02-16 13:29:27 +09:00
|
|
|
)
|
2018-02-09 07:15:21 +09:00
|
|
|
|
2021-11-10 23:54:19 +01:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tools WITH_JPEG
|
|
|
|
tools WITH_UTILITIES
|
|
|
|
)
|
2019-01-23 10:35:53 +01:00
|
|
|
|
2021-11-10 23:54:19 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/libgeotiff"
|
2018-08-03 16:14:51 +09:00
|
|
|
OPTIONS
|
2021-04-12 20:14:09 +02:00
|
|
|
-DGEOTIFF_BIN_SUBDIR=bin
|
2019-10-18 08:15:52 +08:00
|
|
|
-DWITH_TIFF=1
|
2021-11-10 23:54:19 +01:00
|
|
|
-DHAVE_TIFFOPEN=1
|
|
|
|
-DHAVE_TIFFMERGEFIELDINFO=1
|
2021-07-26 20:10:39 +02:00
|
|
|
-DCMAKE_MACOSX_BUNDLE=0
|
2021-11-10 23:54:19 +01:00
|
|
|
${FEATURE_OPTIONS}
|
2018-02-08 23:13:38 +09:00
|
|
|
)
|
|
|
|
|
2021-11-10 23:54:19 +01:00
|
|
|
vcpkg_cmake_install()
|
2018-02-08 23:13:38 +09:00
|
|
|
|
2021-11-10 23:54:19 +01:00
|
|
|
if(WITH_UTILITIES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES applygeo geotifcp listgeo makegeo AUTO_CLEAN)
|
|
|
|
endif()
|
2018-02-09 13:39:22 +09:00
|
|
|
|
2020-10-14 05:38:05 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-11-10 23:54:19 +01:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME GeoTIFF)
|
2018-02-17 20:14:58 +09:00
|
|
|
|
2019-05-29 01:58:00 +02:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2021-11-10 23:54:19 +01:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/GeoTIFF/geotiff-config.cmake" "if (GeoTIFF_USE_STATIC_LIBS)" "if (1)")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
|
2018-02-17 20:14:58 +09:00
|
|
|
endif()
|
2018-08-03 16:14:51 +09:00
|
|
|
|
2021-11-10 23:54:19 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-05-29 01:58:00 +02:00
|
|
|
|
2021-11-10 23:54:19 +01:00
|
|
|
file(INSTALL "${SOURCE_PATH}/libgeotiff/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2023-02-10 02:59:04 +08:00
|
|
|
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|