git: 2f450c70cd91 - main - www/webkit2-gtk4: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 23 Jun 2023 19:30:55 UTC
The branch main has been updated by bofh:

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

commit 2f450c70cd91fdcbf12a8f82440db235cd90a801
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-23 18:43:46 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-23 19:30:41 +0000

    www/webkit2-gtk4: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 www/webkit2-gtk4/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/www/webkit2-gtk4/Makefile b/www/webkit2-gtk4/Makefile
index 4f7bdf06482b..b0d7445a16b7 100644
--- a/www/webkit2-gtk4/Makefile
+++ b/www/webkit2-gtk4/Makefile
@@ -99,6 +99,12 @@ WAYLAND_LIB_DEPENDS=	libwayland-egl.so:graphics/wayland \
 			libwpe-1.0.so:www/libwpe \
 			libWPEBackend-fdo-1.0.so:www/wpebackend-fdo
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CXXFLAGS+=	-Wno-error=enum-constexpr-conversion
+.endif
+
 pre-configure:
 # .if !exists() evaluates too early before cairo has a chance to be installed
 	@if ! pkg-config --exists cairo-egl; then \