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