git: 5c996c4abb23 - main - databases/libgda5: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 18:10:18 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5c996c4abb239a8b1632eac4cf1d40f2f65b770c

commit 5c996c4abb239a8b1632eac4cf1d40f2f65b770c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 17:52:01 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 18:10:03 +0000

    databases/libgda5: Fix build with llvm16
    
    - Add missing USES=sqlite reported by poudriere testport
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 databases/libgda5/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/databases/libgda5/Makefile b/databases/libgda5/Makefile
index 8959d059eabc..aca18c8b9767 100644
--- a/databases/libgda5/Makefile
+++ b/databases/libgda5/Makefile
@@ -15,7 +15,7 @@ LICENSE_COMB=	multi
 LICENSE_FILE_GPLv2+ =	${WRKSRC}/COPYING
 LICENSE_FILE_LGPL20+ =	${WRKSRC}/COPYING.LIB
 
-USES=		cpe python readline shebangfix tar:xz
+USES=		cpe python readline shebangfix sqlite tar:xz
 CPE_VENDOR=	gnome
 LIBGDA5_SLAVE?=	no
 SHEBANG_FILES=	libgda-report/RML/*/*.py
@@ -98,6 +98,10 @@ CFLAGS+=		-I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd
 CONFIGURE_ARGS+=	--without-java
 .endif
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|-ldl||g' \
 		${WRKSRC}/configure