diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-30 12:53:45 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-30 12:53:45 +0000 |
commit | 8a6331b0a45c3da24ab9b0da15098bf18daa2e23 (patch) | |
tree | 575c689622f999979df7a4f4fd8ee6c2ac15e009 /games/xbubble | |
parent | c2da4593c611b6120d624176864703a9fc5b4ee2 (diff) |
- fix build for png-1.4.1
- fix build for option WITHOUT_NLS
Notes
Notes:
svn path=/head/; revision=251815
Diffstat (limited to 'games/xbubble')
-rw-r--r-- | games/xbubble/Makefile | 1 | ||||
-rw-r--r-- | games/xbubble/files/patch-src-loadpng.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/games/xbubble/Makefile b/games/xbubble/Makefile index ce9302da3fc5..64db594bc3e3 100644 --- a/games/xbubble/Makefile +++ b/games/xbubble/Makefile @@ -21,6 +21,7 @@ MAN6= xbubble.6 USE_XORG= x11 xmu GNU_CONFIGURE= yes USE_GMAKE= yes +USE_GETTEXT= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng" \ LDFLAGS="-L${LOCALBASE}/lib -lintl" diff --git a/games/xbubble/files/patch-src-loadpng.c b/games/xbubble/files/patch-src-loadpng.c new file mode 100644 index 000000000000..d7bf605ecb2a --- /dev/null +++ b/games/xbubble/files/patch-src-loadpng.c @@ -0,0 +1,11 @@ +--- src/loadpng.c.orig 2003-09-30 14:55:20.000000000 +0200 ++++ src/loadpng.c 2010-03-30 12:09:13.000000000 +0200 +@@ -55,7 +55,7 @@ + } + /* ensure that we opened a PNG file */ + fread( header, 1, 8, fd ); +- if ( ! png_check_sig( header, 8 ) ) { ++ if ( png_sig_cmp( header, 0, 8 ) ) { + fclose(fd); + fprintf(stderr,_("File %s does not have a valid PNG signature.\n"), file); + return NULL; |