summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2017-12-29 11:16:52 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2017-12-29 11:16:52 +0000
commit5cc5bbbb48eef34f9450822a2e81bf4b062a7e11 (patch)
tree67b2f2d2d184b3d112323dc7f94bc33cebe3c68e
parentFix cut-n-paste error in the previous addition for bouncycastle15 (diff)
- Change the default LLVM version to 5.0, to remain in sync with Mesa
(to keep the number of LLVM ports to build/install to just one) - Temporarily (I hope) pass -lexecinfo to work-around linking problem (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223191#c3) Approved by: maintainer (LLVM version bump)
-rw-r--r--devel/ispc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/ispc/Makefile b/devel/ispc/Makefile
index 74c467bcd654..f5851404b118 100644
--- a/devel/ispc/Makefile
+++ b/devel/ispc/Makefile
@@ -23,7 +23,7 @@ USE_GITHUB= yes
ALL_TARGET= default
MAKE_ENV= LLVM_HOME="${LOCALBASE}"
-CLANG_VERSION= 40
+CLANG_VERSION= 50
SHEBANG_FILES= *.py
MAKE_ARGS= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${CLANG_VERSION} \
@@ -35,6 +35,10 @@ post-patch:
@${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}| ; s|@$$(C|$$(C|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/alloca\.h/d' ${WRKSRC}/util.cpp
+.if ${CLANG_VERSION} >= 50
+ @${REINPLACE_CMD} -e '/^LLVM_LIBS=/s|$$| -lexecinfo|' \
+ ${WRKSRC}/Makefile
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ispc ${STAGEDIR}${PREFIX}/bin