Code

release v0.29
[ncmpc.git] / meson.build
index b2fd42a4d7dc2e195830976f73742e22c778a3e3..bc1b5e2f8695b09373d5196259462d48a48d5bbf 100644 (file)
@@ -70,6 +70,11 @@ else
     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
@@ -271,7 +276,11 @@ conf.set('ENABLE_LYRICS_SCREEN', enable_lyrics_screen)
 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',