diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-07 11:04:55 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-07 11:04:55 +0000 |
commit | c334d9a580fcde202b1fd2712bf7ca24c319971d (patch) | |
tree | 00d5820137f326e61393e12933e7bd9df501391b /devel/ncurses | |
parent | 6ce3458164fe53dbc5240050b3690be0efd44392 (diff) | |
download | pkgsrc-c334d9a580fcde202b1fd2712bf7ca24c319971d.tar.gz |
Make USE_NCURSES more specific. Allow selecting chgat as feature, so
that more packages can work without ncurses on NetBSD 5.99.14+.
Diffstat (limited to 'devel/ncurses')
-rw-r--r-- | devel/ncurses/builtin.mk | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/devel/ncurses/builtin.mk b/devel/ncurses/builtin.mk index a0be80c8c79..cb767bf9c6a 100644 --- a/devel/ncurses/builtin.mk +++ b/devel/ncurses/builtin.mk @@ -1,11 +1,13 @@ -# $NetBSD: builtin.mk,v 1.23 2008/02/29 16:19:21 jlam Exp $ +# $NetBSD: builtin.mk,v 1.24 2009/07/07 11:04:55 joerg Exp $ BUILTIN_PKG:= ncurses BUILTIN_FIND_LIBS:= ncurses curses -BUILTIN_FIND_FILES_VAR:= H_NCURSES +BUILTIN_FIND_FILES_VAR:= H_NCURSES H_CURSES BUILTIN_FIND_FILES.H_NCURSES= /usr/include/ncurses.h /usr/include/curses.h BUILTIN_FIND_GREP.H_NCURSES= \#define[ ]*NCURSES_VERSION +BUILTIN_FIND_FILES.H_CURSES= /usr/include/ncurses.h /usr/include/curses.h +BUILTIN_FIND_GREP.H_CURSES= mvwchgat .include "../../mk/buildlink3/bsd.builtin.mk" @@ -91,11 +93,15 @@ USE_BUILTIN.ncurses= no .endif MAKEVARS+= USE_BUILTIN.ncurses -# If USE_NCURSES is defined, then force the use of an ncurses -# implementation. +# If USE_NCURSES is set to yes, the use of an ncurses implementation +# is forced. # +# If it is set to chgat, a curses implementation with chgat(3) support +# is considered good enough. .if defined(USE_NCURSES) -. if !empty(IS_BUILTIN.ncurses:M[nN][oO]) +. if empty(USE_NCURSES:M[yY][eE][sS]) && !empty(USE_NCURSES:Mchgat) &&\ + empty(H_CURSES:M__nonexistent__) +. elif !empty(IS_BUILTIN.ncurses:M[nN][oO]) USE_BUILTIN.ncurses= no . endif .endif |