aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses/config.mk
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-03-09 12:11:58 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-03-09 12:11:58 +0000
commit31b4134f7b6ec1a2533ed40ab917999fc0915190 (patch)
treedf7c42863571e14b59adfbbc524c9dbaa17cc33e /lib/ncurses/config.mk
parent557158de6428fe513e55abf0f577e8e5861086c6 (diff)
downloadsrc-31b4134f7b6ec1a2533ed40ab917999fc0915190.tar.gz
src-31b4134f7b6ec1a2533ed40ab917999fc0915190.zip
Enable ncurses wide character support
Approved by: delphij (mentor) Tested by: kris on pointyhat (early version), current@
Notes
Notes: svn path=/head/; revision=167359
Diffstat (limited to 'lib/ncurses/config.mk')
-rw-r--r--lib/ncurses/config.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ncurses/config.mk b/lib/ncurses/config.mk
index 15d95473f14c..7bc7d012203a 100644
--- a/lib/ncurses/config.mk
+++ b/lib/ncurses/config.mk
@@ -4,7 +4,14 @@
NCURSES_DIR= ${.CURDIR}/../../../contrib/ncurses
+.if defined(ENABLE_WIDEC)
+LIB_SUFFIX= w
+CFLAGS+= -D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC
+NCURSES_CFG_H= ${.CURDIR}/../ncurses/ncurses_cfg.h
+.else
+LIB_SUFFIX=
NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
+.endif
CFLAGS+= -I.
.if exists(${.OBJDIR}/../ncurses${LIB_SUFFIX})