summaryrefslogtreecommitdiff
path: root/media-gfx/fbida/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/fbida/files
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/fbida/files')
-rw-r--r--media-gfx/fbida/files/fbida-2.10-fprintf-format.patch11
-rw-r--r--media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch17
-rw-r--r--media-gfx/fbida/files/fbida-2.13-Autoconf.patch11
-rw-r--r--media-gfx/fbida/files/fbida-2.14-Autoconf.patch11
-rw-r--r--media-gfx/fbida/files/ida-desktop.patch17
5 files changed, 67 insertions, 0 deletions
diff --git a/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch b/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch
new file mode 100644
index 000000000000..d1c0b36dbfba
--- /dev/null
+++ b/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch
@@ -0,0 +1,11 @@
+--- a/wr/write-ps.c
++++ b/wr/write-ps.c
+@@ -458,7 +458,7 @@
+ fprintf(fp,"\n");
+ }
+ }
+- fprintf(fp,footer);
++ fprintf(fp, "%s", footer);
+ return 0;
+ }
+
diff --git a/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch b/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch
new file mode 100644
index 000000000000..1e21b8af2bd7
--- /dev/null
+++ b/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch
@@ -0,0 +1,17 @@
+--- a/rd/read-gif.c
++++ b/rd/read-gif.c
+@@ -14,6 +14,14 @@
+ }
+ #else
+ #define GIF5DATA(x)
++// v4.2 removed PrintGifError in favor of GifErrorString, but with a different
++// prototype than v5
++#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && (GIFLIB_MAJOR == 4) && (GIFLIB_MINOR == 2)
++static void PrintGifError()
++{
++ fprintf(stderr, "GIF library error: %s\n", GifErrorString());
++}
++#endif
+ #define PrintGifError(e) PrintGifError()
+ #define DGifOpenFileHandle(x,e) DGifOpenFileHandle(x)
+ #define DGifCloseFile(x,e) DGifCloseFile(x)
diff --git a/media-gfx/fbida/files/fbida-2.13-Autoconf.patch b/media-gfx/fbida/files/fbida-2.13-Autoconf.patch
new file mode 100644
index 000000000000..41c4e2f7d9bb
--- /dev/null
+++ b/media-gfx/fbida/files/fbida-2.13-Autoconf.patch
@@ -0,0 +1,11 @@
+--- a/mk/Autoconf.mk
++++ b/mk/Autoconf.mk
+@@ -162,7 +162,7 @@
+ @true
+
+ Make.config: $(srcdir)/GNUmakefile
+- @echo -e "$(make-config-q)" > $@
++ @printf "$(make-config-q)" > $@
+ @echo
+ @echo "Make.config written, edit if needed"
+ @echo
diff --git a/media-gfx/fbida/files/fbida-2.14-Autoconf.patch b/media-gfx/fbida/files/fbida-2.14-Autoconf.patch
new file mode 100644
index 000000000000..9aefdcd2fe61
--- /dev/null
+++ b/media-gfx/fbida/files/fbida-2.14-Autoconf.patch
@@ -0,0 +1,11 @@
+--- a/mk/Autoconf.mk
++++ b/mk/Autoconf.mk
+@@ -162,7 +162,7 @@
+ @true
+
+ Make.config: $(srcdir)/GNUmakefile
+- @/bin/echo -e "$(make-config-q)" > $@
++ @printf "$(make-config-q)" > $@
+ @echo
+ @echo "Make.config written, edit if needed"
+ @echo
diff --git a/media-gfx/fbida/files/ida-desktop.patch b/media-gfx/fbida/files/ida-desktop.patch
new file mode 100644
index 000000000000..eaac0ed69558
--- /dev/null
+++ b/media-gfx/fbida/files/ida-desktop.patch
@@ -0,0 +1,17 @@
+--- a/desktop/ida.desktop
++++ b/desktop/ida.desktop
+@@ -1,9 +1,10 @@
+ [Desktop Entry]
+ Type=Application
+-Encoding=UTF-8
+ Name=ida
+ GenericName=Image Viewer
++Comment=Image Viewer
+ Exec=ida %F
+-Terminal=no
+-Categories=Motif;Graphics;Viewer
+-MimeType=image/jpeg;image/tiff;image/png
++Terminal=false
++Categories=Motif;Graphics;Viewer;
++MimeType=image/jpeg;image/tiff;image/png;
++Icon=ida