package/squeezelite: add optional wiringpi dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 6 Apr 2019 16:57:59 +0000 (18:57 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 11 Apr 2019 17:36:49 +0000 (19:36 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/squeezelite/squeezelite.mk

index e41053663a20020c0b2de2f3a8bb6865f2534113..b4fb090f0f2f060359b992781139a4b1711b3782 100644 (file)
@@ -34,6 +34,11 @@ ifeq ($(BR2_PACKAGE_SQUEEZELITE_VISEXPORT),y)
 SQUEEZELITE_MAKE_OPTS += -DVISEXPORT
 endif
 
+ifeq ($(BR2_PACKAGE_WIRINGPI),y)
+SQUEEZELITE_DEPENDENCIES += wiringpi
+SQUEEZELITE_MAKE_OPTS += -DRPI
+endif
+
 define SQUEEZELITE_BUILD_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
                OPTS="$(SQUEEZELITE_MAKE_OPTS)" -C $(@D) all