OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../graphicsmagick/libpng.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. ## http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphicsmagick/files/graphicsmagick-libpng.patch
  17. ## This patch is provided by Gentoo
  18. --- ./coders/png.c.orig 2004-11-11 01:14:54.000000000 +0200
  19. +++ ./coders/png.c 2006-11-27 15:00:32.000000000 +0200
  20. @@ -1709,7 +1709,7 @@
  21. #if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) \
  22. && (PNG_LIBPNG_VER >= 10200)
  23. /* Disable thread-unsafe features of pnggccrd */
  24. - if (png_access_version() >= 10200)
  25. + if (png_access_version_number() >= 10200)
  26. {
  27. png_uint_32 mmx_disable_mask=0;
  28. png_uint_32 asm_flags;
  29. @@ -1718,8 +1718,8 @@
  30. | PNG_ASM_FLAG_MMX_READ_FILTER_SUB \
  31. | PNG_ASM_FLAG_MMX_READ_FILTER_AVG \
  32. | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );
  33. - asm_flags=png_get_asm_flags(png_ptr);
  34. - png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);
  35. + asm_flags=png_get_asm_flags(ping);
  36. + png_set_asm_flags(ping, asm_flags & ~mmx_disable_mask);
  37. }
  38. #endif