From 69284b6700e5f45e25a583e87b86ed1eb95038fd Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 27 Jul 2022 15:26:28 +0200 Subject: [PATCH] package/jack2: libsndfile is optional, not mandatory Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/jack2/Config.in | 1 - package/jack2/jack2.mk | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package/jack2/Config.in b/package/jack2/Config.in index e02449ba87..f5ac0399eb 100644 --- a/package/jack2/Config.in +++ b/package/jack2/Config.in @@ -5,7 +5,6 @@ config BR2_PACKAGE_JACK2 depends on BR2_INSTALL_LIBSTDCPP depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_4 - select BR2_PACKAGE_LIBSNDFILE select BR2_PACKAGE_ALSA_LIB select BR2_PACKAGE_ALSA_LIB_HWDEP select BR2_PACKAGE_ALSA_LIB_SEQ diff --git a/package/jack2/jack2.mk b/package/jack2/jack2.mk index 4059fa689c..3b45474cc4 100644 --- a/package/jack2/jack2.mk +++ b/package/jack2/jack2.mk @@ -9,7 +9,7 @@ JACK2_SITE = $(call github,jackaudio,jack2,v$(JACK2_VERSION)) JACK2_LICENSE = GPL-2.0+ (jack server), LGPL-2.1+ (jack library) JACK2_LICENSE_FILES = COPYING JACK2_CPE_ID_VENDOR = jackaudio -JACK2_DEPENDENCIES = libsndfile alsa-lib +JACK2_DEPENDENCIES = alsa-lib JACK2_INSTALL_STAGING = YES JACK2_CONF_OPTS = --alsa @@ -26,6 +26,13 @@ else JACK2_CONF_OPTS += --samplerate=no endif +ifeq ($(BR2_PACKAGE_LIBSNDFILE),y) +JACK2_DEPENDENCIES += libsndfile +JACK2_CONF_OPTS += --sndfile=yes +else +JACK2_CONF_OPTS += --sndfile=no +endif + ifeq ($(BR2_PACKAGE_OPUS),y) JACK2_DEPENDENCIES += opus JACK2_CONF_OPTS += --opus=yes