diff mbox series

[meta-oe,v3] qcbor: add recipe

Message ID 20230822063213.10060-1-pawel.langowski@3mdeb.com
State Under Review
Headers show
Series [meta-oe,v3] qcbor: add recipe | expand

Commit Message

Pawel Langowski Aug. 22, 2023, 6:32 a.m. UTC
This adds QCBOR - a CBOR encoder/decoder library

Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
---
 meta-oe/recipes-extended/qcbor/qcbor_git.bb | 30 +++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/qcbor/qcbor_git.bb

Comments

Khem Raj Aug. 22, 2023, 3:19 p.m. UTC | #1
On Mon, Aug 21, 2023 at 11:32 PM Pawel Langowski
<pawel.langowski@3mdeb.com> wrote:
>
> This adds QCBOR - a CBOR encoder/decoder library
>

looking at https://github.com/laurencelundblade/QCBOR/releases
there has been few releases so I think  this recipe should reflect that via PV

set PV = "1.2+git${SRCPV}"

> Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
> ---
>  meta-oe/recipes-extended/qcbor/qcbor_git.bb | 30 +++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/qcbor/qcbor_git.bb
>
> diff --git a/meta-oe/recipes-extended/qcbor/qcbor_git.bb b/meta-oe/recipes-extended/qcbor/qcbor_git.bb
> new file mode 100644
> index 000000000000..a1bdf069936e
> --- /dev/null
> +++ b/meta-oe/recipes-extended/qcbor/qcbor_git.bb
> @@ -0,0 +1,30 @@
> +DESCRIPTION = " \
> +    QCBOR is a powerful, commercial-quality CBOR encoder/decoder that \
> +    implements these RFCs: RFC8949, RFC7049, RFC8742, RFC8943 \
> +"
> +
> +HOMEPAGE = "https://github.com/laurencelundblade/QCBOR"
> +
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://README.md;beginline=442;endline=463;md5=b55643261d6d221dac2b7a395105af62"
> +
> +SRC_URI = "git://github.com/laurencelundblade/QCBOR;protocol=https;branch=master"
> +
> +SRCREV = "44754f738c6534a4304a83d4c6e97b3d3193d887"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit pkgconfig
> +
> +CFLAGS += " \
> +    -DUSEFULBUF_DISABLE_ALL_FLOAT \
> +"
> +
> +do_install(){
> +    install -d ${D}${libdir}
> +    install -m 755 ${S}/libqcbor.a ${D}${libdir}/
> +    install -d ${D}${includedir}/qcbor
> +    install -m 644 ${S}/inc/*.h ${D}${includedir}
> +    install -m 644 ${S}/inc/qcbor/*.h ${D}${includedir}/qcbor
> +}
> +
> --
> 2.41.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#104516): https://lists.openembedded.org/g/openembedded-devel/message/104516
> Mute This Topic: https://lists.openembedded.org/mt/100889583/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/qcbor/qcbor_git.bb b/meta-oe/recipes-extended/qcbor/qcbor_git.bb
new file mode 100644
index 000000000000..a1bdf069936e
--- /dev/null
+++ b/meta-oe/recipes-extended/qcbor/qcbor_git.bb
@@ -0,0 +1,30 @@ 
+DESCRIPTION = " \
+    QCBOR is a powerful, commercial-quality CBOR encoder/decoder that \
+    implements these RFCs: RFC8949, RFC7049, RFC8742, RFC8943 \
+"
+
+HOMEPAGE = "https://github.com/laurencelundblade/QCBOR"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://README.md;beginline=442;endline=463;md5=b55643261d6d221dac2b7a395105af62"
+
+SRC_URI = "git://github.com/laurencelundblade/QCBOR;protocol=https;branch=master"
+
+SRCREV = "44754f738c6534a4304a83d4c6e97b3d3193d887"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+CFLAGS += " \
+    -DUSEFULBUF_DISABLE_ALL_FLOAT \
+"
+
+do_install(){
+    install -d ${D}${libdir}
+    install -m 755 ${S}/libqcbor.a ${D}${libdir}/
+    install -d ${D}${includedir}/qcbor
+    install -m 644 ${S}/inc/*.h ${D}${includedir}
+    install -m 644 ${S}/inc/qcbor/*.h ${D}${includedir}/qcbor
+}
+