summaryrefslogtreecommitdiff
path: root/graphics/libungif
diff options
context:
space:
mode:
authorschwarz <schwarz@pkgsrc.org>2005-03-20 11:07:33 +0000
committerschwarz <schwarz@pkgsrc.org>2005-03-20 11:07:33 +0000
commite71617f9025408565ae6effc95dd00127bc06eb2 (patch)
tree3a669f878e20b28f9d8951bd4ff60a84f045059e /graphics/libungif
parentd9b548f2d96a42cecfe25422deda467fb6dfaa1c (diff)
downloadpkgsrc-e71617f9025408565ae6effc95dd00127bc06eb2.tar.gz
fixing bugs in util/gif2iris.c, closing PR#26161
Diffstat (limited to 'graphics/libungif')
-rw-r--r--graphics/libungif/distinfo3
-rw-r--r--graphics/libungif/patches/patch-aa25
2 files changed, 27 insertions, 1 deletions
diff --git a/graphics/libungif/distinfo b/graphics/libungif/distinfo
index 8454b173978..daa2eddb399 100644
--- a/graphics/libungif/distinfo
+++ b/graphics/libungif/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2005/02/24 08:45:09 agc Exp $
+$NetBSD: distinfo,v 1.9 2005/03/20 11:07:33 schwarz Exp $
SHA1 (libungif-4.1.3.tar.bz2) = 04aab31b3e9e719a80320667bc23b3ee35505a34
RMD160 (libungif-4.1.3.tar.bz2) = 287abf7560f5394e62c475f0d722938842ba6786
Size (libungif-4.1.3.tar.bz2) = 439960 bytes
+SHA1 (patch-aa) = eb2d1f1d21e19adc8bc33dcbd24be5c20560f4fd
SHA1 (patch-ab) = a93e2fe0a93aacda4566e723e681fd316fe2cb2a
diff --git a/graphics/libungif/patches/patch-aa b/graphics/libungif/patches/patch-aa
new file mode 100644
index 00000000000..2032bb7b68c
--- /dev/null
+++ b/graphics/libungif/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.7 2005/03/20 11:07:33 schwarz Exp $
+
+--- util/gif2iris.c.orig 2005-03-19 17:50:38.000000000 +0100
++++ util/gif2iris.c 2005-03-19 18:06:18.000000000 +0100
+@@ -30,6 +30,9 @@
+ #include "gl.h"
+ #include "device.h"
+
++#ifndef __MSDOS__
++#include <stdlib.h>
++#endif
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <string.h>
+@@ -229,8 +232,8 @@
+ BackGround = GifFile->SBackGroundColor;
+ ColorMap = (GifFile->Image.ColorMap ? GifFile->Image.ColorMap :
+ GifFile->SColorMap);
+- ColorMapSize = 1 << (GifFile->Image.ColorMap ? GifFile->Image.BitsPerPixel :
+- GifFile->SBitsPerPixel);
++ ColorMapSize = 1 << (GifFile->Image.ColorMap ? GifFile->Image.ColorMap->BitsPerPixel :
++ GifFile->SColorMap->BitsPerPixel);
+ GifQprintf("\n");
+ Screen2Iris(ScreenBuffer, GifFile->SWidth, GifFile->SHeight);
+