git: 06353dcac80e - main - www/chromium: ship vk_swiftshader_icd.json for libvk_swiftshader

From: Robert Nagy <rnagy_at_FreeBSD.org>
Date: Sat, 03 Feb 2024 07:04:09 UTC
The branch main has been updated by rnagy:

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

commit 06353dcac80eae3bdd1a0641e6f07f48c719a93a
Author:     Robert Nagy <rnagy@FreeBSD.org>
AuthorDate: 2024-02-03 07:02:48 +0000
Commit:     Robert Nagy <rnagy@FreeBSD.org>
CommitDate: 2024-02-03 07:04:02 +0000

    www/chromium: ship vk_swiftshader_icd.json for libvk_swiftshader
    
    PR:             276637
    Submitted by:   Lars Herschke <lhersch@dssgmbh.de>
---
 www/chromium/Makefile  | 2 ++
 www/chromium/pkg-plist | 1 +
 2 files changed, 3 insertions(+)

diff --git a/www/chromium/Makefile b/www/chromium/Makefile
index 97fcdf2bee7b..ed14bef8d9e3 100644
--- a/www/chromium/Makefile
+++ b/www/chromium/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	chromium
 PORTVERSION=	121.0.6167.85
+PORTREVISION=	1
 CATEGORIES=	www wayland
 MASTER_SITES=	https://commondatastorage.googleapis.com/chromium-browser-official/ \
 		https://nerd.hu/distfiles/:external
@@ -360,6 +361,7 @@ do-install:
 	# SwiftShader
 .if ${ARCH} != aarch64
 	${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/libvk_swiftshader.so ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/vk_swiftshader_icd.json ${STAGEDIR}${DATADIR}
 .endif
 
 post-install-DEBUG-on:
diff --git a/www/chromium/pkg-plist b/www/chromium/pkg-plist
index 0bc185cbae17..5cea0e799185 100644
--- a/www/chromium/pkg-plist
+++ b/www/chromium/pkg-plist
@@ -132,6 +132,7 @@ bin/chrome
 %%DATADIR%%/resources/inspector_overlay/main.js
 %%DATADIR%%/snapshot_blob.bin
 %%NOT_AARCH64%%%%DATADIR%%/libvk_swiftshader.so
+%%NOT_AARCH64%%%%DATADIR%%/vk_swiftshader_icd.json
 %%DATADIR%%/v8_context_snapshot.bin
 %%DEBUG%%%%DATADIR%%/character_data_generator
 %%DEBUG%%%%DATADIR%%/libVkLayer_khronos_validation.so