2024-04-25 21:14:44 +08:00
|
|
|
set(CALCEPH_HASH f8d7d2ce2e043f79364bb7bf5e8d74a9b0be8a6c29895068ac8f5936d11fd3c82747a3ab2f9fefc6a66762f35d622497b6088d24b76060b5b722e3c8c3b76c6b)
|
2021-09-21 01:53:19 +08:00
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2023-04-15 14:36:36 +08:00
|
|
|
URLS "https://www.imcce.fr/content/medias/recherche/equipes/asd/calceph/calceph-${VERSION}.tar.gz"
|
|
|
|
FILENAME "calceph-${VERSION}.tar.gz"
|
2021-09-21 01:53:19 +08:00
|
|
|
SHA512 ${CALCEPH_HASH}
|
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2021-09-21 01:53:19 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
)
|
|
|
|
|
2024-04-25 21:14:44 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-09-21 01:53:19 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-04-25 21:14:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2021-12-20 23:50:45 +08:00
|
|
|
|
2024-04-25 21:14:44 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES calceph_inspector calceph_queryposition calceph_queryorientation AUTO_CLEAN)
|
2021-12-20 23:50:45 +08:00
|
|
|
|
2024-04-25 21:14:44 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2021-09-21 01:53:19 +08:00
|
|
|
endif()
|
|
|
|
|
2024-04-25 21:14:44 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/README.rst" DESTINATION "${CURRENT_PACKAGES_DIR}/share/calceph" RENAME readme.rst)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING_CECILL_B.LIB")
|