summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Mrozowski <reavertm@gentoo.org>2016-01-13 02:18:05 +0100
committerMaciej Mrozowski <reavertm@gentoo.org>2016-01-13 02:18:05 +0100
commitc775cf1990878ca40eea47c14feabf8bc683c3fc (patch)
treee1d22e4b5d5c4021f186c30d52d2acdf8964f8be /dev-games/openscenegraph/files
parentvirtualx.eclass: Enable RANDR with Xvfb (bug #571420, bug #567720) (diff)
downloadgentoo-c775cf1990878ca40eea47c14feabf8bc683c3fc.tar.gz
gentoo-c775cf1990878ca40eea47c14feabf8bc683c3fc.tar.bz2
gentoo-c775cf1990878ca40eea47c14feabf8bc683c3fc.zip
dev-games/openscenegraph: add patch to support giflib5, bug 571656
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-games/openscenegraph/files')
-rw-r--r--dev-games/openscenegraph/files/openscenegraph-3.2.1-giflib5.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-games/openscenegraph/files/openscenegraph-3.2.1-giflib5.patch b/dev-games/openscenegraph/files/openscenegraph-3.2.1-giflib5.patch
new file mode 100644
index 000000000000..bd604c3c19c1
--- /dev/null
+++ b/dev-games/openscenegraph/files/openscenegraph-3.2.1-giflib5.patch
@@ -0,0 +1,24 @@
+From: Alberto Luaces <aluaces@udc.es>
+Date: Sat, 19 Dec 2015 04:52:52 +0100
+Subject: Compatibility with giflib5.
+
+---
+ OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+Index: git2/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp
+===================================================================
+--- git2.orig/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp
++++ git2/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp
+@@ -561,7 +561,11 @@ GifImageStream** obj)
+ *width_ret = giffile->SWidth;
+ *height_ret = giffile->SHeight;
+ *numComponents_ret = 4;
++#if (GIFLIB_MAJOR >= 5&& !(GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 0))
++ DGifCloseFile(giffile, &Error);
++#else
+ DGifCloseFile(giffile);
++#endif
+ return buffer;
+ }
+