new_formats.diff 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. diff -Naur qiv-2.3.2/Makefile qiv-2.3.2.patched/Makefile
  2. --- qiv-2.3.2/Makefile 2017-11-03 14:27:27.000000000 -0400
  3. +++ qiv-2.3.2.patched/Makefile 2019-12-31 14:06:51.304388148 -0500
  4. @@ -24,7 +24,7 @@
  5. # skipped.) It should reflect whatever is compiled into imlib.
  6. # The latest version of imlib has removed imagemagick fallback support,
  7. # so some extensions (XBM TGA) have been removed.
  8. -EXTNS = GIF TIFF XPM PNG PPM PNM PGM PCX BMP EIM JPEG SVG WMF ICO
  9. +EXTNS = GIF TIFF XPM PNG PPM PNM PGM PCX BMP EIM JPEG SVG WMF ICO WEBP XCF PSD ICNS TGA RAW
  10. # Comment this line out if your system doesn't have getopt_long().
  11. GETOPT_LONG = -DHAVE_GETOPT_LONG
  12. diff -Naur qiv-2.3.2/main.h qiv-2.3.2.patched/main.h
  13. --- qiv-2.3.2/main.h 2017-11-03 14:27:27.000000000 -0400
  14. +++ qiv-2.3.2.patched/main.h 2019-12-31 14:27:29.455909124 -0500
  15. @@ -199,6 +199,27 @@
  16. #ifdef EXTN_SVG
  17. ".svg",
  18. #endif
  19. +#ifdef EXTN_WEBP
  20. + ".webp",
  21. +#endif
  22. +#ifdef EXTN_XCF
  23. + ".xcf",
  24. +#endif
  25. +#ifdef EXTN_PSD
  26. + ".psd",
  27. +#endif
  28. +#ifdef EXTN_ICNS
  29. + ".icns",
  30. +#endif
  31. + /* BROKEN in slackware 14.2, using newer versions
  32. + of jasper and gdk-pixbuf2 built with jasper didn't help.
  33. + Disabled in Makefile. */
  34. +#ifdef EXTN_JP2
  35. + ".jp2", ".jpc", ".jpx", ".j2k", ".jpf",
  36. +#endif
  37. +#ifdef EXTN_RAW
  38. + "dng", "cr2", "crw", "nef", "orf", "pef", "arw", "erf", "mrw", "raf",
  39. +#endif
  40. NULL
  41. };
  42. @@ -238,6 +259,29 @@
  43. #ifdef EXTN_ICO
  44. "MS Windows icon resource",
  45. #endif
  46. +#ifdef EXTN_WEBP
  47. + "RIFF (little-endian) data, Web/P image",
  48. +#endif
  49. +#ifdef EXTN_XCF
  50. + "GIMP XCF image data",
  51. +#endif
  52. +#ifdef EXTN_PSD
  53. + "Adobe Photoshop Image",
  54. +#endif
  55. +#ifdef EXTN_ICNS
  56. + "Mac OS X icon",
  57. +#endif
  58. +#ifdef EXTN_JP2
  59. + "JPEG 2000",
  60. +#endif
  61. +#ifdef EXTN_RAW
  62. + /* 20191231 bkw: some of these (dng, nef, erf, pef) show up as TIFF
  63. + with the file command, so we can't include them here. */
  64. + "Canon CIFF",
  65. + "Canon CR2",
  66. + "Olympus ORF",
  67. + "Minolta Dimage",
  68. +#endif
  69. NULL
  70. };
  71. #endif