aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2018-08-28 01:08:45 +0800
committerswills <swills@FreeBSD.org>2018-08-28 01:08:45 +0800
commita9b9ef0b45e5b3ae7d78c35e602e23533f5f228d (patch)
treed9bc7035d3818e853d67996811050161a468ac06 /lang
parentf5cb1987afa4cae449850a548f2b9e7e53021c76 (diff)
downloadfreebsd-ports-gnome-a9b9ef0b45e5b3ae7d78c35e602e23533f5f228d.tar.gz
freebsd-ports-gnome-a9b9ef0b45e5b3ae7d78c35e602e23533f5f228d.tar.zst
freebsd-ports-gnome-a9b9ef0b45e5b3ae7d78c35e602e23533f5f228d.zip
lang/angelscript: Remove hack for i386, using upstream clang fix
PR: 230923 Submitted by: Nathan <ndowens@yahoo.com> (maintainer)
Diffstat (limited to 'lang')
-rw-r--r--lang/angelscript/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/angelscript/Makefile b/lang/angelscript/Makefile
index ad598e28c8fc..f32a8eb2978a 100644
--- a/lang/angelscript/Makefile
+++ b/lang/angelscript/Makefile
@@ -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/