svn commit: r375631 - head/games/gracer/files

Antoine Brodin antoine at FreeBSD.org
Fri Dec 26 16:11:25 UTC 2014


Author: antoine
Date: Fri Dec 26 16:11:24 2014
New Revision: 375631
URL: https://svnweb.freebsd.org/changeset/ports/375631
QAT: https://qat.redports.org/buildarchive/r375631/

Log:
  Allow building with either giflib 4.2 or 5.0

Modified:
  head/games/gracer/files/patch-gr_texture.c

Modified: head/games/gracer/files/patch-gr_texture.c
==============================================================================
--- head/games/gracer/files/patch-gr_texture.c	Fri Dec 26 16:00:00 2014	(r375630)
+++ head/games/gracer/files/patch-gr_texture.c	Fri Dec 26 16:11:24 2014	(r375631)
@@ -1,6 +1,18 @@
---- common/gr_texture.c.orig	2000-03-01 05:27:18.000000000 +0100
-+++ common/gr_texture.c	2012-05-03 20:29:17.000000000 +0200
-@@ -419,7 +419,7 @@
+--- common/gr_texture.c.orig	2000-03-01 04:27:18 UTC
++++ common/gr_texture.c
+@@ -274,7 +274,11 @@ read_gif_file (GrTexture *texture, char 
+   int index;
+   int width, height;
+ 
++#if GIFLIB_MAJOR >= 5
++  file = DGifOpenFileName (filename, NULL);
++#else
+   file = DGifOpenFileName (filename);
++#endif
+   if (!file)
+     return -1;
+ 
+@@ -419,7 +423,7 @@ read_png_file (GrTexture *texture, char 
    if (fread (header, 1, PNG_BYTES_TO_CHECK, file) != PNG_BYTES_TO_CHECK) {
      goto ERROR;
    }
@@ -9,7 +21,7 @@
      goto ERROR;
    }
  
-@@ -431,7 +431,7 @@
+@@ -431,7 +435,7 @@ read_png_file (GrTexture *texture, char 
    if (!info_ptr) {
      goto ERROR;
    }


More information about the svn-ports-head mailing list