git: e629fd76022c - 2022Q3 - dns/bind918: fix build in some obscure cases

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

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

commit e629fd76022cf72d6c2bb35816fa8c082143172d
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:10:54 +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
    (cherry picked from commit 963e20c81248fad134a246950a470f2b41e6a74f)
---
 dns/bind918/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dns/bind918/Makefile b/dns/bind918/Makefile
index e28c1a714d51..fbd4db198530 100644
--- a/dns/bind918/Makefile
+++ b/dns/bind918/Makefile
@@ -176,6 +176,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