git: f395ed6c01b9 - main - devel/opencl-clang: Fix build for llvm16 and llvm17

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 17 Feb 2024 06:06:28 UTC
The branch main has been updated by bofh:

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

commit f395ed6c01b961a26208b3b8e017992a6ca2bcaf
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-17 06:00:39 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-17 06:05:58 +0000

    devel/opencl-clang: Fix build for llvm16 and llvm17
---
 devel/opencl-clang/Makefile                                           | 4 ++++
 .../files/{patch-common__clang.map => extra-patch-common__clang.map}  | 0
 2 files changed, 4 insertions(+)

diff --git a/devel/opencl-clang/Makefile b/devel/opencl-clang/Makefile
index a62b81bf8a9d..961bc8ddce36 100644
--- a/devel/opencl-clang/Makefile
+++ b/devel/opencl-clang/Makefile
@@ -51,6 +51,10 @@ _PLIST_FILES+=	lib/libopencl-clang.so \
 		lib/libopencl-clang.so.${DISTVERSION:R:R}
 PLIST_FILES=	${_PLIST_FILES:S,^,${FLAVOR}/,}
 
+.if ${FLAVOR:U} == llvm11 || ${FLAVOR:U} == llvm12 || ${FLAVOR:U} == llvm13 || ${FLAVOR:U} == llvm14 ||  ${FLAVOR:U} == llvm15
+EXTRA_PATCHES=	${PATCHDIR}/extra-patch-common__clang.map
+.endif
+
 .if !defined(DEFAULT_MAKESUM)
 makesum:
 . for f in ${FLAVORS}
diff --git a/devel/opencl-clang/files/patch-common__clang.map b/devel/opencl-clang/files/extra-patch-common__clang.map
similarity index 100%
rename from devel/opencl-clang/files/patch-common__clang.map
rename to devel/opencl-clang/files/extra-patch-common__clang.map