From 87e333010ce13b63b9056aa70443bd14f3653e06 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Fri, 26 Dec 2008 15:36:12 +0000 Subject: libgtk: don't list cups/png/jpeg/tiff as hard dependencies GTK can be compiled without the above, so don't list them as hard dependencies, and simply adjust the build depending on what the user has enabled. --- package/libgtk2/Config.in | 4 ---- package/libgtk2/libgtk2.mk | 30 +++++++++++++++++++++++++++--- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/package/libgtk2/Config.in b/package/libgtk2/Config.in index 6871aef20..9dcf5d53a 100644 --- a/package/libgtk2/Config.in +++ b/package/libgtk2/Config.in @@ -2,13 +2,9 @@ config BR2_PACKAGE_LIBGTK2 bool "libgtk2" select BR2_PACKAGE_ATK select BR2_PACKAGE_CAIRO - select BR2_PACKAGE_CUPS if BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7||BR2_PACKAGE_TINYX - select BR2_PACKAGE_JPEG select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_LIBPNG select BR2_PACKAGE_PANGO select BR2_PACKAGE_PKGCONFIG - select BR2_PACKAGE_TIFF depends on BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7||BR2_PACKAGE_TINYX||BR2_PACKAGE_DIRECTFB help The GTK+ version 2 graphical user interface library diff --git a/package/libgtk2/libgtk2.mk b/package/libgtk2/libgtk2.mk index a521a687d..38926455f 100644 --- a/package/libgtk2/libgtk2.mk +++ b/package/libgtk2/libgtk2.mk @@ -79,10 +79,11 @@ LIBGTK2_CONF_OPT = --enable-shared \ $(LIBGTK2_CONF_OPT_X) \ $(LIBGTK2_CONF_OPT_DFB) +LIBGTK2_DEPENDENCIES = pkgconfig libglib2 cairo pango atk ifeq ($(BR2_PACKAGE_DIRECTFB),y) LIBGTK2_CONF_OPT += --with-gdktarget=directfb - LIBGTK2_DEPENDENCIES_EXTRA = directfb + LIBGTK2_DEPENDENCIES += directfb endif ifneq ($(BR2_PACKAGE_XSERVER_none),y) @@ -91,11 +92,34 @@ ifneq ($(BR2_PACKAGE_XSERVER_none),y) --x-includes=$(STAGING_DIR)/usr/include/X11 \ --x-libraries=$(STAGING_DIR)/usr/lib \ --with-gdktarget=x11 - LIBGTK2_DEPENDENCIES_EXTRA = xlib_libXcomposite $(XSERVER) cups + LIBGTK2_DEPENDENCIES += xlib_libXcomposite $(XSERVER) else LIBGTK2_CONF_OPT += --without-x endif -LIBGTK2_DEPENDENCIES = uclibc pkgconfig libpng jpeg tiff $(LIBGTK2_DEPENDENCIES_EXTRA) libglib2 cairo pango atk + +ifeq ($(BR2_PACKAGE_LIBPNG),y) +LIBGTK2_DEPENDENCIES += libpng +else +LIBGTK2_CONF_OPT += --without-libpng +endif + +ifeq ($(BR2_PACKAGE_JPEG),y) +LIBGTK2_DEPENDENCIES += jpeg +else +LIBGTK2_CONF_OPT += --without-libjpeg +endif + +ifeq ($(BR2_PACKAGE_TIFF),y) +LIBGTK2_DEPENDENCIES += tiff +else +LIBGTK2_CONF_OPT += --without-libtiff +endif + +ifeq ($(BR2_PACKAGE_CUPS),y) +LIBGTK2_DEPENDENCIES += cups +else +LIBGTK2_CONF_OPT += --disable-cups +endif $(eval $(call AUTOTARGETS,package,libgtk2)) -- cgit v1.2.3