summaryrefslogtreecommitdiff
path: root/x11/kdelibs4
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2014-05-18 12:27:51 +0000
committermarkd <markd@pkgsrc.org>2014-05-18 12:27:51 +0000
commitb1d40032c0ba8ad8fecc7c6340b619b477f0a90d (patch)
tree7cf17b85949739fd138b34bc045c5e58a2e8eb08 /x11/kdelibs4
parent44f2337ac3edee0e5a53aba88d34afd76eeaf837 (diff)
downloadpkgsrc-b1d40032c0ba8ad8fecc7c6340b619b477f0a90d.tar.gz
Fix build with giflib 5.1
Diffstat (limited to 'x11/kdelibs4')
-rw-r--r--x11/kdelibs4/distinfo3
-rw-r--r--x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp42
2 files changed, 44 insertions, 1 deletions
diff --git a/x11/kdelibs4/distinfo b/x11/kdelibs4/distinfo
index 445c26d2fac..f249b69a6ab 100644
--- a/x11/kdelibs4/distinfo
+++ b/x11/kdelibs4/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.39 2014/02/01 02:20:53 markd Exp $
+$NetBSD: distinfo,v 1.40 2014/05/18 12:27:51 markd Exp $
SHA1 (kdelibs-4.11.5.tar.xz) = b4926c62b590e48ac7547bead7e04ef4938d6981
RMD160 (kdelibs-4.11.5.tar.xz) = 9ed91ef6f0860443ec584fdf75adde57d3236682
@@ -20,6 +20,7 @@ SHA1 (patch-kdecore_localization_klocale_kde.cpp) = b8a513a0c51e65d7e604a88c1d0e
SHA1 (patch-kdecore_network_ConfigureChecks.cmake) = 0ad9352974911ef78ec565f7b2a97c45ead2cf72
SHA1 (patch-kdecore_tests_CMakeLists.txt) = bbe806b078f54201528c86489d3ac200145a8d2f
SHA1 (patch-kdecore_util_kshareddatacache_p.h) = 6d064fe75fbecd489b0343960333864c717c0805
+SHA1 (patch-khtml_imload_decoders_gifloader.cpp) = 6e5720556e4a82c8d0528f1803663cee592a6a84
SHA1 (patch-kjs_JSImmediate.h) = ecc761c7c82f711f41cf47d706c1c22d22c2980a
SHA1 (patch-kjs_interpreter.cpp) = 9d400daf7d96674b8d66e1cde46dcb3615635241
SHA1 (patch-kjs_wtf_DisallowCType.h) = 6305dd274f1478ba0fe0a6f1717451ab8e3e50d2
diff --git a/x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp b/x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp
new file mode 100644
index 00000000000..900576c7ff8
--- /dev/null
+++ b/x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp
@@ -0,0 +1,42 @@
+$NetBSD: patch-khtml_imload_decoders_gifloader.cpp,v 1.1 2014/05/18 12:27:51 markd Exp $
+
+Fix build with giflib 5.1.
+
+--- khtml/imload/decoders/gifloader.cpp.orig 2014-01-02 19:26:52.000000000 +0000
++++ khtml/imload/decoders/gifloader.cpp
+@@ -369,7 +369,7 @@ public:
+
+ if (DGifSlurp(file) == GIF_ERROR)
+ {
+- DGifCloseFile(file);
++ DGifCloseFile(file, NULL);
+ return Error;
+ }
+
+@@ -378,7 +378,7 @@ public:
+ if (file->ImageCount > 1) {
+ // Verify it..
+ if (!ImageManager::isAcceptableSize(file->SWidth, file->SHeight)) {
+- DGifCloseFile(file);
++ DGifCloseFile(file, NULL);
+ return Error;
+ }
+ notifyImageInfo(file->SWidth, file->SHeight);
+@@ -390,7 +390,7 @@ public:
+ //Extract colormap, geometry, so that we can create the frame
+ SavedImage* curFrame = &file->SavedImages[frame];
+ if (!ImageManager::isAcceptableSize(curFrame->ImageDesc.Width, curFrame->ImageDesc.Height)) {
+- DGifCloseFile(file);
++ DGifCloseFile(file, NULL);
+ return Error;
+ }
+ }
+@@ -574,7 +574,7 @@ public:
+ frame0->animProvider = new GIFAnimProvider(frame0, image, frameProps, bgColor);
+ }
+
+- DGifCloseFile(file);
++ DGifCloseFile(file, NULL);
+
+ return Done;
+ }