summaryrefslogtreecommitdiff
path: root/graphics/osg
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-05-23 13:45:07 +0000
committerobache <obache@pkgsrc.org>2014-05-23 13:45:07 +0000
commit74819678548f39ff27c7ab74c23282efce677a7b (patch)
treecbd3a9e534f0756ce84a741f71078736dcba335f /graphics/osg
parent066be830d439473bee895a6b6e7f788de3e768bc (diff)
downloadpkgsrc-74819678548f39ff27c7ab74c23282efce677a7b.tar.gz
fix for giflib-5.1 API change.
Diffstat (limited to 'graphics/osg')
-rw-r--r--graphics/osg/distinfo4
-rw-r--r--graphics/osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp14
2 files changed, 15 insertions, 3 deletions
diff --git a/graphics/osg/distinfo b/graphics/osg/distinfo
index 0bc827999ea..ffca769cee7 100644
--- a/graphics/osg/distinfo
+++ b/graphics/osg/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2013/09/19 08:07:05 obache Exp $
+$NetBSD: distinfo,v 1.8 2014/05/23 13:45:07 obache Exp $
SHA1 (OpenSceneGraph-3.0.1.zip) = 13c7e39f6d62047ad944d8d28a0f0eb60384ce33
RMD160 (OpenSceneGraph-3.0.1.zip) = 54b315c318b7ade2bcc65703cea5f41377e93a71
@@ -12,5 +12,5 @@ SHA1 (patch-applications_present3D_Cluster.cpp) = 7b9dd81805322eeb1a4a26a21faa0a
SHA1 (patch-include_OpenThreads_Atomic) = 663f76cf4ffe5f52f24a1c68701c35bb8763063a
SHA1 (patch-src_OpenThreads_common_Atomic.cpp) = 34687f53ba01832b7ea3e0b124a951efc0afe343
SHA1 (patch-src_osgPlugins_ffmpeg_FFmpegHeaders.hpp) = 1552f78a0ed17fcdaed9d87fe3d1f8220712f403
-SHA1 (patch-src_osgPlugins_gif_ReaderWriterGIF.cpp) = 5bf99f6a688225e018b12e3708dae775158d03a3
+SHA1 (patch-src_osgPlugins_gif_ReaderWriterGIF.cpp) = f876bbdf2fe282c6435118adbabb0823f4550fde
SHA1 (patch-src_osgViewer_DarwinUtils.mm) = 4ab021cb797cb6959bee4ba33caf257b2a6cedf3
diff --git a/graphics/osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp b/graphics/osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp
index ffb7a3ab12c..31241885a1b 100644
--- a/graphics/osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp
+++ b/graphics/osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_osgPlugins_gif_ReaderWriterGIF.cpp,v 1.1 2013/09/19 08:07:05 obache Exp $
+$NetBSD: patch-src_osgPlugins_gif_ReaderWriterGIF.cpp,v 1.2 2014/05/23 13:45:07 obache Exp $
* GIFLIB 5.x API change
@@ -16,3 +16,15 @@ $NetBSD: patch-src_osgPlugins_gif_ReaderWriterGIF.cpp,v 1.1 2013/09/19 08:07:05
if (!giffile)
{
giferror = ERR_OPEN;
+@@ -557,7 +561,11 @@ GifImageStream** obj)
+ *width_ret = giffile->SWidth;
+ *height_ret = giffile->SHeight;
+ *numComponents_ret = 4;
++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++ DGifCloseFile(giffile, NULL);
++#else
+ DGifCloseFile(giffile);
++#endif
+ return buffer;
+ }
+