summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/freebooters/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/games/freebooters/Makefile b/games/freebooters/Makefile
index 25a7a66..a208b2b 100644
--- a/games/freebooters/Makefile
+++ b/games/freebooters/Makefile
@@ -20,6 +20,12 @@ DOC_FILES= AUTHORS COPYING COPYRIGHT NEWS README \
README_BUCCANEER TODO manual.tex
MAN6= freebooters.6 buccaneer.6
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+BROKEN= "Does not compile on 4.x"
+.endif
+
do-configure:
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/sdl_setup.cc
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/tools.cc
@@ -31,4 +37,4 @@ post-install:
cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud