[126009] trunk/dports/devel/t4k_common
ryandesign at macports.org
ryandesign at macports.org
Wed Oct 1 15:22:43 PDT 2014
Revision: 126009
https://trac.macports.org/changeset/126009
Author: ryandesign at macports.org
Date: 2014-10-01 15:22:43 -0700 (Wed, 01 Oct 2014)
Log Message:
-----------
t4k_common: fix build with libpng 1.5+ (#36198; maintainer timeout)
Modified Paths:
--------------
trunk/dports/devel/t4k_common/Portfile
Added Paths:
-----------
trunk/dports/devel/t4k_common/files/patch-libpng-1.5.diff
Modified: trunk/dports/devel/t4k_common/Portfile
===================================================================
--- trunk/dports/devel/t4k_common/Portfile 2014-10-01 21:58:42 UTC (rev 126008)
+++ trunk/dports/devel/t4k_common/Portfile 2014-10-01 22:22:43 UTC (rev 126009)
@@ -35,6 +35,7 @@
port:gettext
patchfiles patch-linewrap_fix.diff
+patchfiles-append patch-libpng-1.5.diff
configure.args --disable-sdltest
Added: trunk/dports/devel/t4k_common/files/patch-libpng-1.5.diff
===================================================================
--- trunk/dports/devel/t4k_common/files/patch-libpng-1.5.diff (rev 0)
+++ trunk/dports/devel/t4k_common/files/patch-libpng-1.5.diff 2014-10-01 22:22:43 UTC (rev 126009)
@@ -0,0 +1,18 @@
+https://lists.fedoraproject.org/pipermail/scm-commits/2012-January/724580.html
+--- src/t4k_loaders.c.orig 2011-04-07 21:46:07.000000000 -0500
++++ src/t4k_loaders.c 2014-10-01 17:21:23.000000000 -0500
+@@ -1028,12 +1028,8 @@
+ {
+ png_init_io(png_ptr, fi);
+
+- info_ptr->width = surf->w;
+- info_ptr->height = surf->h;
+- info_ptr->bit_depth = 8;
+- info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
+- info_ptr->interlace_type = 1;
+- info_ptr->valid = 0; /* will be updated by various png_set_FOO() functions */
++ png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8, PNG_COLOR_TYPE_RGB_ALPHA, 1, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
++ png_set_valid(png_ptr, info_ptr, 0);
+
+ png_set_sRGB_gAMA_and_cHRM(png_ptr, info_ptr,
+ PNG_sRGB_INTENT_PERCEPTUAL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141001/7a3bad25/attachment.html>
More information about the macports-changes
mailing list