git: a4b2e2d68c29 - 2021Q4 - devel/llvm13: fix install with MLIR disabled

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Fri, 12 Nov 2021 17:50:28 UTC
The branch 2021Q4 has been updated by brooks:

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

commit a4b2e2d68c299e59e0edad2f066b8913f0773601
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2021-11-12 17:31:01 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2021-11-12 17:31:01 +0000

    devel/llvm13: fix install with MLIR disabled
    
    PR:             259570 (reported here, but tangential)
    Reported by:    stephen
    
    (cherry picked from commit 3f4163a191133d25b424dff14a6cde8d89c34e65)
---
 devel/llvm13/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/devel/llvm13/Makefile b/devel/llvm13/Makefile
index 7de7bc6d4ecd..85d670a823ca 100644
--- a/devel/llvm13/Makefile
+++ b/devel/llvm13/Makefile
@@ -537,6 +537,9 @@ post-install-DOCS-on:
 .if ! ${PORT_OPTIONS:MLIT}
 	${RM} ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/lit.1
 	${RM} ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/FileCheck.1
+.endif
+.if ! ${PORT_OPTIONS:MMLIR}
+	${RM} ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/mlir-tblgen.1
 .endif
 	${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/
 	${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/