aboutsummaryrefslogtreecommitdiffstats
path: root/games/vegastrike
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-04-01 12:59:04 +0800
committerdinoex <dinoex@FreeBSD.org>2010-04-01 12:59:04 +0800
commitbb38fa1017be9dbd2be5987793912f413376ed2b (patch)
tree8b694a796cb28f7eba44cdc1a5cf1eacd3619a2b /games/vegastrike
parent70a66be68fce0878ca0468a0e7bcf264b3b121ef (diff)
downloadfreebsd-ports-gnome-bb38fa1017be9dbd2be5987793912f413376ed2b.tar.gz
freebsd-ports-gnome-bb38fa1017be9dbd2be5987793912f413376ed2b.tar.zst
freebsd-ports-gnome-bb38fa1017be9dbd2be5987793912f413376ed2b.zip
- fix build for png-1.4.1
PR: 145223
Diffstat (limited to 'games/vegastrike')
-rw-r--r--games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp20
-rw-r--r--games/vegastrike/files/patch-src-gfx-vsimage.cpp20
2 files changed, 40 insertions, 0 deletions
diff --git a/games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp b/games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp
new file mode 100644
index 000000000000..c54e100c76e2
--- /dev/null
+++ b/games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp
@@ -0,0 +1,20 @@
+--- objconv/basemaker/base_maker_texture.cpp.orig 2008-04-24 14:12:53.000000000 +0200
++++ objconv/basemaker/base_maker_texture.cpp 2010-04-01 06:40:29.000000000 +0200
+@@ -73,7 +73,7 @@
+ png_set_palette_to_rgb(png_ptr);
+
+ if (ctype == PNG_COLOR_TYPE_GRAY && data->bpp < 8)
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+
+ png_set_expand (png_ptr);
+ png_read_update_info (png_ptr,info_ptr);
+@@ -211,7 +211,7 @@
+ unsigned char sig[8];
+ fread(sig, sizeof(char), 8, fp);
+ fseek(fp,0,SEEK_SET);
+- if (png_check_sig(sig, 8)) {
++ if (!png_sig_cmp(sig, 0, 8)) {
+ return FORMAT_PNG;
+ }
+ }
diff --git a/games/vegastrike/files/patch-src-gfx-vsimage.cpp b/games/vegastrike/files/patch-src-gfx-vsimage.cpp
new file mode 100644
index 000000000000..7ce8c9d06513
--- /dev/null
+++ b/games/vegastrike/files/patch-src-gfx-vsimage.cpp
@@ -0,0 +1,20 @@
+--- src/gfx/vsimage.cpp.orig 2008-04-24 14:12:37.000000000 +0200
++++ src/gfx/vsimage.cpp 2010-03-31 16:39:55.000000000 +0200
+@@ -147,7 +147,7 @@
+ unsigned char sig[8];
+ file->Begin();
+ file->Read(sig, 8);
+- if (!png_check_sig(sig, 8))
++ if (png_sig_cmp(sig, 0, 8))
+ ret = BadFormat;
+
+ return ret;
+@@ -349,7 +349,7 @@
+ png_set_palette_to_rgb(png_ptr);
+
+ if (this->img_color_type == PNG_COLOR_TYPE_GRAY && this->img_depth < 8)
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+
+ png_set_expand (png_ptr);
+ png_read_update_info (png_ptr,info_ptr);