Revision
132586
Author
devans@macports.org
Date
2015-02-05 06:43:55 -0800 (Thu, 05 Feb 2015)

Log Message

gtkimageview: fix build error due to gdk-pixbuf deprecations (#46767).

Modified Paths

Added Paths

Diff

Modified: trunk/dports/devel/gtkimageview/Portfile (132585 => 132586)


--- trunk/dports/devel/gtkimageview/Portfile	2015-02-05 14:32:41 UTC (rev 132585)
+++ trunk/dports/devel/gtkimageview/Portfile	2015-02-05 14:43:55 UTC (rev 132586)
@@ -31,9 +31,9 @@
 
 depends_lib     port:gtk2
 
+patchfiles      patch-configure.in.diff
+
 post-patch {
-    reinplace "s:-Werror:-Werror -Wno-error=unused-function:" \
-        ${worksrcpath}/configure.in
     reinplace "/SUBDIRS/s/tests//" \
         ${worksrcpath}/Makefile.am
 }
@@ -41,6 +41,8 @@
 use_autoreconf  yes
 autoreconf.args -fvi
 
+configure.args  --enable-compile-warnings=minimum
+
 #
 # the following variants are used
 # to identify this port's binary dependencies

Added: trunk/dports/devel/gtkimageview/files/patch-configure.in.diff (0 => 132586)


--- trunk/dports/devel/gtkimageview/files/patch-configure.in.diff	                        (rev 0)
+++ trunk/dports/devel/gtkimageview/files/patch-configure.in.diff	2015-02-05 14:43:55 UTC (rev 132586)
@@ -0,0 +1,20 @@
+--- configure.in.orig	2009-04-05 13:02:43.000000000 -0700
++++ configure.in	2015-02-05 06:34:32.000000000 -0800
+@@ -20,7 +20,7 @@
+ # Initialize GNOME environment
+ GNOME_COMMON_INIT
+ GNOME_COMPILE_WARNINGS(error)
+-DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
++DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+ AC_SUBST(DEPRECATED_FLAGS)
+ 
+ PKG_CHECK_MODULES(DEP,
+@@ -39,7 +39,7 @@
+ ######################################################################
+ ##### Twiddle CFLAGS #################################################
+ ######################################################################
+-CFLAGS="${CFLAGS} -Wall -Werror -std=c99 -Wmissing-prototypes"
++CFLAGS="${CFLAGS} -Wall -std=c99 -Wmissing-prototypes"
+ 
+ 
+ ######################################################################