| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: builtin.mk,v 1.48 2024/05/06 07:56:51 jperkin Exp $ | | 1 | # $NetBSD: builtin.mk,v 1.49 2024/05/06 07:57:35 jperkin Exp $ |
2 | | | 2 | |
3 | BUILTIN_PKG:= ncurses | | 3 | BUILTIN_PKG:= ncurses |
4 | | | 4 | |
5 | BUILTIN_FIND_LIBS:= ncurses curses terminfo | | 5 | BUILTIN_FIND_LIBS:= ncurses curses terminfo |
6 | BUILTIN_FIND_HEADERS_VAR:= H_NCURSES H_CURSES H_CURSES1 | | 6 | BUILTIN_FIND_HEADERS_VAR:= H_NCURSES H_CURSES H_CURSES1 |
7 | BUILTIN_FIND_HEADERS.H_NCURSES= ncurses.h curses.h | | 7 | BUILTIN_FIND_HEADERS.H_NCURSES= ncurses.h curses.h |
8 | #BUILTIN_FIND_HEADERS.H_NCURSES+= ncurses/curses.h | | 8 | #BUILTIN_FIND_HEADERS.H_NCURSES+= ncurses/curses.h |
9 | BUILTIN_FIND_GREP.H_NCURSES= \#define[ ]*NCURSES_VERSION | | 9 | BUILTIN_FIND_GREP.H_NCURSES= \#define[ ]*NCURSES_VERSION |
10 | BUILTIN_FIND_HEADERS.H_CURSES= ncurses.h curses.h | | 10 | BUILTIN_FIND_HEADERS.H_CURSES= ncurses.h curses.h |
11 | BUILTIN_FIND_GREP.H_CURSES= mvwchgat | | 11 | BUILTIN_FIND_GREP.H_CURSES= mvwchgat |
12 | BUILTIN_FIND_HEADERS.H_CURSES1= ncurses.h curses.h | | 12 | BUILTIN_FIND_HEADERS.H_CURSES1= ncurses.h curses.h |
13 | BUILTIN_FIND_GREP.H_CURSES1= wsyncup | | 13 | BUILTIN_FIND_GREP.H_CURSES1= wsyncup |
14 | BUILTIN_FIND_FILES_VAR= NCURSES_PC | | 14 | BUILTIN_FIND_FILES_VAR= NCURSES_PC |
| @@ -85,33 +85,26 @@ USE_BUILTIN.ncurses= no | | | @@ -85,33 +85,26 @@ USE_BUILTIN.ncurses= no |
85 | .endif | | 85 | .endif |
86 | # If it is set to chgat, a curses implementation with chgat(3) support | | 86 | # If it is set to chgat, a curses implementation with chgat(3) support |
87 | # is considered good enough. | | 87 | # is considered good enough. |
88 | .if defined(USE_NCURSES) && ${USE_NCURSES:U:tl} != yes | | 88 | .if defined(USE_NCURSES) && ${USE_NCURSES:U:tl} != yes |
89 | . if ${USE_NCURSES:U} == chgat && ${H_CURSES:U} == __nonexistent__ | | 89 | . if ${USE_NCURSES:U} == chgat && ${H_CURSES:U} == __nonexistent__ |
90 | USE_BUILTIN.ncurses= no | | 90 | USE_BUILTIN.ncurses= no |
91 | . endif | | 91 | . endif |
92 | # same for wsyncup(3) | | 92 | # same for wsyncup(3) |
93 | . if ${USE_NCURSES:U} == wsyncup && !empty(H_CURSES1:M__nonexistent__) | | 93 | . if ${USE_NCURSES:U} == wsyncup && !empty(H_CURSES1:M__nonexistent__) |
94 | USE_BUILTIN.ncurses= no | | 94 | USE_BUILTIN.ncurses= no |
95 | . endif | | 95 | . endif |
96 | .endif | | 96 | .endif |
97 | | | 97 | |
98 | # if terminfo is needed and we don't have it, use pkgsrc ncurses | | | |
99 | .if defined(USE_TERMINFO) | | | |
100 | . if ${BUILTIN_LIB_FOUND.terminfo:U:tl} == no | | | |
101 | USE_BUILTIN.ncurses= no | | | |
102 | . endif | | | |
103 | .endif | | | |
104 | | | | |
105 | # Define BUILTIN_LIBNAME.ncurses to be the base name of the built-in | | 98 | # Define BUILTIN_LIBNAME.ncurses to be the base name of the built-in |
106 | # ncurses library. | | 99 | # ncurses library. |
107 | # | | 100 | # |
108 | .if ${BUILTIN_LIB_FOUND.ncurses:U:tl} == yes | | 101 | .if ${BUILTIN_LIB_FOUND.ncurses:U:tl} == yes |
109 | BUILTIN_LIBNAME.ncurses= ncurses | | 102 | BUILTIN_LIBNAME.ncurses= ncurses |
110 | .elif ${BUILTIN_LIB_FOUND.curses:U:tl} == yes | | 103 | .elif ${BUILTIN_LIB_FOUND.curses:U:tl} == yes |
111 | BUILTIN_LIBNAME.ncurses= curses | | 104 | BUILTIN_LIBNAME.ncurses= curses |
112 | .endif | | 105 | .endif |
113 | # | | 106 | # |
114 | # On Interix, there is a libncurses.a and a libcurses.so but strangely, | | 107 | # On Interix, there is a libncurses.a and a libcurses.so but strangely, |
115 | # no libncurses.so. We want to link against the shared library, so | | 108 | # no libncurses.so. We want to link against the shared library, so |
116 | # turn "-lncurses" into "-lcurses". | | 109 | # turn "-lncurses" into "-lcurses". |
117 | # | | 110 | # |