From a4a32ff124e8ac113ba349afbcc948ea69443743 Mon Sep 17 00:00:00 2001 From: danfe Date: Sun, 23 May 2010 12:38:45 +0000 Subject: Fix function signature to match that of libpng 1.4. While the game seems to be playable without this change, bump PORTREVISION just to be safe. Package is not built by default anyways. PR: ports/146150 --- games/nexuiz/Makefile | 5 ++++- games/xonotic/Makefile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'games') diff --git a/games/nexuiz/Makefile b/games/nexuiz/Makefile index b94b90e7bedf..7a1a535d6528 100644 --- a/games/nexuiz/Makefile +++ b/games/nexuiz/Makefile @@ -7,7 +7,7 @@ PORTNAME= nexuiz PORTVERSION= 2.5.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/NexuizRelease/Nexuiz%20${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g} @@ -88,6 +88,9 @@ post-patch: ${WRKSRC}/${MAKEFILE} ${WRKSRC}/makefile.inc @${REINPLACE_CMD} -e '/LDFLAGS_BSDSV/s,$$,-L${LOCALBASE}/lib,' \ ${WRKSRC}/makefile.inc +# Fix for libpng 1.4 + @${REINPLACE_CMD} -e 's,gray_1_2_4_to_8,expand_&,g' \ + ${WRKSRC}/image_png.c do-install: ${SH} -c '${FIND} ${WRKSRC} -name "darkplaces-*[^vpj]" | \ diff --git a/games/xonotic/Makefile b/games/xonotic/Makefile index b94b90e7bedf..7a1a535d6528 100644 --- a/games/xonotic/Makefile +++ b/games/xonotic/Makefile @@ -7,7 +7,7 @@ PORTNAME= nexuiz PORTVERSION= 2.5.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/NexuizRelease/Nexuiz%20${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g} @@ -88,6 +88,9 @@ post-patch: ${WRKSRC}/${MAKEFILE} ${WRKSRC}/makefile.inc @${REINPLACE_CMD} -e '/LDFLAGS_BSDSV/s,$$,-L${LOCALBASE}/lib,' \ ${WRKSRC}/makefile.inc +# Fix for libpng 1.4 + @${REINPLACE_CMD} -e 's,gray_1_2_4_to_8,expand_&,g' \ + ${WRKSRC}/image_png.c do-install: ${SH} -c '${FIND} ${WRKSRC} -name "darkplaces-*[^vpj]" | \ -- cgit