aboutsummaryrefslogtreecommitdiffstats
path: root/games/adgali
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2012-06-01 13:26:28 +0800
committerdinoex <dinoex@FreeBSD.org>2012-06-01 13:26:28 +0800
commit530706893f31269bbfa303e069f2e76cbbe2fce7 (patch)
treea8077a0d6e20d70b39e6a7fe3e57a6dafe7c7f33 /games/adgali
parent9d262811a145d3e715edefd1d5d64ceac41de547 (diff)
downloadfreebsd-ports-gnome-530706893f31269bbfa303e069f2e76cbbe2fce7.tar.gz
freebsd-ports-gnome-530706893f31269bbfa303e069f2e76cbbe2fce7.tar.zst
freebsd-ports-gnome-530706893f31269bbfa303e069f2e76cbbe2fce7.zip
- update png to 1.5.10
Diffstat (limited to 'games/adgali')
-rw-r--r--games/adgali/Makefile4
-rw-r--r--games/adgali/files/patch-src-input-imageio-agl_pngio.c20
2 files changed, 21 insertions, 3 deletions
diff --git a/games/adgali/Makefile b/games/adgali/Makefile
index 78d8c6fa0cfb..1ac19a489301 100644
--- a/games/adgali/Makefile
+++ b/games/adgali/Makefile
@@ -8,7 +8,7 @@
PORTNAME= adgali
PORTVERSION= 0.2.4
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= games devel
MASTER_SITES= http://adgali.apiou.org/download/
@@ -18,7 +18,7 @@ COMMENT= An open source game library useful for 2D game development
LICENSE= GPLv2
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
- png.6:${PORTSDIR}/graphics/png \
+ png15:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
freetype.9:${PORTSDIR}/print/freetype2 \
execinfo.1:${PORTSDIR}/devel/libexecinfo
diff --git a/games/adgali/files/patch-src-input-imageio-agl_pngio.c b/games/adgali/files/patch-src-input-imageio-agl_pngio.c
index 9a7155464ad0..53ad107e4dee 100644
--- a/games/adgali/files/patch-src-input-imageio-agl_pngio.c
+++ b/games/adgali/files/patch-src-input-imageio-agl_pngio.c
@@ -1,5 +1,5 @@
--- src/input/imageio/agl_pngio.c.orig 2003-06-24 01:58:47.000000000 +0200
-+++ src/input/imageio/agl_pngio.c 2010-03-30 11:23:50.000000000 +0200
++++ src/input/imageio/agl_pngio.c 2012-05-01 09:02:25.000000000 +0200
@@ -65,7 +65,7 @@
unsigned char buf[8];
@@ -9,6 +9,15 @@
return 0;
}
+@@ -106,7 +106,7 @@
+ }
+
+ /* standard png error handler */
+- if (setjmp(png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ agl_error("Error reading the PNG file");
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
@@ -131,7 +131,7 @@
/* see pnglib for these calls */
@@ -18,3 +27,12 @@
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
png_set_tRNS_to_alpha(png_ptr);
+@@ -171,7 +171,7 @@
+ *rowp = (png_bytep) pixelp;
+ /* standard png error handler redeclared to free the agl image if an
+ * error occurs */
+- if (setjmp(png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ agl_error("Error reading the PNG file");
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);