From eadf631fe0215f72ace6b9a70b62d389f69b6e94 Mon Sep 17 00:00:00 2001 From: Ayoub Zaki Date: Wed, 22 Jan 2025 15:38:00 +0100 Subject: pistache: fix package config dependencies Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/pistache/pistache_0.4.26.bb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/meta-oe/recipes-devtools/pistache/pistache_0.4.26.bb b/meta-oe/recipes-devtools/pistache/pistache_0.4.26.bb index 953c249664..feffff623d 100644 --- a/meta-oe/recipes-devtools/pistache/pistache_0.4.26.bb +++ b/meta-oe/recipes-devtools/pistache/pistache_0.4.26.bb @@ -9,22 +9,24 @@ SRCREV = "ddffda861aa49012dcda28f1362d0339e718cd52" S = "${WORKDIR}/git" -DEPENDS = "openssl brotli zlib zstd rapidjson" +DEPENDS = "rapidjson" inherit pkgconfig meson PACKAGECONFIG ?= "openssl brotli deflate zstd examples" -PACKAGECONFIG[openssl] = "-DPISTACHE_USE_SSL=true, -DPISTACHE_USE_SSL=false" -PACKAGECONFIG[brotli] = "-DPISTACHE_USE_CONTENT_ENCODING_BROTLI=true, -DPISTACHE_USE_CONTENT_ENCODING_BROTLI=false" -PACKAGECONFIG[deflate] = "-DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=true, -DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=false" -PACKAGECONFIG[zstd] = "-DPISTACHE_USE_CONTENT_ENCODING_ZSTD=true, -DPISTACHE_USE_CONTENT_ENCODING_ZSTD=false" +PACKAGECONFIG[openssl] = "-DPISTACHE_USE_SSL=true, -DPISTACHE_USE_SSL=false, openssl" +PACKAGECONFIG[brotli] = "-DPISTACHE_USE_CONTENT_ENCODING_BROTLI=true, -DPISTACHE_USE_CONTENT_ENCODING_BROTLI=false, brotli" +PACKAGECONFIG[deflate] = "-DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=true, -DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=false, zlib" +PACKAGECONFIG[zstd] = "-DPISTACHE_USE_CONTENT_ENCODING_ZSTD=true, -DPISTACHE_USE_CONTENT_ENCODING_ZSTD=false, zstd" PACKAGECONFIG[examples] = "-DPISTACHE_BUILD_EXAMPLES=true, -DPISTACHE_BUILD_EXAMPLES=false" -PACKAGECONFIG[test] = "-DPISTACHE_BUILD_TESTS=true, -DPISTACHE_BUILD_TESTS=false" +PACKAGECONFIG[test] = "-DPISTACHE_BUILD_TESTS=true, -DPISTACHE_BUILD_TESTS=false, gtest curl" do_install:append () { - install -d ${D}${bindir} - rm -rf ${B}/examples/*.p/ - install -m 0755 ${B}/examples/run* ${D}${bindir}/ + if ${@bb.utils.contains("PACKAGECONFIG", "examples", "true", "false", d)}; then + install -d ${D}${bindir} + rm -rf ${B}/examples/*.p/ + install -m 0755 ${B}/examples/run* ${D}${bindir}/ + fi } PACKAGES += "${PN}-examples" -- cgit v1.2.3-54-g00ecf