2019-06-01 15:19:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO json-c/json-c
|
2022-07-08 05:19:24 +08:00
|
|
|
REF d28ac67dde77566f53a97f22b4ea7cb36afe6582
|
|
|
|
SHA512 30063c8e32eb82e170647363055119f2f7eab19e1c3152673b966f41ed07e0349c3d6141b215b9912f9e84c2e06677b3d7ac949f720c7ebc2c95d692dc3881fe
|
2019-06-01 15:19:52 +08:00
|
|
|
HEAD_REF master
|
2020-10-17 03:34:37 +08:00
|
|
|
PATCHES pkgconfig.patch
|
2022-08-11 02:25:10 +08:00
|
|
|
fix-clang-cl.patch
|
2019-06-01 15:19:52 +08:00
|
|
|
)
|
|
|
|
|
2022-07-08 05:19:24 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-08-23 00:35:38 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
2019-06-01 15:19:52 +08:00
|
|
|
)
|
|
|
|
|
2022-07-08 05:19:24 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-06-01 15:19:52 +08:00
|
|
|
|
2022-07-08 05:19:24 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2020-10-17 03:34:37 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-06-01 15:19:52 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-07-08 05:19:24 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-06-01 15:19:52 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-07-08 05:19:24 +08:00
|
|
|
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|