aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/mmosaic/Makefile1
-rw-r--r--www/mmosaic/files/patch-readPNG.c24
2 files changed, 25 insertions, 0 deletions
diff --git a/www/mmosaic/Makefile b/www/mmosaic/Makefile
index 029f9c531ee4..8ab054a739e3 100644
--- a/www/mmosaic/Makefile
+++ b/www/mmosaic/Makefile
@@ -23,6 +23,7 @@ LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
RESTRICTED= "academic, research and internal business purposes only, without a fee"
PLIST= ${WRKDIR}/pkg-plist
USE_MOTIF= yes
+USE_XORG= xmu xt xext x11
WRKSRC= ${WRKDIR}/mMosaic-src-${PORTVERSION}
post-patch:
diff --git a/www/mmosaic/files/patch-readPNG.c b/www/mmosaic/files/patch-readPNG.c
new file mode 100644
index 000000000000..15026f4b7e91
--- /dev/null
+++ b/www/mmosaic/files/patch-readPNG.c
@@ -0,0 +1,24 @@
+--- src/readPNG.c.orig 2000-12-08 19:00:45.000000000 +0100
++++ src/readPNG.c 2010-03-30 03:40:10.000000000 +0200
+@@ -51,8 +51,8 @@
+ ret = fread(buf, 1, 8, infile);
+ if(ret != 8)
+ return 0;
+- ret = png_check_sig(buf, 8);
+- if(!ret)
++ ret = png_sig_cmp(buf, 0, 8);
++ if(ret)
+ return(0);
+
+ /* OK, it is a valid PNG file, so let's rewind it, and start
+@@ -91,8 +91,10 @@
+ /*####png_set_message_fn(png_ptr,png_get_msg_ptr(png_ptr),NULL,NULL); */
+
+ /* initialize the structures */
++#if 0
+ png_info_init(info_ptr);
+ png_read_init(png_ptr);
++#endif
+
+ /* set up the input control */
+ png_init_io(png_ptr, infile);