summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d795d6)
raw | patch | inline | side by side (parent: 8d795d6)
author | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 5 Nov 2017 16:24:09 +0000 (17:24 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 5 Nov 2017 16:24:09 +0000 (17:24 +0100) |
The option "--with-lyrics-plugin-dir" was lost in the Meson
transition.
Closes #7
transition.
Closes #7
NEWS | patch | blob | history | |
meson.build | patch | blob | history | |
meson_options.txt | patch | blob | history |
index d202e7415fd7595bd0d3c2f34721e29202917c4a..9e7b11c7d7c58ba59766cdd132022f372f7208a2 100644 (file)
--- a/NEWS
+++ b/NEWS
ncmpc 0.29 - not yet released
* fix crash after losing MPD connection
* fix crash after DNS lookup error
+* add Meson option "lyrics_plugin_dir"
ncmpc 0.28 - (2017-09-21)
* fix crash on lyrics screen
diff --git a/meson.build b/meson.build
index b2fd42a4d7dc2e195830976f73742e22c778a3e3..428e41e3b45156e5cae210124f8972a62fb93992 100644 (file)
--- a/meson.build
+++ b/meson.build
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',
diff --git a/meson_options.txt b/meson_options.txt
index 4f58ed3230acea3378114ea8e6ac4a91520025c9..7f7a9718da8980517ff36210b6c909987190f4b6 100644 (file)
--- a/meson_options.txt
+++ b/meson_options.txt
value: false,
description: 'Enable the lyrics screen')
+option('lyrics_plugin_dir', type: 'string',
+ value: '',
+ description: 'Directory where lyrics plugins are stored')
+
option('outputs_screen', type: 'boolean',
value: true,
description: 'Enable the outputs screen')