Index: devel/libclc/Makefile =================================================================== --- devel/libclc/Makefile (revision 437012) +++ devel/libclc/Makefile (working copy) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= libclc -DISTVERSION= 0.2.0.20160915 +DISTVERSION= 0.2.0.20170225 CATEGORIES= devel MAINTAINER= x11@FreeBSD.org @@ -15,13 +15,13 @@ USE_GITHUB= yes GH_ACCOUNT= llvm-mirror -GH_TAGNAME= b091e26 +GH_TAGNAME= 17648cd USES= gmake python:2,build ninja USE_LDCONFIG= yes MAKE_ENV= MAKE=${GMAKE} DESTDIR=${STAGEDIR} -LLVMVER= 39 +LLVMVER= 40 ALL_TARGET= Index: devel/libclc/distinfo =================================================================== --- devel/libclc/distinfo (revision 437012) +++ devel/libclc/distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1480100311 -SHA256 (llvm-mirror-libclc-0.2.0.20160915-b091e26_GH0.tar.gz) = 821a4b7aa0fa84b1a790b72ba9e2df2820f0d4f565df1027eaad206d688ea741 -SIZE (llvm-mirror-libclc-0.2.0.20160915-b091e26_GH0.tar.gz) = 127259 +TIMESTAMP = 1490314138 +SHA256 (llvm-mirror-libclc-0.2.0.20170225-17648cd_GH0.tar.gz) = 6dc87f14b3d928be657f0656eb58f4481e015dd85a4d62042a15955193349a3d +SIZE (llvm-mirror-libclc-0.2.0.20170225-17648cd_GH0.tar.gz) = 132518 Index: devel/libclc/files/patch-configure.py =================================================================== --- devel/libclc/files/patch-configure.py (revision 437012) +++ devel/libclc/files/patch-configure.py (working copy) @@ -8,14 +8,23 @@ +++ configure.py @@ -118,7 +118,8 @@ b.rule("OPT", command = llvm_opt + " -O3 description = 'OPT $out') - + c_compiler_rule(b, "LLVM_TOOL_CXX", 'CXX', cxx_compiler, llvm_cxxflags) -b.rule("LLVM_TOOL_LINK", cxx_compiler + " -o $out $in %s" % llvm_core_libs + " -Wl,-rpath %s" % llvm_libdir, 'LINK $out') -+b.rule("LLVM_TOOL_LINK", cxx_compiler + " -o $out $in %s" % llvm_core_libs + ++b.rule("LLVM_TOOL_LINK", cxx_compiler + " -o $out $in %s" % llvm_core_libs + + " -L" + prefix + "/lib -Wl,-rpath %s" % llvm_libdir, 'LINK $out') - + prepare_builtins = os.path.join('utils', 'prepare-builtins') b.build(os.path.join('utils', 'prepare-builtins.o'), "LLVM_TOOL_CXX", +@@ -253,7 +253,7 @@ for target in targets: + install_deps.append(builtins_bc) + for alias in device['aliases']: + # Ninja cannot have multiple rules with same name so append suffix +- ruleName = "CREATE_ALIAS_{0}_for_{1}".format(alias, device['gpu']) ++ ruleName = "CREATE_ALIAS_{0}_for_{1}_{2}_{3}_{4}".format(alias, t_arch, t_vendor, t_os, device['gpu']) + b.rule(ruleName, "ln -fs %s $out" % os.path.basename(builtins_bc) + ,"CREATE-ALIAS $out") + @@ -264,7 +265,7 @@ install_cmd = ' && '.join(['mkdir -p ${D {'src': file, 'dst': libexecdir}