git: a2fa7d1ee840 - main - devel/opencl-clang: unbreak llvm15 flavor on FreeBSD 12.3

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 21 Sep 2022 16:47:18 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a2fa7d1ee840c9a28dada8c0d5f63f563666f0ce

commit a2fa7d1ee840c9a28dada8c0d5f63f563666f0ce
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-09-21 16:42:06 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-09-21 16:46:37 +0000

    devel/opencl-clang: unbreak llvm15 flavor on FreeBSD 12.3
    
    FAILED: opencl_clang_options.inc ../.build/opencl_clang_options.inc
    cd ../.build && /usr/bin/llvm-tblgen -gen-opt-parser-defs -I /usr/local/llvm15/include -I . opencl_clang_options.td --write-if-changed -o opencl_clang_options.inc -d opencl_clang_options.inc.d
    Included from opencl_clang_options.td:8:
    /usr/local/llvm15/include/llvm/Option/OptParser.td:16:66: error: Variable not defined: 'false'
    class OptionKind<string name, int precedence = 0, bit sentinel = false> {
                                                                     ^
    Included from opencl_clang_options.td:8:
    /usr/local/llvm15/include/llvm/Option/OptParser.td:25:18: error: Value not specified for template argument #2 (OptionKind:sentinel) of subclass 'OptionKind'!
    def KIND_GROUP : OptionKind<"Group">;
                     ^
---
 devel/opencl-clang/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/devel/opencl-clang/Makefile b/devel/opencl-clang/Makefile
index abbf27663762..8433370f7901 100644
--- a/devel/opencl-clang/Makefile
+++ b/devel/opencl-clang/Makefile
@@ -26,7 +26,8 @@ USE_GITHUB=	yes
 USE_LDCONFIG=	${PREFIX}/${FLAVOR}/lib
 GH_ACCOUNT=	intel
 DISTINFO_FILE=	${.CURDIR}/distinfo.${FLAVOR}
-CMAKE_ARGS=	-DPREFERRED_LLVM_VERSION:STRING="${FLAVOR:S/llvm//}"
+CMAKE_ARGS=	-DCMAKE_PREFIX_PATH:PATH="${LOCALBASE}/${FLAVOR}" \
+		-DPREFERRED_LLVM_VERSION:STRING="${FLAVOR:S/llvm//}"
 CMAKE_INSTALL_PREFIX=		${PREFIX}/${FLAVOR}
 _PLIST_FILES=	include/cclang/common_clang.h \
 		lib/libopencl-clang.so \