mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
meson: optionalize terminfo dependency
ncurses on FreeBSD still uses termcap(5) while foot works fine with xterm-256color sans status line and visible bell. Having more than one ncurses version installed may break other applications. Document -Dterminfo=false uses --term=xterm-256color by default
This commit is contained in:
parent
0b07bf78f0
commit
8b092256d1
5 changed files with 22 additions and 10 deletions
4
config.c
4
config.c
|
|
@ -1956,7 +1956,11 @@ config_load(struct config *conf, const char *conf_path,
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
*conf = (struct config) {
|
*conf = (struct config) {
|
||||||
|
#ifdef HAVE_TERMINFO
|
||||||
.term = xstrdup("foot"),
|
.term = xstrdup("foot"),
|
||||||
|
#else
|
||||||
|
.term = xstrdup("xterm-256color"),
|
||||||
|
#endif
|
||||||
.shell = get_shell(),
|
.shell = get_shell(),
|
||||||
.title = xstrdup("foot"),
|
.title = xstrdup("foot"),
|
||||||
.app_id = xstrdup("foot"),
|
.app_id = xstrdup("foot"),
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,8 @@ in this order:
|
||||||
by prepending a '-' to argv[0]. Default: _no_.
|
by prepending a '-' to argv[0]. Default: _no_.
|
||||||
|
|
||||||
*term*
|
*term*
|
||||||
Value to set the environment variable *TERM* to. Default: _foot_.
|
Value to set the environment variable *TERM* to. Default: _foot_
|
||||||
|
or _xterm-256color_ if built with _-Dterminfo=false_
|
||||||
|
|
||||||
*title*
|
*title*
|
||||||
Initial window title. Default: _foot_.
|
Initial window title. Default: _foot_.
|
||||||
|
|
|
||||||
2
foot.ini
2
foot.ini
|
|
@ -10,7 +10,7 @@
|
||||||
# initial-window-mode=windowed
|
# initial-window-mode=windowed
|
||||||
# pad=2x2
|
# pad=2x2
|
||||||
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
||||||
# term=foot
|
# term=foot (or xterm-256color if built with -Dterminfo=false)
|
||||||
# login-shell=no
|
# login-shell=no
|
||||||
# workers=<number of logical CPUs>
|
# workers=<number of logical CPUs>
|
||||||
# bold-text-in-bright=no
|
# bold-text-in-bright=no
|
||||||
|
|
|
||||||
22
meson.build
22
meson.build
|
|
@ -72,6 +72,11 @@ fontconfig = dependency('fontconfig')
|
||||||
tllist = dependency('tllist', version: '>=1.0.4', fallback: 'tllist')
|
tllist = dependency('tllist', version: '>=1.0.4', fallback: 'tllist')
|
||||||
fcft = dependency('fcft', version: ['>=2.3.0', '<3.0.0'], fallback: 'fcft')
|
fcft = dependency('fcft', version: ['>=2.3.0', '<3.0.0'], fallback: 'fcft')
|
||||||
|
|
||||||
|
tic = find_program('tic', native: true, required: get_option('terminfo'))
|
||||||
|
if tic.found()
|
||||||
|
add_project_arguments('-DHAVE_TERMINFO', language: 'c')
|
||||||
|
endif
|
||||||
|
|
||||||
wayland_protocols_datadir = wayland_protocols.get_pkgconfig_variable('pkgdatadir')
|
wayland_protocols_datadir = wayland_protocols.get_pkgconfig_variable('pkgdatadir')
|
||||||
|
|
||||||
wscanner = dependency('wayland-scanner', native: true)
|
wscanner = dependency('wayland-scanner', native: true)
|
||||||
|
|
@ -191,14 +196,15 @@ executable(
|
||||||
version,
|
version,
|
||||||
install: true)
|
install: true)
|
||||||
|
|
||||||
tic = find_program('tic', native: true)
|
if tic.found()
|
||||||
custom_target(
|
custom_target(
|
||||||
'terminfo',
|
'terminfo',
|
||||||
output: 'f',
|
output: 'f',
|
||||||
input: 'foot.info',
|
input: 'foot.info',
|
||||||
command: [tic, '-x', '-o', '@OUTDIR@', '-e', 'foot,foot-direct', '@INPUT@'],
|
command: [tic, '-x', '-o', '@OUTDIR@', '-e', 'foot,foot-direct', '@INPUT@'],
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: join_paths(get_option('datadir'), 'terminfo'))
|
install_dir: join_paths(get_option('datadir'), 'terminfo'))
|
||||||
|
endif
|
||||||
|
|
||||||
install_data(
|
install_data(
|
||||||
'LICENSE', 'README.md', 'CHANGELOG.md',
|
'LICENSE', 'README.md', 'CHANGELOG.md',
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
option('ime', type: 'boolean', value: true, description: 'IME (Input Method Editor) support')
|
option('ime', type: 'boolean', value: true, description: 'IME (Input Method Editor) support')
|
||||||
|
option('terminfo', type: 'boolean', value: true, description: 'Install terminfo')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue