git: 90f512cec35b - 2026Q1 - devel/spirv-llvm-translator: split port patches by flavor
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Feb 2026 15:04:32 UTC
The branch 2026Q1 has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=90f512cec35bc417a83b7eb72b2cc94547bbb678
commit 90f512cec35bc417a83b7eb72b2cc94547bbb678
Author: Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2026-02-20 14:28:12 +0000
Commit: Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2026-02-20 15:04:22 +0000
devel/spirv-llvm-translator: split port patches by flavor
Add patches to files.llvm*/ instead of files/ subdirectory.
For now, it lacks support for patches common to all flavors.
PR: 293293
(cherry picked from commit a93fd63ae97f7bb7737ede009224b492545f0e95)
---
devel/spirv-llvm-translator/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/devel/spirv-llvm-translator/Makefile b/devel/spirv-llvm-translator/Makefile
index 402e0281b7cc..8289f1461fe5 100644
--- a/devel/spirv-llvm-translator/Makefile
+++ b/devel/spirv-llvm-translator/Makefile
@@ -39,6 +39,7 @@ GH_TUPLE= KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-411-gaa6cef1:headers
GH_TUPLE= KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-446-g01e0577:headers/projects/SPIRV-Headers
.endif
DISTINFO_FILE= ${.CURDIR}/distinfo.${FLAVOR}
+PATCHDIR= ${.CURDIR}/files.${FLAVOR}
CXXFLAGS+= ${${FLAVOR:S/llvm//} < 16 && ${COMPILER_TYPE} == clang:?-Wno-enum-constexpr-conversion:}
CMAKE_ON= BUILD_SHARED_LIBS LLVM_BUILD_TOOLS LLVM_TOOL_SPIRV_HEADERS_BUILD
CMAKE_ARGS= -DLLVM_DIR:PATH="${LOCALBASE}/${FLAVOR}"
@@ -53,6 +54,12 @@ _PLIST_FILES= bin/llvm-spirv \
PLIST_FILES= ${_PLIST_FILES:S,^,${FLAVOR}/,}
SOVERSION= ${${FLAVOR:S/llvm//}<18:?${DISTVERSION:R:R}:${DISTVERSION:R}}
+pre-everything::
+ @if [ -e ${.CURDIR}/files/patch-* ]; then \
+ ${ECHO_MSG} "Error: patch-* under \"files\" aren't supported. Move under \"files.<flavor>\" instead."; \
+ exit 1; \
+ fi
+
post-patch:
@${REINPLACE_CMD} -e '/pkgconfig/s/lib/&data/' \
${WRKSRC}/CMakeLists.txt