aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-31 20:11:16 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-31 20:11:16 +0800
commit5937c3b1c646a14f4561462267f9e43a9d482980 (patch)
tree8c552bea85bcde43701ab394b63382855a2c0fea
parentff31ad0ab5286f4d16403c0ad8ce8985b92ad06c (diff)
downloadfreebsd-ports-gnome-5937c3b1c646a14f4561462267f9e43a9d482980.tar.gz
freebsd-ports-gnome-5937c3b1c646a14f4561462267f9e43a9d482980.tar.zst
freebsd-ports-gnome-5937c3b1c646a14f4561462267f9e43a9d482980.zip
- fix build for png-1.4.1
-rw-r--r--astro/celestia/files/patch-src_celengine_image.cpp11
-rw-r--r--astro/sunclock/files/patch-readpng.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/astro/celestia/files/patch-src_celengine_image.cpp b/astro/celestia/files/patch-src_celengine_image.cpp
new file mode 100644
index 000000000000..fea24f41441e
--- /dev/null
+++ b/astro/celestia/files/patch-src_celengine_image.cpp
@@ -0,0 +1,11 @@
+--- src/celengine/image.cpp.orig 2009-06-22 17:44:08.000000000 +0200
++++ src/celengine/image.cpp 2010-03-29 14:11:02.000000000 +0200
+@@ -737,7 +737,7 @@
+
+ if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
+ {
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ }
+
+ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
diff --git a/astro/sunclock/files/patch-readpng.c b/astro/sunclock/files/patch-readpng.c
new file mode 100644
index 000000000000..1481473bc696
--- /dev/null
+++ b/astro/sunclock/files/patch-readpng.c
@@ -0,0 +1,11 @@
+--- readpng.c.orig 2005-10-23 21:36:29.000000000 +0200
++++ readpng.c 2010-03-29 14:14:22.000000000 +0200
+@@ -57,7 +57,7 @@
+ fread(header, 1, 8, fp);
+ fclose(fp);
+
+- return png_check_sig(header, 8);
++ return !png_sig_cmp(header, 0, 8);
+ }
+
+ static void