From 018fcafb54a838353c14a05320a612f4ab9333d8 Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Sun, 15 Mar 2020 10:24:56 -0700 Subject: [PATCH] package/gupnp: add optional dependency for gobject-introspection If gobject-introspection is selected, explicitly set --enable-introspection in the configure options and add a dependency for gobject-introspection. Signed-off-by: Adam Duskett Signed-off-by: Yann E. MORIN --- package/gupnp/gupnp.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/gupnp/gupnp.mk b/package/gupnp/gupnp.mk index 27486b09fa..75bbfa8d1d 100644 --- a/package/gupnp/gupnp.mk +++ b/package/gupnp/gupnp.mk @@ -12,6 +12,12 @@ GUPNP_LICENSE = LGPL-2.0+ GUPNP_LICENSE_FILES = COPYING GUPNP_INSTALL_STAGING = YES GUPNP_DEPENDENCIES = host-pkgconf libglib2 libxml2 gssdp util-linux -GUPNP_CONF_OPTS = --disable-introspection + +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) +GUPNP_CONF_OPTS += --enable-introspection +GUPNP_DEPENDENCIES += gobject-introspection +else +GUPNP_CONF_OPTS += --disable-introspection +endif $(eval $(autotools-package)) -- 2.30.2