[Midnightbsd-cvs] mports [19974] trunk/graphics/ming/files: update after giflib change
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Aug 22 18:44:44 EDT 2015
Revision: 19974
http://svnweb.midnightbsd.org/mports/?rev=19974
Author: laffer1
Date: 2015-08-22 18:44:44 -0400 (Sat, 22 Aug 2015)
Log Message:
-----------
update after giflib change
Added Paths:
-----------
trunk/graphics/ming/files/
trunk/graphics/ming/files/patch-src_blocks_gifdbl.c
trunk/graphics/ming/files/patch-util_gif2dbl.c
trunk/graphics/ming/files/patch-util_gif2mask.c
Added: trunk/graphics/ming/files/patch-src_blocks_gifdbl.c
===================================================================
--- trunk/graphics/ming/files/patch-src_blocks_gifdbl.c (rev 0)
+++ trunk/graphics/ming/files/patch-src_blocks_gifdbl.c 2015-08-22 22:44:44 UTC (rev 19974)
@@ -0,0 +1,26 @@
+--- src/blocks/gifdbl.c.orig 2010-10-10 07:19:23 UTC
++++ src/blocks/gifdbl.c
+@@ -227,7 +227,11 @@ SWFDBLBitmapData newSWFDBLBitmapData_fro
+ SWFDBLBitmapData ret;
+ struct dbl_data gifdata;
+
++#if GIFLIB_MAJOR >= 5
++ if((file = DGifOpenFileName(fileName, NULL)) == NULL)
++#else
+ if((file = DGifOpenFileName(fileName)) == NULL)
++#endif
+ return NULL;
+ if(!readGif(file, &gifdata))
+ return NULL;
+@@ -246,7 +250,11 @@ SWFDBLBitmapData newSWFDBLBitmapData_fro
+ SWFDBLBitmapData ret;
+ struct dbl_data gifdata;
+
++#if GIFLIB_MAJOR >= 5
++ if((file = DGifOpen(input, (InputFunc) gifReadFunc, NULL)) == NULL)
++#else
+ if((file = DGifOpen(input, (InputFunc) gifReadFunc)) == NULL)
++#endif
+ return NULL;
+ if(!readGif(file, &gifdata))
+ return NULL;
Property changes on: trunk/graphics/ming/files/patch-src_blocks_gifdbl.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/ming/files/patch-util_gif2dbl.c
===================================================================
--- trunk/graphics/ming/files/patch-util_gif2dbl.c (rev 0)
+++ trunk/graphics/ming/files/patch-util_gif2dbl.c 2015-08-22 22:44:44 UTC (rev 19974)
@@ -0,0 +1,14 @@
+--- util/gif2dbl.c.orig 2013-06-08 14:08:51 UTC
++++ util/gif2dbl.c
+@@ -59,7 +59,11 @@ unsigned char *readGif(char *fileName, i
+ unsigned char *p;
+ int i, nColors, size, alpha, bgColor, alignedWidth;
+
++#if GIFLIB_MAJOR >= 5
++ if((file = DGifOpenFileName(fileName, NULL)) == NULL)
++#else
+ if((file = DGifOpenFileName(fileName)) == NULL)
++#endif
+ error("Error opening file");
+
+ if(DGifSlurp(file) != GIF_OK)
Property changes on: trunk/graphics/ming/files/patch-util_gif2dbl.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/ming/files/patch-util_gif2mask.c
===================================================================
--- trunk/graphics/ming/files/patch-util_gif2mask.c (rev 0)
+++ trunk/graphics/ming/files/patch-util_gif2mask.c 2015-08-22 22:44:44 UTC (rev 19974)
@@ -0,0 +1,14 @@
+--- util/gif2mask.c.orig 2013-06-08 14:08:51 UTC
++++ util/gif2mask.c
+@@ -28,7 +28,11 @@ unsigned char *readGif(char *fileName, i
+ unsigned char *data;
+ int i, nColors, size;
+
++#if GIFLIB_MAJOR >= 5
++ if((file = DGifOpenFileName(fileName, NULL)) == NULL)
++#else
+ if((file = DGifOpenFileName(fileName)) == NULL)
++#endif
+ error("Error opening file");
+
+ if(DGifSlurp(file) != GIF_OK)
Property changes on: trunk/graphics/ming/files/patch-util_gif2mask.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list