- Add an option to enable 256 color support

Requested by:	Kevin Kobb <kkobb at skylinecorp.com>
This commit is contained in:
Rong-En Fan 2008-11-12 09:12:35 +00:00
parent 34d115b9a5
commit 0324acb461
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=222764

View file

@ -30,6 +30,8 @@ CONFIGURE_ARGS= --datadir=${PREFIX}/share/misc --disable-overwrite \
--enable-rpath --disable-root-environ \
--with-manpage-format=gzip --srcdir=../
OPTIONS= EXTCOLORS "Enable 256-color support (only for ncursesw)" off
# needed by devel/py-ncurses port
.if defined(WITH_TRACE)
CONFIGURE_ARGS+= --with-trace
@ -80,6 +82,11 @@ EXAMPLES_CPP= Makefile NEWS PROBLEMS README-first cursesapp.cc \
WITHOUT_WIDEC= yes
.endif
CONFIGURE_ARGS_WIDEC=--enable-widec
.if defined(WITH_EXTCOLORS)
CONFIGURE_ARGS_WIDEC+=--enable-ext-colors
.endif
.if !defined(WITHOUT_PROFILE) && !defined(NO_PROFILE) && !defined(NOPROFILE)
CONFIGURE_ARGS+=--with-profile
PLIST_SUB+= PROFILE=""
@ -122,7 +129,7 @@ post-configure:
.if !defined(WITHOUT_WIDEC)
cd ${.CURDIR} && \
${MAKE} ${.MAKEFLAGS} CONFIGURE_WRKSRC=${WIDEC_WRKSRC} \
CONFIGURE_ARGS="${CONFIGURE_ARGS} --enable-widec" \
CONFIGURE_ARGS="${CONFIGURE_ARGS} ${CONFIGURE_ARGS_WIDEC}" \
do-configure
.endif
.for d in test c++