Skip to contentSkip to conversation

ncmpc: add optional dependency to lirc-tools

PATCH New Fabrice Fontaine 2 participants 2 messages Apr 2, 2018

lore
Share & tools
lore
#0 lore raw

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

---
 package/ncmpc/ncmpc.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/ncmpc/ncmpc.mk +7 -0
index 6bce627562..1d464b72de 100644
@@ -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
Signature · 1 line
2.14.1