From c7c20b40f721099247ea9d2f596f2a7c63ddbcbe Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sat, 21 Aug 2004 18:16:57 +0000 Subject: - Fix build with gcc 3.4 Submitted by: arved (thank you!) --- games/crack-attack/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'games') 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 + 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 +.include -- cgit v1.2.3