From 2c68d1d1b9ea9335fa765d6b62006a033e10ad70 Mon Sep 17 00:00:00 2001 From: Nathan BRIENT Date: Thu, 21 Dec 2023 16:19:57 +0100 Subject: [PATCH 1/2] cyaml: new recipe --- meta-oe/recipes-support/cyaml/cyaml_1.0.bb | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meta-oe/recipes-support/cyaml/cyaml_1.0.bb diff --git a/meta-oe/recipes-support/cyaml/cyaml_1.0.bb b/meta-oe/recipes-support/cyaml/cyaml_1.0.bb new file mode 100644 index 00000000000..f63349a87c3 --- /dev/null +++ b/meta-oe/recipes-support/cyaml/cyaml_1.0.bb @@ -0,0 +1,27 @@ +SUMMARY = "Cyaml library" +DESCRIPTION = "LibCYAML is a C library for reading and writing structured YAML documents. It is written in ISO C11 and licensed under the ISC licence." +HOMEPAGE = "https://github.com/tlsa/libcyaml" +SECTION = "libs" +LICENSE = "ISC" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fe6f0e49348c87bddd5d27803dceaaf0" +DEPENDS = " \ + libyaml \ +" +SRCREV = "07ff8654a270ec9b410acd3152b60de9e9f941af" + +SRC_URI = "git://github.com/tlsa/libcyaml.git;protocol=https;branch=main" + +S = "${WORKDIR}/git" + +inherit pkgconfig + +EXTRA_OEMAKE = "'PREFIX=""' 'DESTDIR=${D}' 'CFLAGS=${CFLAGS}' 'LIBDIR=${libdir}' 'INCLUDEDIR=${includedir}'" + +do_compile() { + oe_runmake VARIANT=release +} +do_install() { + oe_runmake install VARIANT=release +} + +CFLAGS += "-pedantic -Wall -Wextra -O3 -Iinclude" \ No newline at end of file From 6e5b4e7ed0e27b9016b0c441c96da72644028045 Mon Sep 17 00:00:00 2001 From: Nathan BRIENT Date: Thu, 21 Dec 2023 17:20:47 +0100 Subject: [PATCH 2/2] cyaml: pull request modification --- .../cyaml/{cyaml_1.0.bb => cyaml_1.4.1.bb} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename meta-oe/recipes-support/cyaml/{cyaml_1.0.bb => cyaml_1.4.1.bb} (66%) diff --git a/meta-oe/recipes-support/cyaml/cyaml_1.0.bb b/meta-oe/recipes-support/cyaml/cyaml_1.4.1.bb similarity index 66% rename from meta-oe/recipes-support/cyaml/cyaml_1.0.bb rename to meta-oe/recipes-support/cyaml/cyaml_1.4.1.bb index f63349a87c3..f63348a328f 100644 --- a/meta-oe/recipes-support/cyaml/cyaml_1.0.bb +++ b/meta-oe/recipes-support/cyaml/cyaml_1.4.1.bb @@ -1,5 +1,5 @@ SUMMARY = "Cyaml library" -DESCRIPTION = "LibCYAML is a C library for reading and writing structured YAML documents. It is written in ISO C11 and licensed under the ISC licence." +DESCRIPTION = "LibCYAML is a library for reading and writing structured YAML documents." HOMEPAGE = "https://github.com/tlsa/libcyaml" SECTION = "libs" LICENSE = "ISC" @@ -15,13 +15,13 @@ S = "${WORKDIR}/git" inherit pkgconfig -EXTRA_OEMAKE = "'PREFIX=""' 'DESTDIR=${D}' 'CFLAGS=${CFLAGS}' 'LIBDIR=${libdir}' 'INCLUDEDIR=${includedir}'" +EXTRA_OEMAKE = "'PREFIX=""' 'DESTDIR=${D}' 'CFLAGS=${CFLAGS}' 'LIBDIR=${libdir}' 'INCLUDEDIR=${includedir}' 'VARIANT=release'" do_compile() { - oe_runmake VARIANT=release + oe_runmake } do_install() { - oe_runmake install VARIANT=release + oe_runmake install } CFLAGS += "-pedantic -Wall -Wextra -O3 -Iinclude" \ No newline at end of file