[Midnightbsd-cvs] src [11296] trunk/usr.sbin/bsdinstall/distfetch/Makefile: deal with ncurses conditional

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jul 4 09:42:33 EDT 2018


Revision: 11296
          http://svnweb.midnightbsd.org/src/?rev=11296
Author:   laffer1
Date:     2018-07-04 09:42:32 -0400 (Wed, 04 Jul 2018)
Log Message:
-----------
deal with ncurses conditional

Modified Paths:
--------------
    trunk/usr.sbin/bsdinstall/distfetch/Makefile

Modified: trunk/usr.sbin/bsdinstall/distfetch/Makefile
===================================================================
--- trunk/usr.sbin/bsdinstall/distfetch/Makefile	2018-07-04 13:42:07 UTC (rev 11295)
+++ trunk/usr.sbin/bsdinstall/distfetch/Makefile	2018-07-04 13:42:32 UTC (rev 11296)
@@ -1,11 +1,22 @@
 # $MidnightBSD$
-# $FreeBSD: src/usr.sbin/bsdinstall/distfetch/Makefile,v 1.1 2011/02/18 14:54:34 nwhitehorn Exp $
+# $FreeBSD: stable/10/usr.sbin/bsdinstall/distfetch/Makefile 291819 2015-12-04 19:16:56Z bdrewery $
 
-BINDIR= /usr/libexec/bsdinstall
+BINDIR= ${LIBEXECDIR}/bsdinstall
 PROG=	distfetch
-LDADD=	-lfetch -lncursesw -ldialog -lm
+DPADD=	${LIBFETCH} ${LIBDIALOG} ${LIBM}
+LDADD=	-lfetch -ldialog -lm
 
 WARNS?=	6
-NO_MAN=	true
+MAN=
 
+.include <bsd.own.mk>
+
+.if ${MK_NCURSESW} == "no"
+DPADD+=	${LIBNCURSES}
+LDADD+=	-lncurses
+.else
+DPADD+=	${LIBNCURSESW}
+LDADD+=	-lncursesw
+.endif
+
 .include <bsd.prog.mk>



More information about the Midnightbsd-cvs mailing list