Patchwork gdk-pixbuf: build x11 support, if appropriate

login
register
mail settings
Submitter Simon Dawson
Date Aug. 9, 2012, 11 a.m.
Message ID <1344510009-18476-1-git-send-email-spdawson@gmail.com>
Download mbox | patch
Permalink /patch/176050/
State Accepted
Headers show

Comments

Simon Dawson - Aug. 9, 2012, 11 a.m.
From: Simon Dawson <spdawson@gmail.com>

If libX11 is available, then gdk-pixbuf can be built with X11 support.

Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
 package/gdk-pixbuf/gdk-pixbuf.mk |    5 +++++
 1 file changed, 5 insertions(+)
Thomas Petazzoni - Aug. 11, 2012, 6:23 p.m.
Le Thu,  9 Aug 2012 12:00:09 +0100,
spdawson@gmail.com a écrit :

> From: Simon Dawson <spdawson@gmail.com>
> 
> If libX11 is available, then gdk-pixbuf can be built with X11 support.
> 
> Signed-off-by: Simon Dawson <spdawson@gmail.com>

Applied to next.

Thomas

Patch

diff --git a/package/gdk-pixbuf/gdk-pixbuf.mk b/package/gdk-pixbuf/gdk-pixbuf.mk
index 751f499..0d9e206 100644
--- a/package/gdk-pixbuf/gdk-pixbuf.mk
+++ b/package/gdk-pixbuf/gdk-pixbuf.mk
@@ -34,6 +34,11 @@  else
 GDK_PIXBUF_DEPENDENCIES += tiff
 endif
 
+ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
+GDK_PIXBUF_CONF_OPT += --with-x11
+GDK_PIXBUF_DEPENDENCIES += xlib_libX11
+endif
+
 GDK_PIXBUF_DEPENDENCIES += \
 	$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) \
 	$(if $(BR2_ENABLE_LOCALE),,libiconv) \