Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28597
Modified Files: tk-pm.patch Log Message: add patch to fix for libpng16 Index: tk-pm.patch =================================================================== RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods/tk-pm.patch,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- tk-pm.patch 18 Jul 2013 16:41:37 -0000 1.3 +++ tk-pm.patch 18 Jul 2013 20:04:40 -0000 1.4 @@ -124,3 +124,55 @@ die "exec warp $!"; } else { die "fork $!"; +--- Tk-804.031/PNG/imgPNG.c.orig 2013-07-18 15:54:04.000000000 -0400 ++++ Tk-804.031/PNG/imgPNG.c 2013-07-18 15:55:39.000000000 -0400 +@@ -490,6 +490,24 @@ + png_set_expand(png_ptr); + } + ++#if defined(PNG_sRGB_SUPPORTED) || defined(PNG_gAMA_SUPPORTED) ++#if defined(PNG_sRGB_SUPPORTED) ++ if (png_get_sRGB(png_ptr, info_ptr, &intent)) { ++ png_set_sRGB(png_ptr, info_ptr, intent); ++ } else { ++#endif ++#if defined(PNG_gAMA_SUPPORTED) ++ double gamma; ++ if (!png_get_gAMA(png_ptr, info_ptr, &gamma)) { ++ gamma = 0.45455; ++ } ++ png_set_gamma(png_ptr, 1.0, gamma); ++#endif ++#if defined(PNG_sRGB_SUPPORTED) ++ } ++#endif ++#endif ++ + png_read_update_info(png_ptr,info_ptr); + block.pixelSize = png_get_channels(png_ptr, info_ptr); + block.pitch = png_get_rowbytes(png_ptr, info_ptr); +@@ -511,24 +529,6 @@ + block.offset[3] = 0; + } + +-#if defined(PNG_sRGB_SUPPORTED) || defined(PNG_gAMA_SUPPORTED) +-#if defined(PNG_sRGB_SUPPORTED) +- if (png_get_sRGB(png_ptr, info_ptr, &intent)) { +- png_set_sRGB(png_ptr, info_ptr, intent); +- } else { +-#endif +-#if defined(PNG_gAMA_SUPPORTED) +- double gamma; +- if (!png_get_gAMA(png_ptr, info_ptr, &gamma)) { +- gamma = 0.45455; +- } +- png_set_gamma(png_ptr, 1.0, gamma); +-#endif +-#if defined(PNG_sRGB_SUPPORTED) +- } +-#endif +-#endif +- + png_data= (char **) ckalloc(sizeof(char *) * info_height + + info_height * block.pitch); + ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs