diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2014-01-30 21:08:36 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2014-01-30 21:08:36 +0000 |
| commit | 38e233371c34a7ffe3bbb1ffd6c1d3f3d0479681 (patch) | |
| tree | 274baf7c9ba25224bc6f2c68d144d98c43f7e4e8 /gnu/usr.bin/dialog | |
| parent | 7ecf8b1c67d17dd602911d0d172e549e21a1934a (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/dialog')
| -rw-r--r-- | gnu/usr.bin/dialog/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gnu/usr.bin/dialog/Makefile b/gnu/usr.bin/dialog/Makefile index f9281c8fd685..7c98cfc062c8 100644 --- a/gnu/usr.bin/dialog/Makefile +++ b/gnu/usr.bin/dialog/Makefile @@ -3,11 +3,21 @@ DIALOG= ${.CURDIR}/../../../contrib/dialog PROG= dialog -DPADD= ${LIBDIALOG} ${LIBNCURSESW} ${LIBM} -LDADD= -ldialog -lncursesw -lm +DPADD= ${LIBDIALOG} ${LIBM} +LDADD= -ldialog -lm CFLAGS+= -I${.CURDIR} -I${DIALOG} .PATH: ${DIALOG} WARNS?= 6 +.include <bsd.own.mk> + +.if ${MK_NCURSESW} == "no" +DPADD+= ${LIBNCURSES} +LDADD+= -lncurses +.else +DPADD+= ${LIBNCURSESW} +LDADD+= -lncursesw +.endif + .include <bsd.prog.mk> |
