libgtk2: replace dependency on X.org server by dependency on libraries
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 6 Jan 2013 11:29:29 +0000 (11:29 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 12 Jan 2013 21:44:51 +0000 (22:44 +0100)
libgtk2 is a X client library, so it doesn't make sense for it to
depend on the X.org server. Instead, it should depend on the X client
libraries.

This patch therefore replaces the dependency on the X server by a
dependency on libX11, libXext, libXrender and fontconfig, that are the
mandatory requirements to build the X backend of Gtk.

[Peter: don't add an empty line before gtk demo help text]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libgtk2/Config.in
package/libgtk2/libgtk2.mk

index efaf12f334cc649fbd3762c4206e65020efc9e1c..3e8cf753863798eff9d7f06edc2be300b9123cde 100644 (file)
@@ -8,6 +8,10 @@ config BR2_PACKAGE_LIBGTK2
        select BR2_PACKAGE_LIBGLIB2
        select BR2_PACKAGE_PANGO
        select BR2_PACKAGE_GDK_PIXBUF
+       select BR2_PACKAGE_FONTCONFIG if BR2_PACKAGE_XORG7
+       select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
+       select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
+       select BR2_PACKAGE_XLIB_LIBXRENDER if BR2_PACKAGE_XORG7
        depends on BR2_PACKAGE_XORG7||BR2_PACKAGE_DIRECTFB
        depends on BR2_USE_WCHAR # glib2
        depends on BR2_INSTALL_LIBSTDCPP # pango
index 9adb6b9f412ad21b739c900f99b725e3c7f5dd36..3dcecbfe02ce950c623094d45ffe33a0b2445de1 100644 (file)
@@ -82,7 +82,8 @@ ifeq ($(BR2_PACKAGE_XORG7),y)
                --x-includes=$(STAGING_DIR)/usr/include/X11 \
                --x-libraries=$(STAGING_DIR)/usr/lib \
                --with-gdktarget=x11
-       LIBGTK2_DEPENDENCIES += xlib_libXcomposite xserver_xorg-server
+       LIBGTK2_DEPENDENCIES += xlib_libXcomposite fontconfig xlib_libX11 \
+               xlib_libXext xlib_libXrender
 else
        LIBGTK2_CONF_OPT += --without-x
 endif