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 | 36 |
1 files changed, 36 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..2fd1897ba8 --- /dev/null +++ b/meta/recipes-devtools/json-c/json-c_0.18.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 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 | # Required for ICECC builds | ||
| 23 | EXTRA_OECMAKE = "-DDISABLE_WERROR=ON" | ||
| 24 | |||
| 25 | inherit cmake ptest | ||
| 26 | |||
| 27 | do_install_ptest() { | ||
| 28 | install -d ${D}/${PTEST_PATH}/tests | ||
| 29 | install ${B}/tests/test* ${D}/${PTEST_PATH}/tests | ||
| 30 | install ${S}/tests/*.test ${D}/${PTEST_PATH}/tests | ||
| 31 | install ${S}/tests/*.expected ${D}/${PTEST_PATH}/tests | ||
| 32 | install ${S}/tests/test-defs.sh ${D}/${PTEST_PATH}/tests | ||
| 33 | install ${S}/tests/*json ${D}/${PTEST_PATH}/tests | ||
| 34 | } | ||
| 35 | |||
| 36 | BBCLASSEXTEND = "native nativesdk" | ||
