From b0ca28a7e01020b29b6c979ca128006009d8d04d Mon Sep 17 00:00:00 2001 From: Peter Marko Date: Tue, 26 Mar 2024 21:30:34 +0100 Subject: libcpr: add new recipe Curl for People C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project. Signed-off-by: Peter Marko Signed-off-by: Khem Raj --- .../packagegroups/packagegroup-meta-networking.bb | 1 + .../recipes-support/libcpr/libcpr_1.10.5.bb | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 meta-networking/recipes-support/libcpr/libcpr_1.10.5.bb diff --git a/meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb b/meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb index 941efedd6..2e3aa5441 100644 --- a/meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb +++ b/meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb @@ -241,6 +241,7 @@ RDEPENDS:packagegroup-meta-networking-support = "\ vnstat \ wpan-tools \ ettercap \ + libcpr \ " RDEPENDS:packagegroup-meta-networking-support:remove:mipsarch = "memcached" RDEPENDS:packagegroup-meta-networking-support:remove:riscv64 = "memcached" diff --git a/meta-networking/recipes-support/libcpr/libcpr_1.10.5.bb b/meta-networking/recipes-support/libcpr/libcpr_1.10.5.bb new file mode 100644 index 000000000..93fdb78eb --- /dev/null +++ b/meta-networking/recipes-support/libcpr/libcpr_1.10.5.bb @@ -0,0 +1,24 @@ +SUMMARY = "Curl for People - C++ Requests" +DESCRIPTION = "Curl for People C++ Requests is a simple wrapper around \ + libcurl inspired by the excellent Python Requests project." +HOMEPAGE = "https://docs.libcpr.org/" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=08beaae5deae1c43c065592da8f38095" + +DEPENDS = "curl openssl" + +SRC_URI = "git://github.com/libcpr/cpr.git;protocol=https;branch=1.10.x" +SRCREV = "3b15fa82ea74739b574d705fea44959b58142eb8" + +S = "${WORKDIR}/git" + +inherit cmake + +# building tests is currently using FetchContent for mongoose +EXTRA_OECMAKE += "\ + -DCPR_USE_SYSTEM_CURL=ON \ + -DCPR_BUILD_TESTS=OFF \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf