From 95b1c684e393c089c43d66ce8a162567bb53f2d3 Mon Sep 17 00:00:00 2001 From: Koop Mast Date: Sat, 15 May 2010 16:05:44 +0000 Subject: Gtk 2.20.x got a bug fix because libpng 1.2 defines png_guint_32 as unsigned long. However png 1.4.x fixed the problem with Submitted by: nox@ --- x11-toolkits/gtk20/Makefile | 2 +- x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-png.c | 26 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-png.c (limited to 'x11-toolkits/gtk20') diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index 5c3b740e994a..b498cb7ea57e 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -8,7 +8,7 @@ PORTNAME= gtk PORTVERSION= 2.20.1 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/,} \ ftp://ftp.gtk.org/pub/gtk/%SUBDIR%/ \ diff --git a/x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-png.c b/x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-png.c new file mode 100644 index 000000000000..cca139d6b99a --- /dev/null +++ b/x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-png.c @@ -0,0 +1,26 @@ +--- gdk-pixbuf/io-png.c.orig 2010-05-02 05:14:27.000000000 +0200 ++++ gdk-pixbuf/io-png.c 2010-05-15 17:30:35.000000000 +0200 +@@ -261,7 +261,11 @@ gdk_pixbuf__png_image_load (FILE *f, GEr + gchar *icc_profile_base64; + const gchar *icc_profile_title; + const gchar *icc_profile; ++#if defined(INT_MAX) && (INT_MAX > 0x7ffffffeL) ++ guint icc_profile_size; ++#else + gulong icc_profile_size; ++#endif + guint32 retval; + gint compression_type; + +@@ -607,7 +611,11 @@ png_info_callback (png_structp png_rea + gchar *icc_profile_base64; + const gchar *icc_profile_title; + const gchar *icc_profile; ++#if defined(INT_MAX) && (INT_MAX > 0x7ffffffeL) ++ guint icc_profile_size; ++#else + gulong icc_profile_size; ++#endif + guint32 retval; + gint compression_type; + -- cgit v1.2.3