2019-08-28 01:45:58 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-09-03 00:01:07 +08:00
|
|
|
vcpkg_from_github(
|
2019-08-28 01:45:58 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-09-03 00:01:07 +08:00
|
|
|
REPO Caltech-IPAC/json5_parser
|
|
|
|
REF 580bfe30c5ee5e06a0f536d7bddb75c07a29eda6 # 1.0.0
|
|
|
|
SHA512 25cdbc02ed2e3b05f0644c3398230ab82ede093ed6f7d8f140a9810509dd05feab1187d62fc38818725a92c47029fe3dc5ecfdbe14e1e0a2ef314e925b369d59
|
2019-08-28 01:45:58 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES 00001-fix-build.patch
|
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2019-08-28 01:45:58 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/json5_parser
|
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-08-28 01:45:58 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/json5-parser)
|
2019-08-28 01:45:58 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
2020-09-03 00:01:07 +08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|