2019-03-09 05:39:22 +08:00
|
|
|
set(VCPKG_LIBRARY_LINKAGE "dynamic")
|
|
|
|
|
|
|
|
# We specify the Linux URL, but the only difference between the Windows/Linux packages are the included libraries
|
|
|
|
# which we re-build anyway. There is no source only package provided or it would be preferred (and smaller).
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2021-09-17 23:20:57 +08:00
|
|
|
URLS "https://earth-info.nga.mil/php/download.php?file=wgs-mastertgz"
|
2023-07-11 06:20:45 +08:00
|
|
|
FILENAME "geotrans-3.9-master-adf1935.tgz"
|
|
|
|
SHA512 adf19357edc62681a2515e7210a752b0e09214b6ce69024e60150e0780059c08a9ab5a162a0562dbc37127438783a24bcde1adb88b559bc95ff9a5bea0eb8b39
|
2019-03-09 05:39:22 +08:00
|
|
|
)
|
|
|
|
|
2022-12-07 04:48:34 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-03-09 05:39:22 +08:00
|
|
|
)
|
|
|
|
|
2022-12-07 04:48:34 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-03-09 05:39:22 +08:00
|
|
|
|
2022-12-07 04:48:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-03-09 05:39:22 +08:00
|
|
|
)
|
|
|
|
|
2022-12-07 04:48:34 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-03-09 05:39:22 +08:00
|
|
|
|
|
|
|
configure_file(
|
2022-12-07 04:48:34 +08:00
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/geotrans-config.in.cmake"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/geotrans-config.cmake"
|
2019-03-09 05:39:22 +08:00
|
|
|
@ONLY
|
|
|
|
)
|
|
|
|
|
2022-12-07 04:48:34 +08:00
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}" @ONLY)
|
2019-03-09 05:39:22 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-02-09 05:44:55 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/GEOTRANS3/docs/MSP_Geotrans_Terms_Of_Use.txt")
|
2019-03-09 05:39:22 +08:00
|
|
|
|
|
|
|
# Install the geo model data
|
2023-02-09 05:44:55 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/data" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|