slackbuilds_ponce/graphics/qiv/new_formats.diff
B. Watson e38cf9f1bc graphics/qiv: Add libopenraw support, fix README+sqf.
Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2020-01-03 02:06:15 -06:00

73 lines
1.9 KiB
Diff

diff -Naur qiv-2.3.2/Makefile qiv-2.3.2.patched/Makefile
--- qiv-2.3.2/Makefile 2017-11-03 14:27:27.000000000 -0400
+++ qiv-2.3.2.patched/Makefile 2019-12-31 14:06:51.304388148 -0500
@@ -24,7 +24,7 @@
# skipped.) It should reflect whatever is compiled into imlib.
# The latest version of imlib has removed imagemagick fallback support,
# so some extensions (XBM TGA) have been removed.
-EXTNS = GIF TIFF XPM PNG PPM PNM PGM PCX BMP EIM JPEG SVG WMF ICO
+EXTNS = GIF TIFF XPM PNG PPM PNM PGM PCX BMP EIM JPEG SVG WMF ICO WEBP XCF PSD ICNS TGA RAW
# Comment this line out if your system doesn't have getopt_long().
GETOPT_LONG = -DHAVE_GETOPT_LONG
diff -Naur qiv-2.3.2/main.h qiv-2.3.2.patched/main.h
--- qiv-2.3.2/main.h 2017-11-03 14:27:27.000000000 -0400
+++ qiv-2.3.2.patched/main.h 2019-12-31 14:27:29.455909124 -0500
@@ -199,6 +199,27 @@
#ifdef EXTN_SVG
".svg",
#endif
+#ifdef EXTN_WEBP
+ ".webp",
+#endif
+#ifdef EXTN_XCF
+ ".xcf",
+#endif
+#ifdef EXTN_PSD
+ ".psd",
+#endif
+#ifdef EXTN_ICNS
+ ".icns",
+#endif
+ /* BROKEN in slackware 14.2, using newer versions
+ of jasper and gdk-pixbuf2 built with jasper didn't help.
+ Disabled in Makefile. */
+#ifdef EXTN_JP2
+ ".jp2", ".jpc", ".jpx", ".j2k", ".jpf",
+#endif
+#ifdef EXTN_RAW
+ "dng", "cr2", "crw", "nef", "orf", "pef", "arw", "erf", "mrw", "raf",
+#endif
NULL
};
@@ -238,6 +259,29 @@
#ifdef EXTN_ICO
"MS Windows icon resource",
#endif
+#ifdef EXTN_WEBP
+ "RIFF (little-endian) data, Web/P image",
+#endif
+#ifdef EXTN_XCF
+ "GIMP XCF image data",
+#endif
+#ifdef EXTN_PSD
+ "Adobe Photoshop Image",
+#endif
+#ifdef EXTN_ICNS
+ "Mac OS X icon",
+#endif
+#ifdef EXTN_JP2
+ "JPEG 2000",
+#endif
+#ifdef EXTN_RAW
+ /* 20191231 bkw: some of these (dng, nef, erf, pef) show up as TIFF
+ with the file command, so we can't include them here. */
+ "Canon CIFF",
+ "Canon CR2",
+ "Olympus ORF",
+ "Minolta Dimage",
+#endif
NULL
};
#endif