package: add gdk-pixbuf package (splitted out from GTK+)
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 18 Oct 2010 13:21:52 +0000 (09:21 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 18 Oct 2010 13:22:10 +0000 (09:22 -0400)
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
package/Config.in
package/gdk-pixbuf/Config.in [new file with mode: 0644]
package/gdk-pixbuf/gdk-pixbuf.mk [new file with mode: 0644]
package/libgtk2/Config.in
package/libgtk2/libgtk2.mk

index 3b6cd19c31ac4499cf5ecc1837564227e6e231bd..3693603e195736e6eacf2c2421a6542370d5004f 100644 (file)
@@ -264,6 +264,7 @@ source "package/libart/Config.in"
 source "package/libdrm/Config.in"
 source "package/libgail/Config.in"
 source "package/libglade/Config.in"
+source "package/gdk-pixbuf/Config.in"
 source "package/libgtk2/Config.in"
 source "package/libpng/Config.in"
 source "package/librsvg/Config.in"
diff --git a/package/gdk-pixbuf/Config.in b/package/gdk-pixbuf/Config.in
new file mode 100644 (file)
index 0000000..384f076
--- /dev/null
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_GDK_PIXBUF
+       bool "gdk-pixbuf"
+       depends on BR2_USE_WCHAR # glib2
+       select BR2_PACKAGE_LIBGLIB2
+       select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
+       select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT
+       help
+
+         Gdk-Pixbuf is an image loader and scaler. It uses GObject
+         and the GLib, to integrate well with GNOME applications.
+
+         http://www.gtk.org/
diff --git a/package/gdk-pixbuf/gdk-pixbuf.mk b/package/gdk-pixbuf/gdk-pixbuf.mk
new file mode 100644 (file)
index 0000000..4c3e108
--- /dev/null
@@ -0,0 +1,51 @@
+#############################################################
+#
+# gdk-pixbuf
+#
+#############################################################
+
+GDK_PIXBUF_MAJOR_VERSION = 2.22
+GDK_PIXBUF_VERSION = $(GDK_PIXBUF_MAJOR_VERSION).0
+GDK_PIXBUF_SOURCE = gdk-pixbuf-$(GDK_PIXBUF_VERSION).tar.bz2
+GDK_PIXBUF_SITE = http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/$(GDK_PIXBUF_MAJOR_VERSION)
+GDK_PIXBUF_INSTALL_STAGING = YES
+
+GDK_PIXBUF_CONF_ENV = \
+       ac_cv_path_GLIB_GENMARSHAL=$(LIBGLIB2_HOST_BINARY) \
+       gio_can_sniff=no
+
+GDK_PIXBUF_CONF_OPT = --disable-glibtest
+
+ifneq ($(BR2_LARGEFILE),y)
+GDK_PIXBUF_CONF_OPT += --disable-largefile
+endif
+
+ifneq ($(BR2_PACKAGE_LIBPNG),y)
+GDK_PIXBUF_CONF_OPT += --without-libpng
+else
+GDK_PIXBUF_DEPENDENCIES += libpng
+endif
+
+ifneq ($(BR2_PACKAGE_JPEG),y)
+GDK_PIXBUF_CONF_OPT += --without-libjpeg
+else
+GDK_PIXBUF_DEPENDENCIES += jpeg
+endif
+
+ifneq ($(BR2_PACKAGE_TIFF),y)
+GDK_PIXBUF_CONF_OPT += --without-libtiff
+else
+GDK_PIXBUF_DEPENDENCIES += tiff
+endif
+
+GDK_PIXBUF_DEPENDENCIES += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) host-pkg-config libglib2 libiconv
+
+$(eval $(call AUTOTARGETS,package,gdk-pixbuf))
+
+HOST_GDK_PIXBUF_CONF_OPT = \
+       --without-libjpeg \
+       --without-libtiff
+
+HOST_GDK_PIXBUF_DEPENDENCIES = host-libpng
+
+$(eval $(call AUTOTARGETS,package,gdk-pixbuf,host))
index bc4ca9d768ed3a566329b342adaf671e00f9fb6a..bb01befabf556d772835a8b8ac828478f0f725fc 100644 (file)
@@ -6,6 +6,7 @@ config BR2_PACKAGE_LIBGTK2
        select BR2_PACKAGE_CAIRO_PDF
        select BR2_PACKAGE_LIBGLIB2
        select BR2_PACKAGE_PANGO
+       select BR2_PACKAGE_GDK_PIXBUF
        # libgtk2 on DirectFB is deprecated because it is no longer
        # supported in recent versions of Gtk. We will remove support
        # for Gtk over DirectFB in the next Buildroot version unless
index d669622a8025a5eae56ad1fe8bd54a0b23d76d03..d6f23248bf98d06faacac02aec8146ab6cc551a9 100644 (file)
@@ -72,7 +72,7 @@ LIBGTK2_CONF_OPT = --enable-shared \
                --enable-explicit-deps=no \
                --disable-debug
 
-LIBGTK2_DEPENDENCIES = host-pkg-config host-libgtk2 libglib2 cairo pango atk
+LIBGTK2_DEPENDENCIES = host-pkg-config host-libgtk2 libglib2 cairo pango atk gdk-pixbuf
 
 ifeq ($(BR2_PACKAGE_DIRECTFB),y)
        LIBGTK2_CONF_OPT += --with-gdktarget=directfb
@@ -133,7 +133,7 @@ LIBGTK2_POST_INSTALL_TARGET_HOOKS += LIBGTK_POST_INSTALL_TWEAKS
 # gtk-update-icon-cache, which are the host tools needed to build Gtk
 # for the target.
 
-HOST_LIBGTK2_DEPENDENCIES = host-libglib2 host-libpng
+HOST_LIBGTK2_DEPENDENCIES = host-libglib2 host-libpng host-gdk-pixbuf
 HOST_LIBGTK2_AUTORECONF = YES
 HOST_LIBGTK2_CONF_OPT = \
                --disable-static \
@@ -151,12 +151,10 @@ endef
 HOST_LIBGTK2_POST_PATCH_HOOKS += HOST_LIBGTK2_PATCH_REDUCE_DEPENDENCIES_HOOK
 
 define HOST_LIBGTK2_BUILD_CMDS
- $(HOST_MAKE_ENV) make -C $(@D)/gdk-pixbuf
  $(HOST_MAKE_ENV) make -C $(@D)/gtk gtk-update-icon-cache
 endef
 
 define HOST_LIBGTK2_INSTALL_CMDS
- $(HOST_MAKE_ENV) make -C $(@D)/gdk-pixbuf install
  cp $(@D)/gtk/gtk-update-icon-cache $(HOST_DIR)/usr/bin
 endef