diff --git a/meson.build b/meson.build
index 92d005748c1a57e8961e7c90156c7b2ffd102de7..bc1b5e2f8695b09373d5196259462d48a48d5bbf 100644 (file)
--- a/meson.build
+++ b/meson.build
project('ncmpc', 'c',
- version: '0.28',
+ version: '0.29',
default_options: [
'c_std=c99',
],
if curses_dep.found()
curses = 'ncurses'
else
+ curses_dep = cc.find_library('ncursesw', required: false)
+ if not curses_dep.found()
+ curses_dep = cc.find_library('ncurses')
+ endif
+
# TODO: find other curses implementation (pdcurses?)
endif
endif
if enable_lyrics_screen
sources += ['src/screen_lyrics.c', 'src/lyrics.c']
- lyrics_plugin_dir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name(), 'lyrics')
+ lyrics_plugin_dir = get_option('lyrics_plugin_dir')
+ if lyrics_plugin_dir == ''
+ lyrics_plugin_dir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name(), 'lyrics')
+ endif
+
conf.set_quoted('LYRICS_PLUGIN_DIR', lyrics_plugin_dir)
install_data(
'lyrics/10-hd.sh',