- Fix build on amd64/gcc42

PR:		117651
Submitted by:	Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
Approved by:	portmgr (pav)
This commit is contained in:
Martin Wilke 2007-10-30 13:45:14 +00:00
parent ee2be28dfa
commit 8ee3c7d460
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202440

View file

@ -9,8 +9,7 @@ PORTNAME= ivan
PORTVERSION= 0.50
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ivan
MASTER_SITES= SF
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= A graphical roguelike game
@ -30,6 +29,12 @@ post-patch:
${WRKSRC}/FeLib/Include/fearray.h
@${REINPLACE_CMD} -Ee 's|([a-z]+<[a-z ,]+>::~?[a-z]+)<[a-z ,]+>|\1|' \
${WRKSRC}/Main/Source/script.cpp
@${REINPLACE_CMD} -e 's|truth(|bool(|' ${WRKSRC}/Main/Source/fluid.cpp \
${WRKSRC}/Main/Include/char.h ${WRKSRC}/Main/Include/lsquare.h \
${WRKSRC}/FeLib/Include/save.h ${WRKSRC}/Main/Include/lsquare.h \
${WRKSRC}/Main/Include/human.h ${WRKSRC}/Main/Source/command.cpp \
${WRKSRC}/Main/Include/stack.h ${WRKSRC}/Main/Source/lsquare.cpp \
${WRKSRC}/Main/Source/lterras.cpp
post-install:
${CHGRP} games ${PREFIX}/bin/ivan
@ -42,12 +47,4 @@ post-install:
${CHMOD} -R g+w ${STATEDIR}
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
BROKEN= Does not compile with GCC 4.2
.endif
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>