package/squeezelite: faad2 is an optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 6 Apr 2019 16:58:00 +0000 (18:58 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 11 Apr 2019 17:36:56 +0000 (19:36 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/squeezelite/Config.in
package/squeezelite/squeezelite.mk

index b1820a146dcd2b2bf9b85a6ca10f744a430e7f5e..a034759143c8231b0a33dbe407a9b50481102bc2 100644 (file)
@@ -9,7 +9,6 @@ config BR2_PACKAGE_SQUEEZELITE
        select BR2_PACKAGE_FLAC
        select BR2_PACKAGE_LIBMAD
        select BR2_PACKAGE_LIBVORBIS
-       select BR2_PACKAGE_FAAD2
        select BR2_PACKAGE_MPG123
        help
          Logitech Media Server client
index b4fb090f0f2f060359b992781139a4b1711b3782..2ed3d8b76931e2b82c291963d5852c3b9368d253 100644 (file)
@@ -8,9 +8,15 @@ SQUEEZELITE_VERSION = 71c012ad9ba102feb95823b7b9dc17e5305689c7
 SQUEEZELITE_SITE = $(call github,ralph-irving,squeezelite,$(SQUEEZELITE_VERSION))
 SQUEEZELITE_LICENSE = GPL-3.0
 SQUEEZELITE_LICENSE_FILES = LICENSE.txt
-SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis faad2 mpg123
+SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis mpg123
 SQUEEZELITE_MAKE_OPTS = -DLINKALL
 
+ifeq ($(BR2_PACKAGE_FAAD2),y)
+SQUEEZELITE_DEPENDENCIES += faad2
+else
+SQUEEZELITE_MAKE_OPTS += -DNO_FAAD
+endif
+
 ifeq ($(BR2_PACKAGE_SQUEEZELITE_FFMPEG),y)
 SQUEEZELITE_DEPENDENCIES += ffmpeg
 SQUEEZELITE_MAKE_OPTS += -DFFMPEG