package/jack2: libsamplerate is optional, not mandatoy

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2022-07-27 15:26:27 +02:00 committed by Thomas Petazzoni
parent 72ac45acea
commit 61170e696d
2 changed files with 8 additions and 2 deletions

View File

@ -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_LIBSAMPLERATE
select BR2_PACKAGE_LIBSNDFILE
select BR2_PACKAGE_ALSA_LIB
select BR2_PACKAGE_ALSA_LIB_HWDEP

View File

@ -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 = libsamplerate libsndfile alsa-lib
JACK2_DEPENDENCIES = libsndfile alsa-lib
JACK2_INSTALL_STAGING = YES
JACK2_CONF_OPTS = --alsa
@ -19,6 +19,13 @@ JACK2_DEPENDENCIES += libexecinfo
JACK2_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lexecinfo"
endif
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
JACK2_DEPENDENCIES += libsamplerate
JACK2_CONF_OPTS += --samplerate=yes
else
JACK2_CONF_OPTS += --samplerate=no
endif
ifeq ($(BR2_PACKAGE_OPUS),y)
JACK2_DEPENDENCIES += opus
JACK2_CONF_OPTS += --opus=yes