From: Adam Duskett Date: Sun, 15 Mar 2020 17:24:56 +0000 (-0700) Subject: package/gupnp: add optional dependency for gobject-introspection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=018fcafb54a838353c14a05320a612f4ab9333d8;p=buildroot.git 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 --- 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))