aboutsummaryrefslogtreecommitdiff
path: root/games/empire
diff options
context:
space:
mode:
authorFrank J. Laszlo <laszlof@FreeBSD.org>2007-07-15 15:32:25 +0000
committerFrank J. Laszlo <laszlof@FreeBSD.org>2007-07-15 15:32:25 +0000
commit9ff8939c6c4d8c96980de48506dcff621a1a1dae (patch)
tree241d6757c3d25a953727518df53e48b6e9962635 /games/empire
parentd7e60fec56a29320b302e5c1524bae2dd934700c (diff)
downloadports-9ff8939c6c4d8c96980de48506dcff621a1a1dae.tar.gz
ports-9ff8939c6c4d8c96980de48506dcff621a1a1dae.zip
- Fix build on -CURRENT (gcc 4.2.0 import)
Reported by: pav
Notes
Notes: svn path=/head/; revision=195664
Diffstat (limited to 'games/empire')
-rw-r--r--games/empire/Makefile9
1 files changed, 8 insertions, 1 deletions
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 <bsd.port.pre.mk>
+
+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 <bsd.port.mk>
+.include <bsd.port.post.mk>