blob: 3aba41dfcf64d138c787c032c5ec4d49a049fa55 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "C bindings for apps which will manipulate JSON data"
2DESCRIPTION = "JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C."
3HOMEPAGE = "https://github.com/json-c/json-c/wiki"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=de54b60fbbc35123ba193fea8ee216f2"
6
Patrick Williams92b42cb2022-09-03 06:53:57 -05007SRC_URI = " \
8 https://s3.amazonaws.com/json-c_releases/releases/${BP}.tar.gz \
9 file://0001-Fix-build-with-clang-15.patch \
10 file://run-ptest \
11"
Patrick Williams03907ee2022-05-01 06:28:52 -050012SRC_URI[sha256sum] = "8e45ac8f96ec7791eaf3bb7ee50e9c2100bbbc87b8d0f1d030c5ba8a0288d96b"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013
Andrew Geisslereff27472021-10-29 15:35:00 -050014UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags"
Brad Bishop00e122a2019-10-05 11:10:57 -040015UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016
Patrick Williams213cb262021-08-07 19:21:33 -050017RPROVIDES:${PN} = "libjson"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018
Patrick Williams92b42cb2022-09-03 06:53:57 -050019inherit cmake ptest
20
21do_install_ptest() {
22 install -d ${D}/${PTEST_PATH}/tests
23 install ${B}/tests/test* ${D}/${PTEST_PATH}/tests
24 install ${S}/tests/*.test ${D}/${PTEST_PATH}/tests
25 install ${S}/tests/*.expected ${D}/${PTEST_PATH}/tests
26 install ${S}/tests/test-defs.sh ${D}/${PTEST_PATH}/tests
27 install ${S}/tests/valid*json ${D}/${PTEST_PATH}/tests
28}
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029
30BBCLASSEXTEND = "native nativesdk"