git: aa34010115ee - main - devel/libsoup3: unbreak build on recent 15.0 with MIT KRB5 (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Tue, 12 Aug 2025 11:02:37 UTC
The branch main has been updated by fluffy:

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

commit aa34010115ee5df5e4966aac091cb21373a3e332
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-08-12 11:01:17 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-08-12 11:01:17 +0000

    devel/libsoup3: unbreak build on recent 15.0 with MIT KRB5 (+)
    
    PR:     288797
---
 devel/libsoup3/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/libsoup3/Makefile b/devel/libsoup3/Makefile
index 03ce88b5e463..9e28e9e85a54 100644
--- a/devel/libsoup3/Makefile
+++ b/devel/libsoup3/Makefile
@@ -52,7 +52,9 @@ MESON_ARGS=	-Dtests=false \
 
 GSSAPI_BASE_USES=		gssapi
 GSSAPI_BASE_MESON_ON=		-Dgssapi=enabled
+.if !exists(/usr/libdata/pkgconfig/mit-krb5.pc)
 GSSAPI_BASE_VARS=		pkgconfig_paths=${PATCHDIR}
+.endif
 
 GSSAPI_HEIMDAL_USES=		gssapi:heimdal
 GSSAPI_HEIMDAL_MESON_ON=	-Dgssapi=enabled
@@ -67,8 +69,10 @@ VAPI_MESON_ENABLED=		vapi
 
 BINARY_ALIAS=	python3=${PYTHON_CMD}
 
+.if !exists(/usr/libdata/pkgconfig/mit-krb5.pc)
 post-install-GSSAPI_BASE-on:
 	${SED} -e 's|krb5-gssapi,||' \
 		${BUILD_WRKSRC}/meson-private/libsoup-3.0.pc > ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libsoup-3.0.pc
+.endif
 
 .include <bsd.port.mk>