git: 3bd54d7cbbfd - main - databases/py-postgresql: Fix build with llvm15

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

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

commit 3bd54d7cbbfdba7cb178b8372af2532ef33e1081
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-06 18:57:13 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-06 20:45:24 +0000

    databases/py-postgresql: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 databases/py-postgresql/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/databases/py-postgresql/Makefile b/databases/py-postgresql/Makefile
index 3b8da9df1fe1..e00a753494c8 100644
--- a/databases/py-postgresql/Makefile
+++ b/databases/py-postgresql/Makefile
@@ -15,4 +15,10 @@ LICENSE=	BSD3CLAUSE
 USES=		pgsql python:3.3+
 USE_PYTHON=	distutils autoplist
 
-.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>