blob: 50f333a547c95a3e9105a78b26cb102feabebd00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# This Makefile is shared by libncurses, libform, libmenu, libpanel.
NCURSES_DIR= ${SRCTOP}/contrib/ncurses
NCURSES_MAJOR= 6
NCURSES_MINOR= 5
NCURSES_PATCH= 20240407
TINFO_OBJDIR?= ${.OBJDIR:H}/tinfo
CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
CFLAGS+= -I.
CFLAGS+= -I${.CURDIR:H}/tinfo
# for ${NCURSES_CFG_H}
CFLAGS+= -I${.CURDIR:H}/ncurses
CFLAGS+= -I${NCURSES_DIR}/include
CFLAGS+= -I${NCURSES_DIR}/ncurses
CFLAGS+= -I${TINFO_OBJDIR}
CFLAGS+= -Wall
CFLAGS+= -DNDEBUG
CFLAGS+= -DHAVE_CONFIG_H
# everyone needs this
.PATH: ${NCURSES_DIR}/include
.PATH: ${TINFO_OBJDIR}
# tools and directories
AWK?= awk
TERMINFODIR?= ${SHAREDIR}/misc
# Generate headers
ncurses_def.h: MKncurses_def.sh ncurses_defs
AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \
${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h
# Manual pages filter
MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
-e 's%@DATADIR@%/usr/share%g' \
-e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' \
-e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
-e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
-e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
-e 's%@TPUT@%tput%g' \
-e 's%@TSET@%tset%g' \
-e 's%@RESET@%reset%g' \
-e 's%@CLEAR@%clear%g' \
-e 's%@TABS@%tabs%g' \
-e 's%@TIC@%tic%g' \
-e 's%@TOE@%toe%g' \
-e 's%@INFOCMP@%infocmp%g' \
-e 's%@CAPTOINFO@%captoinfo%g' \
-e 's%@INFOTOCAP@%infotocap%g'
|