diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-30 12:10:48 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-30 12:10:48 +0000 |
commit | 6dd02eda052294b99ddc01c0b89453fde1a60e95 (patch) | |
tree | 10016a7cf7c65071759a70e645c34894206ac596 /games | |
parent | - fix build for png-1.4.1 (diff) |
- fix build for png-1.4.1
Notes
Notes:
svn path=/head/; revision=251809
Diffstat (limited to 'games')
-rw-r--r-- | games/gtkatlantic/files/patch-readpng.c | 11 | ||||
-rw-r--r-- | games/gtkradiant/Makefile | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/games/gtkatlantic/files/patch-readpng.c b/games/gtkatlantic/files/patch-readpng.c new file mode 100644 index 000000000000..ccfa6960f95b --- /dev/null +++ b/games/gtkatlantic/files/patch-readpng.c @@ -0,0 +1,11 @@ +--- src/readpng.c.orig 2004-06-25 09:02:45.000000000 +0200 ++++ src/readpng.c 2010-03-30 14:01:35.000000000 +0200 +@@ -33,7 +33,7 @@ + png_uint_32 width, height; + + fread(sig, 1, 8, infile); +- if (!png_check_sig(sig, 8)) ++ if (png_sig_cmp(sig, 0, 8)) + return FALSE; + + *png_struct = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); diff --git a/games/gtkradiant/Makefile b/games/gtkradiant/Makefile index cba5e9d38b71..fead1f0b1270 100644 --- a/games/gtkradiant/Makefile +++ b/games/gtkradiant/Makefile @@ -36,6 +36,9 @@ DATADIR= ${PREFIX}/lib/${PORTNAME} post-patch: @${REINPLACE_CMD} -e 's/-ldl//' ${WRKSRC}/SConscript + @${REINPLACE_CMD} -e 's/png_infopp_NULL/NULL/' \ + -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \ + ${WRKSRC}/plugins/imagepng/plugin.cpp @${GREP} -Rl 'defined[[:blank:]]*([[:blank:]]*__linux__[[:blank:]]*) || defined[[:blank:]]*([[:blank:]]*__APPLE__[[:blank:]]*)' ${WRKSRC} | \ ${XARGS} ${REINPLACE_CMD} -e \ 's/\(defined[[:blank:]]*([[:blank:]]*__linux__[[:blank:]]*) || defined[[:blank:]]*([[:blank:]]*__APPLE__[[:blank:]]*)\)/\1 || defined (__FreeBSD__)/' |