package/libfribidi: add optional dependency on libglib2
authorFabio Porcedda <fabio.porcedda@gmail.com>
Fri, 27 Feb 2015 09:19:24 +0000 (10:19 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 1 Mar 2015 21:02:31 +0000 (22:02 +0100)
Fix the following message when libglib2 is enabled but not already
built:
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
No package 'glib-2.0' found

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libfribidi/libfribidi.mk

index 20a5df097c73f144f362cd0083d2677001dd6f0d..12e766408d8f09b72e5f85697dd881ccc9bc23e0 100644 (file)
@@ -15,4 +15,10 @@ LIBFRIBIDI_INSTALL_STAGING = YES
 LIBFRIBIDI_AUTORECONF = YES
 LIBFRIBIDI_DEPENDENCIES = host-pkgconf
 
+ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
+ LIBFRIBIDI_DEPENDENCIES += libglib2
+else
+ LIBFRIBIDI_CONF_OPTS += --with-glib=no
+endif
+
 $(eval $(autotools-package))