summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/distfetch/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bsdinstall/distfetch/Makefile')
-rw-r--r--usr.sbin/bsdinstall/distfetch/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.sbin/bsdinstall/distfetch/Makefile b/usr.sbin/bsdinstall/distfetch/Makefile
index bb82908..9c4becd 100644
--- a/usr.sbin/bsdinstall/distfetch/Makefile
+++ b/usr.sbin/bsdinstall/distfetch/Makefile
@@ -2,10 +2,20 @@
BINDIR= /usr/libexec/bsdinstall
PROG= distfetch
-DPADD= ${LIBFETCH} ${LIBNCURSESW} ${LIBDIALOG} ${LIBM}
-LDADD= -lfetch -lncursesw -ldialog -lm
+DPADD= ${LIBFETCH} ${LIBDIALOG} ${LIBM}
+LDADD= -lfetch -ldialog -lm
WARNS?= 6
NO_MAN= true
+.include <bsd.own.mk>
+
+.if ${MK_NCURSESW} == "no"
+DPADD+= ${LIBNCURSES}
+LDADD+= -lncurses
+.else
+DPADD+= ${LIBNCURSESW}
+LDADD+= -lncursesw
+.endif
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud