pcre dependency has been added in version 0.32:
https://github.com/MusicPlayerDaemon/ncmpc/commit/
0b3169510014f0f336de58864b97a3cc0f308500
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
NCMPC_CONF_OPTS = \
-Dcurses=ncurses \
- -Ddocumentation=disabled \
- -Dregex=disabled
+ -Ddocumentation=disabled
ifeq ($(BR2_PACKAGE_LIRC_TOOLS),y)
NCMPC_DEPENDENCIES += lirc-tools
NCMPC_CONF_OPTS += -Dlirc=disabled
endif
+ifeq ($(BR2_PACKAGE_PCRE),y)
+NCMPC_DEPENDENCIES += pcre
+NCMPC_CONF_OPTS += -Dregex=enabled
+else
+NCMPC_CONF_OPTS += -Dregex=disabled
+endif
+
$(eval $(meson-package))