summaryrefslogtreecommitdiff
path: root/misc/celestia/patches/patch-ap
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-06-13 22:43:46 +0000
committerwiz <wiz@pkgsrc.org>2010-06-13 22:43:46 +0000
commit92e0cb52cb783546e352182244f761180817e141 (patch)
tree4a9b97c2969a25f1eeb6596ee96fc25429cef7d5 /misc/celestia/patches/patch-ap
parent01bd00f60b043c603cfe4fa796bf28af3a849cca (diff)
downloadpkgsrc-92e0cb52cb783546e352182244f761180817e141.tar.gz
Bump PKGREVISION for libpng shlib name change.
Also add some patches to remove use of deprecated symbols and fix other problems when looking for or compiling against libpng-1.4.x.
Diffstat (limited to 'misc/celestia/patches/patch-ap')
-rw-r--r--misc/celestia/patches/patch-ap22
1 files changed, 22 insertions, 0 deletions
diff --git a/misc/celestia/patches/patch-ap b/misc/celestia/patches/patch-ap
new file mode 100644
index 00000000000..c7c56ce5193
--- /dev/null
+++ b/misc/celestia/patches/patch-ap
@@ -0,0 +1,22 @@
+$NetBSD: patch-ap,v 1.1 2010/06/13 22:44:58 wiz Exp $
+
+--- src/celengine/image.cpp.orig 2005-07-19 20:30:54.000000000 +0000
++++ src/celengine/image.cpp
+@@ -78,7 +78,7 @@ using namespace std;
+ // Define various expansion transformations for old versions of libpng
+ #if PNG_LIBPNG_VER < 10004
+ #define png_set_palette_to_rgb(p) png_set_expand(p)
+-#define png_set_gray_1_2_4_to_8(p) png_set_expand(p)
++#define png_set_expand_gray_1_2_4_to_8(p) png_set_expand(p)
+ #define png_set_tRNS_to_alpha(p) png_set_expand(p)
+ #endif // PNG_LIBPNG_VER < 10004
+
+@@ -720,7 +720,7 @@ Image* LoadPNGImage(const string& filena
+
+ 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))