pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/GraphicsMagick Fix build with recent png. Fr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/af95a0efbec8
branches:  trunk
changeset: 520193:af95a0efbec8
user:      markd <markd%pkgsrc.org@localhost>
date:      Tue Oct 17 09:26:24 2006 +0000

description:
Fix build with recent png.  From GraphicsMagick CVS.

diffstat:

 graphics/GraphicsMagick/distinfo         |   3 ++-
 graphics/GraphicsMagick/patches/patch-aa |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 66445069208f -r af95a0efbec8 graphics/GraphicsMagick/distinfo
--- a/graphics/GraphicsMagick/distinfo  Tue Oct 17 08:42:03 2006 +0000
+++ b/graphics/GraphicsMagick/distinfo  Tue Oct 17 09:26:24 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/07/20 17:23:15 minskim Exp $
+$NetBSD: distinfo,v 1.2 2006/10/17 09:26:24 markd Exp $
 
 SHA1 (GraphicsMagick-1.1.7.tar.bz2) = b2d3878be34e6d0a8a19e991b7f99da30b02df7e
 RMD160 (GraphicsMagick-1.1.7.tar.bz2) = 9193ab3b109df6ce4b80cb2c1602c86ca36e3043
 Size (GraphicsMagick-1.1.7.tar.bz2) = 4957394 bytes
+SHA1 (patch-aa) = fb3f541ef1cbbe3e70283b83986cfd720eb41b5d
diff -r 66445069208f -r af95a0efbec8 graphics/GraphicsMagick/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/GraphicsMagick/patches/patch-aa  Tue Oct 17 09:26:24 2006 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1 2006/10/17 09:26:24 markd Exp $
+
+--- coders/png.c.orig  2006-10-15 15:09:43.000000000 +1300
++++ coders/png.c
+@@ -1709,7 +1709,7 @@ static Image *ReadOnePNGImage(MngInfo *m
+ #if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) \
+ && (PNG_LIBPNG_VER >= 10200)
+   /* Disable thread-unsafe features of pnggccrd */
+-  if (png_access_version() >= 10200)
++  if (png_access_version_number() >= 10200)
+   {
+     png_uint_32 mmx_disable_mask=0;
+     png_uint_32 asm_flags;
+@@ -1718,8 +1718,8 @@ static Image *ReadOnePNGImage(MngInfo *m
+                         | PNG_ASM_FLAG_MMX_READ_FILTER_SUB   \
+                         | PNG_ASM_FLAG_MMX_READ_FILTER_AVG   \
+                         | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );
+-    asm_flags=png_get_asm_flags(png_ptr);
+-    png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);
++    asm_flags=png_get_asm_flags(ping);
++    png_set_asm_flags(ping, asm_flags & ~mmx_disable_mask);
+   }
+ #endif
+ 



Home | Main Index | Thread Index | Old Index