aboutsummaryrefslogtreecommitdiffstats
path: root/games/gracer
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-12-27 00:11:24 +0800
committerantoine <antoine@FreeBSD.org>2014-12-27 00:11:24 +0800
commit71d77615d16e4161c5770d04b8f0b448378fa270 (patch)
treee5d3bbee2f955498782ca871a87fa0871a745f55 /games/gracer
parent343892f594d11ea61b1a4d234589fa06cb018fc6 (diff)
downloadfreebsd-ports-gnome-71d77615d16e4161c5770d04b8f0b448378fa270.tar.gz
freebsd-ports-gnome-71d77615d16e4161c5770d04b8f0b448378fa270.tar.zst
freebsd-ports-gnome-71d77615d16e4161c5770d04b8f0b448378fa270.zip
Allow building with either giflib 4.2 or 5.0
Diffstat (limited to 'games/gracer')
-rw-r--r--games/gracer/files/patch-gr_texture.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/games/gracer/files/patch-gr_texture.c b/games/gracer/files/patch-gr_texture.c
index 7f998b5e9d25..9ea5e054f72e 100644
--- a/games/gracer/files/patch-gr_texture.c
+++ b/games/gracer/files/patch-gr_texture.c
@@ -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;
}