summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup/Makefile
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-05-30 07:28:27 +0000
committerngie <ngie@FreeBSD.org>2017-05-30 07:28:27 +0000
commitd8f677d335aa48afa79c8e5827da4c308be9e648 (patch)
tree224338088e9997844713927b1ad35176256d4117 /usr.sbin/tzsetup/Makefile
parent2c4f7501e0865416b5e978f93a215a1707816f60 (diff)
downloadFreeBSD-src-d8f677d335aa48afa79c8e5827da4c308be9e648.zip
FreeBSD-src-d8f677d335aa48afa79c8e5827da4c308be9e648.tar.gz
MFC r306375,r307802:
r306375 (by emaste): Add a WITHOUT_DIALOG src.conf(5) knob It also turns off dependencies (bsdinstall, bsdconfig, dpv, tzsetup). r307802 (by bapt): Fix build of tzsetup when WITHOUT_DIALOG is set Hide dialog specific code behind HAVE_DIALOG. It allows to build a stripped down version (missing the dialog UI) but perfectly function tzsetup when world is built WITHOUT_DIALOG Reorganise a bit the code to limit the number of blocks under HAVE_DIALOG
Diffstat (limited to 'usr.sbin/tzsetup/Makefile')
-rw-r--r--usr.sbin/tzsetup/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/tzsetup/Makefile b/usr.sbin/tzsetup/Makefile
index de7375f..d6867a8 100644
--- a/usr.sbin/tzsetup/Makefile
+++ b/usr.sbin/tzsetup/Makefile
@@ -1,12 +1,16 @@
# $FreeBSD$
+.include <src.opts.mk>
+
PROG= tzsetup
MAN= tzsetup.8
-CFLAGS+= -I${.CURDIR}/../../contrib/dialog -I.
+CFLAGS+= -I.
+.if ${MK_DIALOG} != no
WARNS?= 3
-
+CFLAGS+= -I${.CURDIR}/../../contrib/dialog -DHAVE_DIALOG
LIBADD= dialog ncursesw
+.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud