Package-Manager: portage-2.2.26
--- /dev/null
+--- gracer-0.1.5.orig/common/gr_texture.c
++++ gracer-0.1.5/common/gr_texture.c
+@@ -274,7 +274,11 @@
+ int index;
+ int width, height;
+
++#if (GIFLIB_MAJOR >= 5&& !(GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 0))
++ file = DGifOpenFileName (filename, &i);
++#else
+ file = DGifOpenFileName (filename);
++#endif
+ if (!file)
+ return -1;
+
--- /dev/null
+--- gracer-0.1.5.orig/src/glbind.c
++++ gracer-0.1.5/src/glbind.c
+@@ -142,7 +142,7 @@
+ return NULL;
+
+ entry = Tcl_FindHashEntry (&cache_hash, key);
+- if (&entry)
++ if (!entry)
+ return NULL;
+
+ return Tcl_GetHashValue (entry);
+--- gracer-0.1.5.orig/src/joystick.c
++++ gracer-0.1.5/src/joystick.c
+@@ -20,6 +20,7 @@
+ */
+
+ #include <unistd.h>
++#include <string.h>
+ #include <errno.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
"${FILESDIR}/${P}"-gcc41.patch \
"${FILESDIR}"/${P}-as-needed.patch \
"${FILESDIR}"/${P}-libpng14.patch \
- "${FILESDIR}"/${P}-png15.patch
+ "${FILESDIR}"/${P}-png15.patch \
+ "${FILESDIR}"/${P}-giflib.patch \
+ "${FILESDIR}"/${P}-warnings.patch
}
src_configure() {