diff options
Diffstat (limited to 'games/crack-attack')
-rw-r--r-- | games/crack-attack/Makefile | 9 |
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> |