git: 092b321f7a57 - main - dialog: fallback on bsddialog

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Tue, 10 Oct 2023 07:15:01 UTC
The branch main has been updated by bapt:

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

commit 092b321f7a57f033689c9b396cb001aa38cc5f43
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2023-10-10 07:13:57 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2023-10-10 07:13:57 +0000

    dialog: fallback on bsddialog
    
    dialog(1) is being replaced by bsddialog(1) in base, prepare the
    the ports tree to deal with it.
---
 Mk/bsd.commands.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Mk/bsd.commands.mk b/Mk/bsd.commands.mk
index 27d9d3e2f47e..7addad889763 100644
--- a/Mk/bsd.commands.mk
+++ b/Mk/bsd.commands.mk
@@ -28,7 +28,11 @@ CP?=			/bin/cp
 CPIO?=			/usr/bin/cpio
 CUT?=			/usr/bin/cut
 DC?=			/usr/bin/dc
+.if exists(/usr/bin/dialog)
 DIALOG?=		/usr/bin/dialog
+.else
+DIALOG?=		/usr/bin/bsddialog
+.endif
 DIALOG4PORTS?=		${LOCALBASE}/bin/dialog4ports
 DIFF?=			/usr/bin/diff
 DIRNAME?=		/usr/bin/dirname