git: 2d0c6239fd31 - main - security/p5-Authen-Krb5-Simple: unbreak build with MIT KRB5 in base

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Wed, 22 Oct 2025 11:36:31 UTC
The branch main has been updated by fluffy:

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

commit 2d0c6239fd31b88925d5050ee428592da330b988
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-10-22 11:36:15 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-10-22 11:36:15 +0000

    security/p5-Authen-Krb5-Simple: unbreak build with MIT KRB5 in base
    
    Reported by:    bulk -t
    Approved by:    portmgr blanket
---
 security/p5-Authen-Krb5-Simple/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/security/p5-Authen-Krb5-Simple/Makefile b/security/p5-Authen-Krb5-Simple/Makefile
index b9e8e6ab6c68..d41811f5cecb 100644
--- a/security/p5-Authen-Krb5-Simple/Makefile
+++ b/security/p5-Authen-Krb5-Simple/Makefile
@@ -20,7 +20,9 @@ OPTIONS_SINGLE_GSSAPI=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
 OPTIONS_DEFAULT=	GSSAPI_BASE
 
 GSSAPI_BASE_USES=	gssapi
+.if !exists(/usr/libdata/pkgconfig/mit-krb5.pc)
 GSSAPI_BASE_CONFIGURE_ENV=	HAVE_HEIMDAL=1
+.endif
 GSSAPI_HEIMDAL_USES=	gssapi:heimdal
 GSSAPI_HEIMDAL_CONFIGURE_ENV=	HAVE_HEIMDAL=1
 GSSAPI_MIT_USES=	gssapi:mit