git: 94b11390fc21 - main - graphics/igt-gpu-tools: Fix build with lvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 06 Jun 2023 17:48:37 UTC
The branch main has been updated by bofh:

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

commit 94b11390fc210a934b99078c3efd09b022aedce8
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-06 15:59:33 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-06 17:47:38 +0000

    graphics/igt-gpu-tools: Fix build with lvm15
    
    Approved by:    portmgr (blanket)
---
 graphics/igt-gpu-tools/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/graphics/igt-gpu-tools/Makefile b/graphics/igt-gpu-tools/Makefile
index 8e91ae9c8159..ac60a2c02a4e 100644
--- a/graphics/igt-gpu-tools/Makefile
+++ b/graphics/igt-gpu-tools/Makefile
@@ -68,4 +68,10 @@ PLIST_SUB+=	AMD64=""
 PLIST_SUB+=	AMD64="@comment "
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
+.include <bsd.port.post.mk>