2019-06-01 15:19:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO json-c/json-c
|
2022-07-07 18:19:24 -03:00
|
|
|
REF d28ac67dde77566f53a97f22b4ea7cb36afe6582
|
|
|
|
SHA512 30063c8e32eb82e170647363055119f2f7eab19e1c3152673b966f41ed07e0349c3d6141b215b9912f9e84c2e06677b3d7ac949f720c7ebc2c95d692dc3881fe
|
2019-06-01 15:19:52 +08:00
|
|
|
HEAD_REF master
|
2020-10-16 21:34:37 +02:00
|
|
|
PATCHES pkgconfig.patch
|
2022-08-10 20:25:10 +02:00
|
|
|
fix-clang-cl.patch
|
2023-04-11 05:23:42 +08:00
|
|
|
fix-build-with-clang.patch #https://github.com/json-c/json-c/pull/783 Remove in next version
|
2019-06-01 15:19:52 +08:00
|
|
|
)
|
|
|
|
|
2022-07-07 18:19:24 -03:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-08-22 18:35:38 +02:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
2019-06-01 15:19:52 +08:00
|
|
|
)
|
|
|
|
|
2022-07-07 18:19:24 -03:00
|
|
|
vcpkg_cmake_install()
|
2019-06-01 15:19:52 +08:00
|
|
|
|
2022-07-07 18:19:24 -03:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2020-10-16 21:34:37 +02:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-06-01 15:19:52 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-07-07 18:19:24 -03:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-06-01 15:19:52 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-07-07 18:19:24 -03:00
|
|
|
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|