[92849] trunk/dports/games/glpong
jmr at macports.org
jmr at macports.org
Tue May 8 22:10:01 PDT 2012
Revision: 92849
https://trac.macports.org/changeset/92849
Author: jmr at macports.org
Date: 2012-05-08 22:09:59 -0700 (Tue, 08 May 2012)
Log Message:
-----------
glpong: fix build with current libpng
Modified Paths:
--------------
trunk/dports/games/glpong/Portfile
Added Paths:
-----------
trunk/dports/games/glpong/files/
trunk/dports/games/glpong/files/src_image.c.patch
Modified: trunk/dports/games/glpong/Portfile
===================================================================
--- trunk/dports/games/glpong/Portfile 2012-05-09 04:57:22 UTC (rev 92848)
+++ trunk/dports/games/glpong/Portfile 2012-05-09 05:09:59 UTC (rev 92849)
@@ -21,6 +21,8 @@
port:libsdl_image \
port:libsdl_mixer
+patchfiles src_image.c.patch
+
configure.args --disable-sdltest
post-configure {
Added: trunk/dports/games/glpong/files/src_image.c.patch
===================================================================
--- trunk/dports/games/glpong/files/src_image.c.patch (rev 0)
+++ trunk/dports/games/glpong/files/src_image.c.patch 2012-05-09 05:09:59 UTC (rev 92849)
@@ -0,0 +1,19 @@
+--- src/image.c.orig 2008-01-15 15:36:48.000000000 +1100
++++ src/image.c 2012-05-09 15:05:24.000000000 +1000
+@@ -120,7 +120,7 @@ readpng (void *buf, int *width, int *hei
+
+ png_read_png (png_ptr, info_ptr,
+ PNG_TRANSFORM_PACKING | PNG_TRANSFORM_STRIP_16 |
+- PNG_TRANSFORM_EXPAND, png_voidp_NULL);
++ PNG_TRANSFORM_EXPAND, (png_voidp)NULL);
+ pitch = png_get_rowbytes (png_ptr, info_ptr);
+ *width = png_get_image_width (png_ptr, info_ptr);
+ *height = png_get_image_height (png_ptr, info_ptr);
+@@ -133,6 +133,6 @@ readpng (void *buf, int *width, int *hei
+ out = malloc ((*width) * (*height) * (*bpp));
+ for (i = 0; i < info_ptr->height; ++i)
+ memcpy ((void *)((size_t)out + i * pitch), row_pointers[i], pitch);
+- png_destroy_read_struct (&png_ptr, &info_ptr, png_infopp_NULL);
++ png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL);
+ return out;
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120508/25f068d8/attachment.html>
More information about the macports-changes
mailing list