summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2014-07-17 18:24:34 +0000
committerbrooks <brooks@FreeBSD.org>2014-07-17 18:24:34 +0000
commitea5a037d1f7b17969046da0165700dcc51245472 (patch)
tree3ff2151befbc35e13a819af1c5dc8b2239bd1183 /usr.bin
parent1dcd5569710eaeea64703d6bb3affedc5cc74ce1 (diff)
downloadFreeBSD-src-ea5a037d1f7b17969046da0165700dcc51245472.zip
FreeBSD-src-ea5a037d1f7b17969046da0165700dcc51245472.tar.gz
Replace all uses of libncurses and libtermcap with their wide character
variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/clang/clang.prog.mk4
-rw-r--r--usr.bin/ee/Makefile4
-rw-r--r--usr.bin/ftp/Makefile4
-rw-r--r--usr.bin/less/Makefile4
-rw-r--r--usr.bin/msgs/Makefile4
-rw-r--r--usr.bin/ncal/Makefile4
-rw-r--r--usr.bin/tabs/Makefile4
-rw-r--r--usr.bin/telnet/Makefile4
-rw-r--r--usr.bin/tftp/Makefile4
-rw-r--r--usr.bin/tput/Makefile4
-rw-r--r--usr.bin/tset/Makefile5
-rw-r--r--usr.bin/ul/Makefile4
-rw-r--r--usr.bin/units/Makefile4
-rw-r--r--usr.bin/vi/Makefile5
14 files changed, 27 insertions, 31 deletions
diff --git a/usr.bin/clang/clang.prog.mk b/usr.bin/clang/clang.prog.mk
index 5f8f7a9..1b4e126 100644
--- a/usr.bin/clang/clang.prog.mk
+++ b/usr.bin/clang/clang.prog.mk
@@ -11,8 +11,8 @@ DPADD+= ${.OBJDIR}/../../../lib/clang/lib${lib}/lib${lib}.a
LDADD+= ${.OBJDIR}/../../../lib/clang/lib${lib}/lib${lib}.a
.endfor
-DPADD+= ${LIBNCURSES}
-LDADD+= -lncurses
+DPADD+= ${LIBNCURSESW}
+LDADD+= -lncursesw
BINDIR?= /usr/bin
diff --git a/usr.bin/ee/Makefile b/usr.bin/ee/Makefile
index 7437731..8dcf2f5 100644
--- a/usr.bin/ee/Makefile
+++ b/usr.bin/ee/Makefile
@@ -8,8 +8,8 @@ CFLAGS+= -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB \
PROG= ee
LINKS= ${BINDIR}/ee ${BINDIR}/ree ${BINDIR}/ee ${BINDIR}/edit
MLINKS= ee.1 ree.1 ee.1 edit.1
-DPADD= ${LIBNCURSES}
-LDADD= -lncurses
+DPADD= ${LIBNCURSESW}
+LDADD= -lncursesw
WARNS?= 2
diff --git a/usr.bin/ftp/Makefile b/usr.bin/ftp/Makefile
index abdd6b7..2cd7f36 100644
--- a/usr.bin/ftp/Makefile
+++ b/usr.bin/ftp/Makefile
@@ -20,8 +20,8 @@ CFLAGS+= -DINET6
.endif
CFLAGS+= -I${.CURDIR} -I${TNFTP}
-LDADD= -ledit -ltermcap -lutil
-DPADD= ${LIBEDIT} ${LIBTERMCAP} ${LIBUTIL}
+LDADD= -ledit -ltermcapw -lutil
+DPADD= ${LIBEDIT} ${LIBTERMCAPW} ${LIBUTIL}
WARNS?= 2
diff --git a/usr.bin/less/Makefile b/usr.bin/less/Makefile
index 3bfadfa..22147cd 100644
--- a/usr.bin/less/Makefile
+++ b/usr.bin/less/Makefile
@@ -8,8 +8,8 @@ SRCS= main.c screen.c brac.c ch.c charset.c cmdbuf.c command.c cvt.c \
signal.c tags.c ttyin.c version.c
SCRIPTS=lesspipe.sh zless.sh
SCRIPTSNAME_lesspipe.sh=lesspipe.sh
-DPADD= ${LIBTERMCAP}
-LDADD= -ltermcap
+DPADD= ${LIBTERMCAPW}
+LDADD= -ltermcapw
LINKS= ${BINDIR}/less ${BINDIR}/more \
${BINDIR}/zless ${BINDIR}/bzless \
${BINDIR}/zless ${BINDIR}/xzless \
diff --git a/usr.bin/msgs/Makefile b/usr.bin/msgs/Makefile
index 21cb151..6c5a8d9 100644
--- a/usr.bin/msgs/Makefile
+++ b/usr.bin/msgs/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PROG= msgs
-DPADD= ${LIBTERMCAP}
-LDADD= -ltermcap
+DPADD= ${LIBTERMCAPW}
+LDADD= -ltermcapw
.include <bsd.prog.mk>
diff --git a/usr.bin/ncal/Makefile b/usr.bin/ncal/Makefile
index b26605f..1422ce1 100644
--- a/usr.bin/ncal/Makefile
+++ b/usr.bin/ncal/Makefile
@@ -4,8 +4,8 @@
PROG= ncal
-DPADD= ${LIBCALENDAR} ${LIBTERMCAP}
-LDADD= -lcalendar -ltermcap
+DPADD= ${LIBCALENDAR} ${LIBTERMCAPW}
+LDADD= -lcalendar -ltermcapw
LINKS= ${BINDIR}/ncal ${BINDIR}/cal
MLINKS= ncal.1 cal.1
diff --git a/usr.bin/tabs/Makefile b/usr.bin/tabs/Makefile
index 4b5d40e..2c5f729 100644
--- a/usr.bin/tabs/Makefile
+++ b/usr.bin/tabs/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PROG= tabs
-DPADD= ${LIBTERMCAP}
-LDADD= -ltermcap
+DPADD= ${LIBTERMCAPW}
+LDADD= -ltermcapw
.include <bsd.prog.mk>
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile
index 2952237..a683f0a 100644
--- a/usr.bin/telnet/Makefile
+++ b/usr.bin/telnet/Makefile
@@ -23,8 +23,8 @@ WARNS?= 2
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
-DPADD= ${LIBTERMCAP} ${LIBTELNET}
-LDADD= -ltermcap ${LIBTELNET}
+DPADD= ${LIBTERMCAPW} ${LIBTELNET}
+LDADD= -ltermcapw ${LIBTELNET}
.if !defined(RELEASE_CRUNCH)
CFLAGS+= -DIPSEC
diff --git a/usr.bin/tftp/Makefile b/usr.bin/tftp/Makefile
index 7521e4e..88f8c37 100644
--- a/usr.bin/tftp/Makefile
+++ b/usr.bin/tftp/Makefile
@@ -7,7 +7,7 @@ PROG= tftp
SRCS= main.c tftp-file.c tftp-io.c tftp-options.c tftp-transfer.c
SRCS+= tftp-utils.c tftp.c
CFLAGS+=-I${.CURDIR}/../../libexec/tftpd
-DPADD= ${LIBEDIT} ${LIBTERMCAP}
-LDADD= -ledit -ltermcap
+DPADD= ${LIBEDIT} ${LIBTERMCAPW}
+LDADD= -ledit -ltermcapw
.include <bsd.prog.mk>
diff --git a/usr.bin/tput/Makefile b/usr.bin/tput/Makefile
index 143dc65..c42ef79 100644
--- a/usr.bin/tput/Makefile
+++ b/usr.bin/tput/Makefile
@@ -2,8 +2,8 @@
# $FreeBSD$
PROG= tput
-DPADD= ${LIBTERMCAP}
-LDADD= -ltermcap
+DPADD= ${LIBTERMCAPW}
+LDADD= -ltermcapw
SCRIPTS=clear.sh
MLINKS= tput.1 clear.1
diff --git a/usr.bin/tset/Makefile b/usr.bin/tset/Makefile
index 126cf321..c486bf8 100644
--- a/usr.bin/tset/Makefile
+++ b/usr.bin/tset/Makefile
@@ -1,10 +1,11 @@
# @(#)Makefile 8.1 (Berkeley) 6/9/93
+# $FreeBSD$
PROG= tset
SRCS= map.c misc.c set.c term.c tset.c wrterm.c
-DPADD= ${LIBTERMCAP}
-LDADD= -ltermcap
+DPADD= ${LIBTERMCAPW}
+LDADD= -ltermcapw
LINKS= ${BINDIR}/tset ${BINDIR}/reset
MLINKS= tset.1 reset.1
diff --git a/usr.bin/ul/Makefile b/usr.bin/ul/Makefile
index 9aaf775..685e4a4 100644
--- a/usr.bin/ul/Makefile
+++ b/usr.bin/ul/Makefile
@@ -3,7 +3,7 @@
PROG= ul
-DPADD= ${LIBTERMCAP}
-LDADD= -ltermcap
+DPADD= ${LIBTERMCAPW}
+LDADD= -ltermcapw
.include <bsd.prog.mk>
diff --git a/usr.bin/units/Makefile b/usr.bin/units/Makefile
index 3abbd3f..3757c85 100644
--- a/usr.bin/units/Makefile
+++ b/usr.bin/units/Makefile
@@ -6,8 +6,8 @@ PROG= units
FILES= units.lib
FILESDIR= ${SHAREDIR}/misc
-LDADD+=-ledit -ltermcap
-DPADD+=${LIBEDIT} ${LIBTERMCAP}
+LDADD+=-ledit -ltermcapw
+DPADD+=${LIBEDIT} ${LIBTERMCAPW}
.if ${MK_TESTS} != "no"
SUBDIR+= tests
diff --git a/usr.bin/vi/Makefile b/usr.bin/vi/Makefile
index e3ee3f6e..6ed95ee 100644
--- a/usr.bin/vi/Makefile
+++ b/usr.bin/vi/Makefile
@@ -36,14 +36,9 @@ CFLAGS+=-I${.CURDIR} -I${SRCDIR} -I${SRCDIR}/regex
DPADD= ${LIBUTIL}
LDADD= -lutil
-.if defined(RESCUE) || defined(RELEASE_CRUNCH)
-DPADD+= ${LIBNCURSES}
-LDADD+= -lncurses
-.else
CFLAGS+= -DUSE_WIDECHAR
DPADD+= ${LIBNCURSESW}
LDADD+= -lncursesw
-.endif
.if ${MK_ICONV} == "yes" && !defined(RESCUE) && !defined(RELEASE_CRUNCH)
CFLAGS+= -DUSE_ICONV
OpenPOWER on IntegriCloud