[76089] trunk/dports/graphics/synfig
ryandesign at macports.org
ryandesign at macports.org
Thu Feb 17 22:25:51 PST 2011
Revision: 76089
http://trac.macports.org/changeset/76089
Author: ryandesign at macports.org
Date: 2011-02-17 22:25:48 -0800 (Thu, 17 Feb 2011)
Log Message:
-----------
synfig: fix build failure with libpng 1.4; see #28440
Modified Paths:
--------------
trunk/dports/graphics/synfig/Portfile
Added Paths:
-----------
trunk/dports/graphics/synfig/files/
trunk/dports/graphics/synfig/files/patch-src-modules-mod_png-mptr_png.cpp.diff
Modified: trunk/dports/graphics/synfig/Portfile
===================================================================
--- trunk/dports/graphics/synfig/Portfile 2011-02-18 05:59:53 UTC (rev 76088)
+++ trunk/dports/graphics/synfig/Portfile 2011-02-18 06:25:48 UTC (rev 76089)
@@ -41,6 +41,8 @@
port:libxmlxx2 \
port:openexr
+patchfiles patch-src-modules-mod_png-mptr_png.cpp.diff
+
post-destroot {
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d ${docdir}
Added: trunk/dports/graphics/synfig/files/patch-src-modules-mod_png-mptr_png.cpp.diff
===================================================================
--- trunk/dports/graphics/synfig/files/patch-src-modules-mod_png-mptr_png.cpp.diff (rev 0)
+++ trunk/dports/graphics/synfig/files/patch-src-modules-mod_png-mptr_png.cpp.diff 2011-02-18 06:25:48 UTC (rev 76089)
@@ -0,0 +1,11 @@
+--- src/modules/mod_png/mptr_png.cpp.orig 2010-11-13 07:51:52.000000000 -0600
++++ src/modules/mod_png/mptr_png.cpp 2011-02-18 00:08:50.000000000 -0600
+@@ -309,7 +309,7 @@
+ float b=gamma().b_U8_to_F32((unsigned char)png_ptr->palette[row_pointers[y][x]].blue);
+ float a=1.0;
+ if(info_ptr->valid & PNG_INFO_tRNS)
+- a = (float)(unsigned char)png_ptr->trans[row_pointers[y][x]]*(1.0/255.0);
++ a = (float)(unsigned char)png_ptr->trans_alpha[row_pointers[y][x]]*(1.0/255.0);
+ surface_buffer[y][x]=Color(
+ r,
+ g,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110217/ef4b099d/attachment.html>
More information about the macports-changes
mailing list