+98
-2486
lines changedFilter options
+98
-2486
lines changed Original file line number Diff line number Diff line change
@@ -3,8 +3,11 @@
3
3
# This Makefile is shared by libncurses, libform, libmenu, libpanel.
4
4
5
5
NCURSES_DIR= ${SRCTOP}/contrib/ncurses
6
+
NCURSES_MAJOR= 6
7
+
NCURSES_MINOR= 2
8
+
NCURSES_PATCH= 20200215
6
9
7
-
CFLAGS+= -D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC
10
+
CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
8
11
NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
9
12
10
13
CFLAGS+= -I.
@@ -41,5 +44,12 @@ MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
41
44
-e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
42
45
-e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
43
46
-e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
47
+
-e 's%@TSET@%tset%g' \
48
+
-e 's%@RESET@%reset%g' \
49
+
-e 's%@CLEAR@%clear%g' \
50
+
-e 's%@TABS@%tabs%g' \
44
51
-e 's%@TIC@%tic%g' \
45
-
-e 's%@INFOCMP@%infocmp%g'
52
+
-e 's%@TOE@%toe%g' \
53
+
-e 's%@INFOCMP@%infocmp%g' \
54
+
-e 's%@CAPTOINFO@%captoinfo%g' \
55
+
-e 's%@INFOTOCAP@%infotocap%g'
Original file line number Diff line number Diff line change
@@ -216,6 +216,7 @@ SRCS+= \
216
216
obsolete.c \
217
217
parse_entry.c \
218
218
read_entry.c \
219
+
read_termcap.c \
219
220
strings.c \
220
221
trim_sgr0.c \
221
222
write_entry.c
@@ -270,14 +271,10 @@ DBGSRCS= \
270
271
trace_xnames.c \
271
272
varargs.c
272
273
273
-
# From our old libtermcap.
274
-
# Used instead of the hideous read_termcap.c abomination.
275
-
SRCS+= termcap.c
276
-
277
274
CLEANFILES= ${GENSRCS} ${GENHDRS} keys.list make_hash term.h.new \
278
275
make_keys MKterm.h.awk comp_captab.c curses.head
279
276
280
-
CFLAGS+= -DFREEBSD_NATIVE -DTERMIOS
277
+
CFLAGS+= -DTERMIOS
281
278
282
279
# Installed
283
280
HEADERS= curses.h term.h termcap.h unctrl.h
@@ -416,7 +413,7 @@ make_hash: make_hash.c hashsize.h ncurses_def.h ${HEADERS} ${BUILD_TOOLS_META}
416
413
MKterm.h.awk: MKterm.h.awk.in
417
414
sed <${NCURSES_DIR}/include/MKterm.h.awk.in >$@ \
418
415
-e "/@BROKEN_LINKER@/s%%${BROKEN_LINKER}%" \
419
-
-e "s%@NCURSES_USE_DATABASE@%0%g" \
416
+
-e "s%@NCURSES_USE_DATABASE@%1%g" \
420
417
-e "s%@NCURSES_USE_TERMCAP@%1%g" \
421
418
-e "/@NCURSES_MAJOR@/s%%${NCURSES_MAJOR}%" \
422
419
-e "/@NCURSES_MINOR@/s%%${NCURSES_MINOR}%" \
Original file line number Diff line number Diff line change
@@ -59,6 +59,8 @@
59
59
#define HAVE_LONG_FILE_NAMES 1
60
60
#define MIXEDCASE_FILENAMES 1
61
61
#define USE_SYSMOUSE 1
62
+
#define TERMINFO_DIRS "/usr/share/terminfo:/usr/local/share/site-terminfo"
63
+
#define TERMINFO "/usr/share/terminfo"
62
64
#define HAVE_BIG_CORE 1
63
65
#define TERMPATH "/etc/termcap:/usr/share/misc/termcap"
64
66
#define USE_GETCAP 1
@@ -70,6 +72,23 @@
70
72
#define USE_LINKS 1
71
73
#define BSD_TPUTS 1
72
74
#define HAVE_LANGINFO_CODESET 1
75
+
#define USE_WIDEC_SUPPORT 1
76
+
#define NCURSES_WIDECHAR 1
77
+
#define HAVE_WCHAR_H 1
78
+
#define HAVE_WCTYPE_H 1
79
+
#define HAVE_PUTWC 1
80
+
#define HAVE_BTOWC 1
81
+
#define HAVE_WCTOB 1
82
+
#define HAVE_MBTOWC 1
83
+
#define HAVE_WCTOMB 1
84
+
#define HAVE_MBLEN 1
85
+
#define HAVE_MBRLEN 1
86
+
#define HAVE_MBRTOWC 1
87
+
#define HAVE_WCSRTOMBS 1
88
+
#define HAVE_MBSRTOWCS 1
89
+
#define HAVE_WCSTOMBS 1
90
+
#define HAVE_MBSTOWCS 1
91
+
#define NEED_WCHAR_H 1
73
92
#define HAVE_FSEEKO 1
74
93
#define STDC_HEADERS 1
75
94
#define HAVE_SYS_TYPES_H 1
@@ -96,6 +115,10 @@
96
115
#define HAVE_WRESIZE 1
97
116
#define NCURSES_SP_FUNCS 1
98
117
#define HAVE_TPUTS_SP 1
118
+
#define NCURSES_EXT_COLORS 1
119
+
#define HAVE_ALLOC_PAIR 1
120
+
#define HAVE_INIT_EXTENDED_COLOR 1
121
+
#define HAVE_RESET_COLOR_PAIRS 1
99
122
#define NCURSES_EXT_PUTWIN 1
100
123
#define NCURSES_NO_PADDING 1
101
124
#define USE_SIGWINCH 1
@@ -133,6 +156,11 @@
133
156
#define HAVE_UNISTD_H 1
134
157
#define HAVE_GETOPT_H 1
135
158
#define HAVE_GETOPT_HEADER 1
159
+
#define DECL_ENVIRON 1
160
+
#define HAVE_ENVIRON 1
161
+
#define HAVE_PUTENV 1
162
+
#define HAVE_SETENV 1
163
+
#define HAVE_STRDUP 1
136
164
#define HAVE_SYS_TIME_SELECT 1
137
165
#define SIG_ATOMIC_T volatile sig_atomic_t
138
166
#define HAVE_ERRNO 1
@@ -153,6 +181,7 @@
153
181
#define HAVE_SETVBUF 1
154
182
#define HAVE_SIGACTION 1
155
183
#define HAVE_SIGVEC 1
184
+
#define HAVE_SNPRINTF 1
156
185
#define HAVE_STRDUP 1
157
186
#define HAVE_STRSTR 1
158
187
#define HAVE_SYSCONF 1
@@ -181,11 +210,12 @@
181
210
#define USE_FOPEN_BIN_R 1
182
211
#define USE_OPENPTY_HEADER <libutil.h>
183
212
#define USE_XTERM_PTY 1
184
-
#define USE_HASHED_DB 1
185
213
#define HAVE_TYPEINFO 1
186
214
#define HAVE_IOSTREAM 1
187
215
#define IOSTREAM_NAMESPACE 1
216
+
#define SIZEOF_BOOL 1
188
217
#define CPP_HAS_STATIC_CAST 1
218
+
#define SIZEOF_WCHAR_T 4
189
219
#define HAVE_SLK_COLOR 1
190
220
#define HAVE_PANEL_H 1
191
221
#define HAVE_LIBPANEL 1
@@ -198,37 +228,6 @@
198
228
#define NCURSES_OSPEED_COMPAT 1
199
229
#define HAVE_CURSES_DATA_BOOLNAMES 1
200
230
201
-
/*
202
-
* Begin FreeBSD-specific changes
203
-
*/
204
-
/* Support ENABLE_WIDEC */
205
-
#ifdef ENABLE_WIDEC
206
-
#define USE_WIDEC_SUPPORT 1
207
-
#define NCURSES_WIDECHAR 1
208
-
#define NCURSES_EXT_FUNCS 1
209
-
#define NCURSES_EXT_COLORS 1
210
-
#define HAVE_ALLOC_PAIR 1
211
-
#define HAVE_INIT_EXTENDED_COLOR 1
212
-
#define HAVE_RESET_COLOR_PAIRS 1
213
-
#define HAVE_PUTWC 1
214
-
#define HAVE_BTOWC 1
215
-
#define HAVE_WCTOB 1
216
-
#define HAVE_MBTOWC 1
217
-
#define HAVE_WCTOMB 1
218
-
#define HAVE_MBLEN 1
219
-
#define HAVE_MBRLEN 1
220
-
#define HAVE_MBRTOWC 1
221
-
#define HAVE_WCSRTOMBS 1
222
-
#define HAVE_MBSRTOWCS 1
223
-
#define HAVE_WCSTOMBS 1
224
-
#define HAVE_MBSTOWCS 1
225
-
#define NEED_WCHAR_H 1
226
-
#define SIZEOF_WCHAR_T 4
227
-
#endif
228
-
/*
229
-
* End FreeBSD-specific changes
230
-
*/
231
-
232
231
#include <ncurses_def.h>
233
232
234
233
/* The C compiler may not treat these properly but C++ has to */
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4