Code

release v0.29
[ncmpc.git] / meson.build
index faaa2c6df78a336f73728e4d76aef82944782635..bc1b5e2f8695b09373d5196259462d48a48d5bbf 100644 (file)
@@ -1,5 +1,5 @@
 project('ncmpc', 'c',
-  version: '0.28',
+  version: '0.29',
   default_options: [
     'c_std=c99',
   ],
@@ -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
@@ -145,6 +150,8 @@ conf.set('ENABLE_LIRC', enable_lirc)
 conf.set('ENABLE_COLORS', curses_color)
 
 common_cflags = [
+  # for getaddrinfo() and sigaction() with glibc
+  '-D_GNU_SOURCE',
 ]
 
 test_cflags = [
@@ -269,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',