Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2014 16:11:25 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r375631 - head/games/gracer/files
Message-ID:  <201412261611.sBQGBPhU084110@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
    }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412261611.sBQGBPhU084110>