git: 963e20c81248 - main - dns/bind918: fix build in some obscure cases

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Wed, 28 Sep 2022 14:10:22 UTC
The branch main has been updated by mat:

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

commit 963e20c81248fad134a246950a470f2b41e6a74f
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2022-09-28 14:05:04 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2022-09-28 14:09:43 +0000

    dns/bind918: fix build in some obscure cases
    
    If sphinx is installed while not requested, it gets picked up, tell
    configure that it really is not here, and things blow up.
    
    PR:             262773
    MFH:            yes
---
 dns/bind918/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dns/bind918/Makefile b/dns/bind918/Makefile
index c531b65c519d..7e8706f62ca2 100644
--- a/dns/bind918/Makefile
+++ b/dns/bind918/Makefile
@@ -177,6 +177,10 @@ USE_PERL5=		build
 BUILD_DEPENDS+=		cmocka>0:sysutils/cmocka
 .endif
 
+.if !${PORT_OPTIONS:MMANMAGES} && !${PORT_OPTIONS:MDOCS}
+CONFIGURE_ENV+=	ac_cv_path_SPHINX_BUILD=no
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if ${SSL_DEFAULT} == base