summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/json-c/json-c_0.18.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/json-c/json-c_0.18.bb')
-rw-r--r--meta/recipes-devtools/json-c/json-c_0.18.bb38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/json-c/json-c_0.18.bb b/meta/recipes-devtools/json-c/json-c_0.18.bb
new file mode 100644
index 0000000000..c112aacf4b
--- /dev/null
+++ b/meta/recipes-devtools/json-c/json-c_0.18.bb
@@ -0,0 +1,38 @@
1SUMMARY = "A JSON implementation in C"
2DESCRIPTION = "JSON-C implements a reference counting object model that allows \
3you to easily construct JSON objects in C, output them as JSON formatted strings \
4and parse JSON formatted strings back into the C representation of JSON objects."
5HOMEPAGE = "https://github.com/json-c/json-c/wiki"
6LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://COPYING;md5=de54b60fbbc35123ba193fea8ee216f2"
8
9SRC_URI = "https://s3.amazonaws.com/json-c_releases/releases/${BP}.tar.gz \
10 file://run-ptest \
11 "
12SRC_URI[sha256sum] = "876ab046479166b869afc6896d288183bbc0e5843f141200c677b3e8dfb11724"
13
14# NVD uses full tag name including date
15CVE_VERSION = "0.18-20240915"
16
17UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags"
18UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+"
19
20RPROVIDES:${PN} = "libjson"
21
22# Apps aren't needed/packaged and their CMakeLists.txt is incompatible with CMake 4+.
23EXTRA_OECMAKE = "-DDISABLE_WERROR=ON \
24 -DBUILD_APPS=OFF \
25"
26
27inherit cmake ptest
28
29do_install_ptest() {
30 install -d ${D}/${PTEST_PATH}/tests
31 install ${B}/tests/test* ${D}/${PTEST_PATH}/tests
32 install ${S}/tests/*.test ${D}/${PTEST_PATH}/tests
33 install ${S}/tests/*.expected ${D}/${PTEST_PATH}/tests
34 install ${S}/tests/test-defs.sh ${D}/${PTEST_PATH}/tests
35 install ${S}/tests/*json ${D}/${PTEST_PATH}/tests
36}
37
38BBCLASSEXTEND = "native nativesdk"