- Fix build with gcc 3.4

Submitted by:	arved (thank you!)
This commit is contained in:
Pav Lucistnik 2004-08-21 18:16:57 +00:00
parent c53b1d14a8
commit c7c20b40f7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116964

View file

@ -19,7 +19,12 @@ GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" CXXFLAGS="${CFLAGS}"
post-patch:
${REINPLACE_CMD} -e 's|-O6 -s|${CFLAGS}|' ${WRKSRC}/src/Makefile.in
.include <bsd.port.pre.mk>
.include <bsd.port.mk>
post-patch:
@${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.post.mk>