diff options
author | laszlof <laszlof@FreeBSD.org> | 2007-07-15 23:32:25 +0800 |
---|---|---|
committer | laszlof <laszlof@FreeBSD.org> | 2007-07-15 23:32:25 +0800 |
commit | 7031be9fcfa46e268588dfc343e75a0a5416ec02 (patch) | |
tree | ea50449967dfc468061d24abbd16abd7d71c7808 | |
parent | a3a6d20ee1963dca54f1be9cf674dbbda2a53820 (diff) | |
download | freebsd-ports-gnome-7031be9fcfa46e268588dfc343e75a0a5416ec02.tar.gz freebsd-ports-gnome-7031be9fcfa46e268588dfc343e75a0a5416ec02.tar.zst freebsd-ports-gnome-7031be9fcfa46e268588dfc343e75a0a5416ec02.zip |
- Fix build on -CURRENT (gcc 4.2.0 import)
Reported by: pav
-rw-r--r-- | games/empire/Makefile | 9 |
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> |