diff mbox series

[meta-oe] libnice: add graphviz-native dependency

Message ID 20230815145945.1564940-1-f_l_k@t-online.de
State Under Review
Headers show
Series [meta-oe] libnice: add graphviz-native dependency | expand

Commit Message

Markus Volk Aug. 15, 2023, 2:59 p.m. UTC
If building the api-documentation libnice requests dot or the build fails with:

| ../libnice-0.1.21/docs/reference/libnice/meson.build:70:0: ERROR: Program 'dot' not found or not executable

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta-oe/recipes-support/farsight/libnice_0.1.21.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/farsight/libnice_0.1.21.bb b/meta-oe/recipes-support/farsight/libnice_0.1.21.bb
index f319b994bd..4a5227f206 100644
--- a/meta-oe/recipes-support/farsight/libnice_0.1.21.bb
+++ b/meta-oe/recipes-support/farsight/libnice_0.1.21.bb
@@ -12,7 +12,7 @@  SRC_URI = "http://nice.freedesktop.org/releases/libnice-${PV}.tar.gz \
            file://0001-agent-meson-Replace-filename-with-basename.patch"
 SRC_URI[sha256sum] = "72e73a2acf20f59093e21d5601606e405873503eb35f346fa621de23e99b3b39"
 
-DEPENDS = "glib-2.0 gnutls"
+DEPENDS = "glib-2.0 gnutls ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'graphviz-native', '', d)}"
 
 PACKAGECONFIG[gupnp] = "-Dgupnp=enabled,-Dgupnp=disabled,gupnp"
 PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0"