aboutsummaryrefslogtreecommitdiffstats
path: root/www/mmosaic
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-30 09:58:18 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-30 09:58:18 +0800
commitbfd703cd49302e249b1b613939ff70167aa7d7e9 (patch)
tree8d8f28efe8343f2d051a4d0022c9188e0ff62913 /www/mmosaic
parentb34d152d310b4bf65f407515164557344160cf98 (diff)
downloadfreebsd-ports-gnome-bfd703cd49302e249b1b613939ff70167aa7d7e9.tar.gz
freebsd-ports-gnome-bfd703cd49302e249b1b613939ff70167aa7d7e9.tar.zst
freebsd-ports-gnome-bfd703cd49302e249b1b613939ff70167aa7d7e9.zip
- fix build for png-1.4.1
- add missing depencies
Diffstat (limited to 'www/mmosaic')
-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);