[Buildroot] [PATCH 1/1] ncmpc: add optional dependency to lirc-tools

Fabrice Fontaine fontaine.fabrice at gmail.com
Mon Apr 2 11:10:18 UTC 2018


Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/ncmpc/ncmpc.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/ncmpc/ncmpc.mk b/package/ncmpc/ncmpc.mk
index 6bce627562..1d464b72de 100644
--- a/package/ncmpc/ncmpc.mk
+++ b/package/ncmpc/ncmpc.mk
@@ -18,6 +18,13 @@ NCMPC_CONF_OPTS += \
 	--buildtype $(if $(BR2_ENABLE_DEBUG),debug,release) \
 	--cross-file $(HOST_DIR)/etc/meson/cross-compilation.conf
 
+ifeq ($(BR2_PACKAGE_LIRC_TOOLS),y)
+NCMPC_DEPENDENCIES += lirc-tools
+NCMPC_CONF_OPTS += -Dlirc=true
+else
+NCMPC_CONF_OPTS += -Dlirc=false
+endif
+
 NCMPC_NINJA_OPTS = $(if $(VERBOSE),-v)
 
 define NCMPC_CONFIGURE_CMDS
-- 
2.14.1



More information about the buildroot mailing list