diff options
author | jlam <jlam@pkgsrc.org> | 2008-02-21 17:14:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-02-21 17:14:17 +0000 |
commit | 306669ef3b609721ba7d15ad18abdb7ef4a88ae4 (patch) | |
tree | daa825a8661277febb29faf8fad1a85dafd1136f /devel/ncursesw | |
parent | 1846dd357bb6f3e70787ba04352ade9f1135b180 (diff) | |
download | pkgsrc-306669ef3b609721ba7d15ad18abdb7ef4a88ae4.tar.gz |
If we're using real ncursesw, then force using a real ncurses.
Diffstat (limited to 'devel/ncursesw')
-rw-r--r-- | devel/ncursesw/builtin.mk | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/devel/ncursesw/builtin.mk b/devel/ncursesw/builtin.mk index b9ac497287d..8b561bf7ca6 100644 --- a/devel/ncursesw/builtin.mk +++ b/devel/ncursesw/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.3 2008/02/20 22:29:48 jlam Exp $ +# $NetBSD: builtin.mk,v 1.4 2008/02/21 17:14:17 jlam Exp $ BUILTIN_PKG:= ncursesw @@ -87,14 +87,11 @@ USE_BUILTIN.ncursesw= yes .endif MAKEVARS+= USE_BUILTIN.ncursesw -# If USE_NCURSESW is defined, then force the use of an ncurses/ncursesw -# implementation. +# If USE_NCURSESW is defined, then only use the built-in "ncursesw" +# if it's *actually* ncursesw. # -.if defined(USE_NCURSESW) -USE_NCURSES= yes -. if !empty(IS_BUILTIN.ncursesw:M[nN][oO]) +.if defined(USE_NCURSESW) && !empty(IS_BUILTIN.ncursesw:M[nN][oO]) USE_BUILTIN.ncursesw= no -. endif .endif ### @@ -120,6 +117,7 @@ BUILDLINK_CPPFLAGS.ncursesw+= -DHAVE_WCHAR=1 . if !empty(USE_BUILTIN.ncursesw:M[nN][oO]) || \ (!empty(USE_BUILTIN.ncursesw:M[yY][eE][sS]) && !empty(IS_BUILTIN.ncursesw:M[yY][eE][sS])) +USE_NCURSES= yes BUILDLINK_CPPFLAGS.ncursesw+= -D_XOPEN_SOURCE_EXTENDED=1 . endif BUILDLINK_TARGETS+= buildlink-ncursesw-curses-h |