diff options
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.bb | 38 |
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 @@ | |||
1 | SUMMARY = "A JSON implementation in C" | ||
2 | DESCRIPTION = "JSON-C implements a reference counting object model that allows \ | ||
3 | you to easily construct JSON objects in C, output them as JSON formatted strings \ | ||
4 | and parse JSON formatted strings back into the C representation of JSON objects." | ||
5 | HOMEPAGE = "https://github.com/json-c/json-c/wiki" | ||
6 | LICENSE = "MIT" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=de54b60fbbc35123ba193fea8ee216f2" | ||
8 | |||
9 | SRC_URI = "https://s3.amazonaws.com/json-c_releases/releases/${BP}.tar.gz \ | ||
10 | file://run-ptest \ | ||
11 | " | ||
12 | SRC_URI[sha256sum] = "876ab046479166b869afc6896d288183bbc0e5843f141200c677b3e8dfb11724" | ||
13 | |||
14 | # NVD uses full tag name including date | ||
15 | CVE_VERSION = "0.18-20240915" | ||
16 | |||
17 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags" | ||
18 | UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+" | ||
19 | |||
20 | RPROVIDES:${PN} = "libjson" | ||
21 | |||
22 | # Apps aren't needed/packaged and their CMakeLists.txt is incompatible with CMake 4+. | ||
23 | EXTRA_OECMAKE = "-DDISABLE_WERROR=ON \ | ||
24 | -DBUILD_APPS=OFF \ | ||
25 | " | ||
26 | |||
27 | inherit cmake ptest | ||
28 | |||
29 | do_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 | |||
38 | BBCLASSEXTEND = "native nativesdk" | ||