ncmpc: fix build with ncursesw
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 1 Apr 2018 17:56:51 +0000 (19:56 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 1 Apr 2018 22:08:38 +0000 (00:08 +0200)
commit70e6b08d41be1c5d5a4272c8b4210963ca9a278e
tree32251411173de2d9efc6bdf07499ea525fe5d216
parent80928388286b6f25a9e70466dba57aa0587db8c0
ncmpc: fix build with ncursesw

Fixes:
http://autobuild.buildroot.net/results/c5bb5f978602896179ff9c58ecf4ced40bb96b57

When ncurses is built with wide support, we install libncursesw (plus a
libncurses symlink) but NOT ncursesw.h, only ncurses.h.  This combination
confuses the ncmpc build system as it expects a ncursesw.h when it finds
libncursesw:

meson.build:92:4: ERROR: Problem encountered: No ncursesw header found

The ncurses/ncursesw logic in the build system is only used to know what
header file to #include, and what library to link with.  As we already
provide a libncurses symlink when building with wide support we can simply
force ncmpc to use the ncurses variant.

[Peter: extend commit message]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ncmpc/ncmpc.mk