void-packages/srcpkgs/ncmpc/patches/ncurses.patch
Peter Bui f0b1f41e2e ncmpc: update to 0.28
- Upstream switched to meson for build system
- Include patch to fix auto-detecting of ncurses header

Closes: #7790 [via git-merge-pr]
2017-09-23 22:52:36 +00:00

15 lines
614 B
Diff

We don't include ncursesw.h header file, so use ncurses.h instead.
--- ./meson.build 2017-09-23 10:57:09.288877085 -0400
+++ ./meson.build 2017-09-23 10:58:40.263583716 -0400
@@ -83,6 +83,10 @@
conf.set('HAVE_NCURSESW_CURSES_H', true)
elif cc.has_header('ncursesw.h', dependencies: curses_dep)
conf.set('HAVE_NCURSESW_H', true)
+ elif cc.has_header('ncurses/curses.h', dependencies: curses_dep)
+ conf.set('HAVE_NCURSES_CURSES_H', true)
+ elif cc.has_header('ncurses.h', dependencies: curses_dep)
+ conf.set('HAVE_NCURSES_H', true)
else
error('No ncursesw header found')
endif