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
|
|
|
|
REF 8b1a8f52bc909f86e04ceadd699db102208074a2 #v1.6.0
|
|
|
|
SHA512 41715d6a416307a93b2f95874c00ed27c3a0450d70311e77ed45f7ff477bd85f4a69b549bde01dfb9412a62a482467222fc8ed398478e2829e4d112012aab852
|
|
|
|
HEAD_REF master
|
2018-10-22 19:16:02 +08:00
|
|
|
PATCHES
|
2019-05-29 07:58:00 +08:00
|
|
|
cmakelists.patch
|
2019-05-25 06:11:42 +08:00
|
|
|
geotiff-config.patch
|
2019-10-18 08:15:52 +08:00
|
|
|
fix-proj4.patch
|
2020-10-14 05:38:05 +08:00
|
|
|
fix-staticbuild.patch
|
2021-01-29 11:26:11 +08:00
|
|
|
fix-config-version.patch
|
2018-02-16 12:29:27 +08:00
|
|
|
)
|
2018-02-09 06:15:21 +08:00
|
|
|
|
2020-10-14 05:38:05 +08:00
|
|
|
set(SOURCE_PATH ${SOURCE_PATH}/libgeotiff)
|
|
|
|
|
2019-01-23 17:35:53 +08:00
|
|
|
# Delete FindPROJ4.cmake
|
|
|
|
file(REMOVE ${SOURCE_PATH}/cmake/FindPROJ4.cmake)
|
|
|
|
|
2018-02-08 22:13:38 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2018-08-03 15:14:51 +08:00
|
|
|
OPTIONS
|
2021-04-13 02:14:09 +08:00
|
|
|
-DGEOTIFF_BIN_SUBDIR=bin
|
|
|
|
-DGEOTIFF_DATA_SUBDIR=share
|
2019-10-18 08:15:52 +08:00
|
|
|
-DWITH_TIFF=1
|
|
|
|
-DWITH_PROJ4=1
|
|
|
|
-DWITH_ZLIB=1
|
|
|
|
-DWITH_JPEG=1
|
|
|
|
-DWITH_UTILITIES=1
|
2021-07-27 02:10:39 +08:00
|
|
|
-DCMAKE_MACOSX_BUNDLE=0
|
2018-02-08 22:13:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2020-10-14 05:38:05 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES applygeo geotifcp listgeo makegeo AUTO_CLEAN)
|
2018-02-09 12:39:22 +08:00
|
|
|
|
2020-10-14 05:38:05 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-01-29 11:26:11 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/geotiff TARGET_PATH share/geotiff)
|
2018-02-17 19:14:58 +08:00
|
|
|
|
2019-05-29 07:58:00 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2021-01-29 11:26:11 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/geotiff/geotiff-config.cmake "if (GeoTIFF_USE_STATIC_LIBS)" "if (1)")
|
2018-02-09 12:39:22 +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
|
|
|
|
2020-10-14 05:38:05 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/doc ${CURRENT_PACKAGES_DIR}/debug/share)
|
2019-05-29 07:58:00 +08:00
|
|
|
|
2020-10-14 05:38:05 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2019-05-29 07:58:00 +08:00
|
|
|
|