git: 848ee2a3a8b4 - main - bsddialog: actually add directories

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Wed, 24 Nov 2021 11:14:07 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=848ee2a3a8b47c9905fc51fefcf60eb371edbb98

commit 848ee2a3a8b47c9905fc51fefcf60eb371edbb98
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2021-11-24 11:13:45 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2021-11-24 11:13:45 +0000

    bsddialog: actually add directories
---
 lib/libbsddialog/Makefile  | 30 ++++++++++++++++++++++++++++++
 usr.bin/bsddialog/Makefile | 12 ++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/lib/libbsddialog/Makefile b/lib/libbsddialog/Makefile
new file mode 100644
index 000000000000..14e06fde0c7e
--- /dev/null
+++ b/lib/libbsddialog/Makefile
@@ -0,0 +1,30 @@
+BSDDIALOG=	${SRCTOP}/contrib/bsddialog
+
+.PATH:	${BSDDIALOG}/lib
+
+LIB=	bsddialog
+PRIVATELIB=	yes
+SHLIB_MAJOR=	0
+SRCS=	barbox.c \
+	commandbox.c \
+	editorbox.c \
+	filebox.c \
+	formbox.c \
+	infobox.c \
+	lib_util.c \
+	lib_util.h \
+	libbsddialog.c \
+	menubox.c \
+	messagebox.c \
+	textbox.c \
+	theme.c \
+	timebox.c
+INCS=	bsddialog.h \
+	bsddialog_theme.h
+MAN=
+
+LIBADD=	ncursesw tinfow formw
+
+WARNS=	2
+
+.include <bsd.lib.mk>
diff --git a/usr.bin/bsddialog/Makefile b/usr.bin/bsddialog/Makefile
new file mode 100644
index 000000000000..3ff5c378418e
--- /dev/null
+++ b/usr.bin/bsddialog/Makefile
@@ -0,0 +1,12 @@
+BSDDIALOG=	${SRCTOP}/contrib/bsddialog
+.PATH:	${BSDDIALOG}
+
+PROG=	bsddialog
+SRCS=	bsddialog.c
+MAN=
+CFLAGS+=	-I${BSDDIALOG}/lib
+LIBADD=	bsddialog
+
+WARNS=	2
+
+.include <bsd.prog.mk>