aboutsummaryrefslogtreecommitdiff
path: root/games/crack-attack
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-08-21 18:16:57 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-08-21 18:16:57 +0000
commitc7c20b40f721099247ea9d2f596f2a7c63ddbcbe (patch)
treeee919e8d0a99d0d4612c5b1b244f7d019ae74d0b /games/crack-attack
parentc53b1d14a85d6e4b4eccedbe44ee0818cc739eb4 (diff)
downloadports-c7c20b40f721099247ea9d2f596f2a7c63ddbcbe.tar.gz
ports-c7c20b40f721099247ea9d2f596f2a7c63ddbcbe.zip
Notes
Diffstat (limited to 'games/crack-attack')
-rw-r--r--games/crack-attack/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/games/crack-attack/Makefile b/games/crack-attack/Makefile
index 5d21f67bb906..d83efec82dd2 100644
--- a/games/crack-attack/Makefile
+++ b/games/crack-attack/Makefile
@@ -19,7 +19,12 @@ GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" CXXFLAGS="${CFLAGS}"
+.include <bsd.port.pre.mk>
+
post-patch:
- ${REINPLACE_CMD} -e 's|-O6 -s|${CFLAGS}|' ${WRKSRC}/src/Makefile.in
+ @${REINPLACE_CMD} -e 's|-O6 -s|${CFLAGS}|' ${WRKSRC}/src/Makefile.in
+.if ${OSVERSION} >= 502126
+ @${REINPLACE_CMD} -e 's|#ifndef max|#if 0|' ${WRKSRC}/src/Game.h
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>