| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: builtin.mk,v 1.13 2008/02/25 04:19:34 jlam Exp $ | | 1 | # $NetBSD: builtin.mk,v 1.14 2008/02/26 11:06:19 obache Exp $ |
2 | | | 2 | |
3 | BUILTIN_PKG:= ncurses | | 3 | BUILTIN_PKG:= ncurses |
4 | | | 4 | |
5 | BUILTIN_FIND_LIBS:= ncurses curses | | 5 | BUILTIN_FIND_LIBS:= ncurses curses |
6 | BUILTIN_FIND_FILES_VAR:= H_NCURSES | | 6 | BUILTIN_FIND_FILES_VAR:= H_NCURSES |
7 | BUILTIN_FIND_FILES.H_NCURSES= /usr/include/ncurses.h /usr/include/curses.h | | 7 | BUILTIN_FIND_FILES.H_NCURSES= /usr/include/ncurses.h /usr/include/curses.h |
8 | BUILTIN_FIND_GREP.H_NCURSES= \#define[ ]*NCURSES_VERSION | | 8 | BUILTIN_FIND_GREP.H_NCURSES= \#define[ ]*NCURSES_VERSION |
9 | | | 9 | |
10 | .include "../../mk/buildlink3/bsd.builtin.mk" | | 10 | .include "../../mk/buildlink3/bsd.builtin.mk" |
11 | | | 11 | |
12 | ### | | 12 | ### |
13 | ### Determine if there is a built-in implementation of the package and | | 13 | ### Determine if there is a built-in implementation of the package and |
14 | ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). | | 14 | ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). |
| @@ -64,26 +64,27 @@ USE_BUILTIN.ncurses!= \ | | | @@ -64,26 +64,27 @@ USE_BUILTIN.ncurses!= \ |
64 | fi | | 64 | fi |
65 | . endif | | 65 | . endif |
66 | . endfor | | 66 | . endfor |
67 | . endif | | 67 | . endif |
68 | # XXX | | 68 | # XXX |
69 | # XXX By default, assume that the native curses on NetBSD systems is | | 69 | # XXX By default, assume that the native curses on NetBSD systems is |
70 | # XXX good enough to replace ncurses. In reality, no version of NetBSD | | 70 | # XXX good enough to replace ncurses. In reality, no version of NetBSD |
71 | # XXX has a curses library that can completely replace ncurses; however, | | 71 | # XXX has a curses library that can completely replace ncurses; however, |
72 | # XXX some versions implement enough of ncurses that some packages are | | 72 | # XXX some versions implement enough of ncurses that some packages are |
73 | # XXX happy. | | 73 | # XXX happy. |
74 | # XXX | | 74 | # XXX |
75 | . if ${OPSYS} == "NetBSD" | | 75 | . if ${OPSYS} == "NetBSD" |
76 | USE_BUILTIN.ncurses= yes | | 76 | USE_BUILTIN.ncurses= yes |
| | | 77 | H_NCURSES= /usr/include/curses.h |
77 | . endif | | 78 | . endif |
78 | # | | 79 | # |
79 | # Some platforms don't have a curses implementation that can replace | | 80 | # Some platforms don't have a curses implementation that can replace |
80 | # ncurses. | | 81 | # ncurses. |
81 | # | | 82 | # |
82 | _INCOMPAT_CURSES?= NetBSD-0.*-* NetBSD-1.[0123]*-* \ | | 83 | _INCOMPAT_CURSES?= NetBSD-0.*-* NetBSD-1.[0123]*-* \ |
83 | NetBSD-1.4.*-* NetBSD-1.4[A-X]-* | | 84 | NetBSD-1.4.*-* NetBSD-1.4[A-X]-* |
84 | . for _pattern_ in ${_INCOMPAT_CURSES} ${INCOMPAT_CURSES} | | 85 | . for _pattern_ in ${_INCOMPAT_CURSES} ${INCOMPAT_CURSES} |
85 | . if !empty(MACHINE_PLATFORM:M${_pattern_}) | | 86 | . if !empty(MACHINE_PLATFORM:M${_pattern_}) |
86 | USE_BUILTIN.ncurses= no | | 87 | USE_BUILTIN.ncurses= no |
87 | . endif | | 88 | . endif |
88 | . endfor | | 89 | . endfor |
89 | . endif # PREFER.ncurses | | 90 | . endif # PREFER.ncurses |