git: 955fa31e5243 - main - sysutils/zeitgeist: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 26 Jun 2023 00:10:04 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=955fa31e524358416e101d9047693a87497a245b

commit 955fa31e524358416e101d9047693a87497a245b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 23:34:13 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 00:09:47 +0000

    sysutils/zeitgeist: Fix build with llvm16
    
    - Fix missing LIB_DEPENDS reported by poudriere testport
    - Utilize USES=localbase
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 sysutils/zeitgeist/Makefile | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/sysutils/zeitgeist/Makefile b/sysutils/zeitgeist/Makefile
index 3e4af1604af4..f4089ca78f73 100644
--- a/sysutils/zeitgeist/Makefile
+++ b/sysutils/zeitgeist/Makefile
@@ -15,11 +15,12 @@ LICENSE_COMB=	multi
 BUILD_DEPENDS=	dee-tool:devel/dee \
 		rapper:textproc/raptor2 \
 		${PYTHON_PKGNAMEPREFIX}rdflib>=4.1.1:textproc/py-rdflib@${PY_FLAVOR}
+LIB_DEPENDS=	libharfbuzz.so:print/harfbuzz
 RUN_DEPENDS=	${PYTHON_SITELIBDIR}/xdg/__init__.py:devel/py-xdg@${PY_FLAVOR} \
 		${PYTHON_SITELIBDIR}/dbus/__init__.py:devel/py-dbus@${PY_FLAVOR}
 
-USES=		autoreconf gettext gmake gnome libtool pathfix pkgconfig python \
-		sqlite tar:xz vala:build
+USES=		autoreconf gettext gmake gnome libtool localbase:ldflags pathfix pkgconfig \
+		python sqlite tar:xz vala:build
 USE_GITLAB=	yes
 GL_SITE=	https://gitlab.freedesktop.org
 GL_COMMIT=	8b89364c077b46734d193c5b8a80f83b0fc917dd
@@ -27,20 +28,27 @@ USE_GNOME=	cairo gdkpixbuf2 glib20 intlhack \
 		introspection:build
 USE_LDCONFIG=	yes
 USE_PYTHON=	py3kplist
-GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-INSTALL_TARGET=	install-strip
 
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-fts --disable-telepathy \
 		--disable-downloads-monitor
 
+INSTALL_TARGET=	install-strip
+
 OPTIONS_SUB=	yes
 OPTIONS_DEFINE=	DATAHUB
 OPTIONS_DEFAULT=DATAHUB
+
+DATAHUB_DESC=	Passive loggers for Zeitgeist
+
 DATAHUB_LIB_DEPENDS=	libjson-glib-1.0.so:devel/json-glib
 DATAHUB_USE=	gnome=gtk30
 DATAHUB_CONFIGURE_ENABLE=	datahub
-DATAHUB_DESC=	Passive loggers for Zeitgeist
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
 
 .include <bsd.port.mk>