From 9ff8939c6c4d8c96980de48506dcff621a1a1dae Mon Sep 17 00:00:00 2001 From: "Frank J. Laszlo" Date: Sun, 15 Jul 2007 15:32:25 +0000 Subject: - Fix build on -CURRENT (gcc 4.2.0 import) Reported by: pav --- games/empire/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'games') diff --git a/games/empire/Makefile b/games/empire/Makefile index b0d94fb8262b..9f5e41ee3ccd 100644 --- a/games/empire/Makefile +++ b/games/empire/Makefile @@ -20,6 +20,13 @@ PLIST_FILES= bin/empire PORTDOCS= BUGS README USE_GMAKE= yes +.include + +post-patch: +.if ${OSVERSION} >= 700042 + @${REINPLACE_CMD} -e 's/static void/void/g' ${WRKSRC}/game.c +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/vms-empire ${PREFIX}/bin/empire ${INSTALL_MAN} ${WRKSRC}/vms-empire.6 ${MANPREFIX}/man/man6/empire.6 @@ -30,4 +37,4 @@ do-install: .endfor .endif -.include +.include -- cgit v1.2.3