[75207] trunk/dports/graphics/libicns
jmr at macports.org
jmr at macports.org
Mon Jan 17 19:17:00 PST 2011
Revision: 75207
http://trac.macports.org/changeset/75207
Author: jmr at macports.org
Date: 2011-01-17 19:16:45 -0800 (Mon, 17 Jan 2011)
Log Message:
-----------
libicns: fix build with libpng 1.4 (#28011)
Modified Paths:
--------------
trunk/dports/graphics/libicns/Portfile
Added Paths:
-----------
trunk/dports/graphics/libicns/files/
trunk/dports/graphics/libicns/files/libpng14.diff
Modified: trunk/dports/graphics/libicns/Portfile
===================================================================
--- trunk/dports/graphics/libicns/Portfile 2011-01-18 03:11:21 UTC (rev 75206)
+++ trunk/dports/graphics/libicns/Portfile 2011-01-18 03:16:45 UTC (rev 75207)
@@ -28,3 +28,5 @@
# Note we need a patched jasper >= 1.900.1_5
depends_lib port:zlib port:libpng port:jasper
+
+patchfiles libpng14.diff
Added: trunk/dports/graphics/libicns/files/libpng14.diff
===================================================================
--- trunk/dports/graphics/libicns/files/libpng14.diff (rev 0)
+++ trunk/dports/graphics/libicns/files/libpng14.diff 2011-01-18 03:16:45 UTC (rev 75207)
@@ -0,0 +1,20 @@
+--- icnsutils/png2icns.c.orig 2009-05-11 16:17:16.000000000 +1000
++++ icnsutils/png2icns.c 2011-01-18 14:13:41.000000000 +1100
+@@ -70,7 +70,7 @@ static int read_png(FILE *fp, png_bytepp
+ switch (color_type)
+ {
+ case PNG_COLOR_TYPE_GRAY:
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+
+ if (bit_depth == 16) {
+ png_set_strip_16(png_ptr);
+@@ -82,7 +82,7 @@ static int read_png(FILE *fp, png_bytepp
+ break;
+
+ case PNG_COLOR_TYPE_GRAY_ALPHA:
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+
+ if (bit_depth == 16) {
+ png_set_strip_16(png_ptr);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110117/fbd29774/attachment.html>
More information about the macports-changes
mailing list