diff options
-rw-r--r-- | astro/astrometry/Makefile | 4 | ||||
-rw-r--r-- | games/gnubg/Makefile | 3 | ||||
-rw-r--r-- | games/gnubg/files/patch-export.c | 13 |
3 files changed, 20 insertions, 0 deletions
diff --git a/astro/astrometry/Makefile b/astro/astrometry/Makefile index 28850ca6a5ba..2828230dd088 100644 --- a/astro/astrometry/Makefile +++ b/astro/astrometry/Makefile @@ -33,6 +33,10 @@ SUB_FILES= pkg-message post-extract: ${CP} ${FILESDIR}/gnu-specific-config.h ${WRKSRC}/util/ +post-patch: + ${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \ + ${WRKSRC}/util/cairoutils.c + post-install: @${CAT} ${PKGMESSAGE} 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); + |