diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-30 20:50:08 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-30 20:50:08 +0800 |
commit | ec87f9f948aa282720b91916f32b537b48b6b902 (patch) | |
tree | 331de84fb19429d7f391c2af358a42b35307e4c8 /games/gnubg | |
parent | 416d44a2defbbedb843608e555ff4c4b4a68a896 (diff) | |
download | freebsd-ports-gnome-ec87f9f948aa282720b91916f32b537b48b6b902.tar.gz freebsd-ports-gnome-ec87f9f948aa282720b91916f32b537b48b6b902.tar.zst freebsd-ports-gnome-ec87f9f948aa282720b91916f32b537b48b6b902.zip |
- fix build for png-1.4.1
Diffstat (limited to 'games/gnubg')
-rw-r--r-- | games/gnubg/Makefile | 3 | ||||
-rw-r--r-- | games/gnubg/files/patch-export.c | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/games/gnubg/Makefile b/games/gnubg/Makefile index a6130ece8dab..4204fb76ab76 100644 --- a/games/gnubg/Makefile +++ b/games/gnubg/Makefile @@ -72,6 +72,9 @@ LDFLAGS= -L${LOCALBASE}/lib post-extract: ${GUNZIP_CMD} --stdout ${DISTDIR}/${DIST_SUBDIR}/gnubg_ts0.bd.gz > ${WRKSRC}/gnubg_ts0.bd +post-patch: + ${REINPLACE_CMD} -e 's|libpng12|libpng14|g' ${WRKSRC}/configure.in + pre-configure: cd ${WRKSRC} && ./autogen.sh diff --git a/games/gnubg/files/patch-export.c b/games/gnubg/files/patch-export.c new file mode 100644 index 000000000000..47459b17a469 --- /dev/null +++ b/games/gnubg/files/patch-export.c @@ -0,0 +1,13 @@ +--- export.c.orig 2007-05-24 07:20:04.000000000 +0200 ++++ export.c 2010-03-30 14:44:05.000000000 +0200 +@@ -116,8 +116,8 @@ + atext[1].compression = PNG_TEXT_COMPRESSION_NONE; + + #ifdef PNG_iTXt_SUPPORTED +- text_ptr[0].lang = NULL; +- text_ptr[1].lang = NULL; ++// text_ptr[0].lang = NULL; ++// text_ptr[1].lang = NULL; + #endif + png_set_text (ppng, pinfo, atext, 2); + |