lang/angelscript: Remove hack for i386, using upstream clang fix

PR:		230923
Submitted by:	Nathan <ndowens@yahoo.com> (maintainer)
This commit is contained in:
Steve Wills 2018-08-27 17:08:45 +00:00
parent f430793a7b
commit f447b0dba3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478230

View file

@ -3,6 +3,7 @@
PORTNAME= angelscript
PORTVERSION= 2.32.0
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://www.angelcode.com/angelscript/sdk/files/
DISTNAME= ${PORTNAME}_${PORTVERSION}
@ -23,7 +24,9 @@ MAKE_ARGS= CP_SYMLINK="${INSTALL_LIB}"
.include <bsd.port.options.mk>
.if ${ARCH} == "i386"
USE_GCC= yes
pre-build:
(cd ${WRKDIR}/sdk/angelscript/source && ${REINPLACE_CMD} -e 's|ifdef __OPTIMIZE__|if defined(__OPTIMIZE__) \&\&\ !defined(__clang__)|g' \
-e 's,ifdef __OPTIMIZE__ifdef __OPTIMIZE__,,g' *.cpp)
.endif
WRKSRC= ${WRKDIR}/sdk/angelscript/projects/gnuc/