[75192] trunk/dports/graphics/povray
jmr at macports.org
jmr at macports.org
Mon Jan 17 08:40:11 PST 2011
Revision: 75192
http://trac.macports.org/changeset/75192
Author: jmr at macports.org
Date: 2011-01-17 08:39:59 -0800 (Mon, 17 Jan 2011)
Log Message:
-----------
povray: fix build with libpng 1.4 (#28003)
Modified Paths:
--------------
trunk/dports/graphics/povray/Portfile
Added Paths:
-----------
trunk/dports/graphics/povray/files/povray-3.6.1-libpng14.patch
Modified: trunk/dports/graphics/povray/Portfile
===================================================================
--- trunk/dports/graphics/povray/Portfile 2011-01-17 14:36:48 UTC (rev 75191)
+++ trunk/dports/graphics/povray/Portfile 2011-01-17 16:39:59 UTC (rev 75192)
@@ -30,7 +30,8 @@
port:zlib \
port:tiff
-patchfiles patch-configure patch-source_png_pov.cpp
+patchfiles patch-configure patch-source_png_pov.cpp \
+ povray-3.6.1-libpng14.patch
# uses its own cflags in addition to the ones we pass anyway
configure.optflags
Added: trunk/dports/graphics/povray/files/povray-3.6.1-libpng14.patch
===================================================================
--- trunk/dports/graphics/povray/files/povray-3.6.1-libpng14.patch (rev 0)
+++ trunk/dports/graphics/povray/files/povray-3.6.1-libpng14.patch 2011-01-17 16:39:59 UTC (rev 75192)
@@ -0,0 +1,20 @@
+--- source/png_pov.cpp
++++ source/png_pov.cpp
+@@ -1428,7 +1428,7 @@
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
+@@ -1461,7 +1461,7 @@
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110117/5342cc11/attachment.html>
More information about the macports-changes
mailing list