package/zynaddsubfx: fix alsa-lib handling

alsa-lib is optional, not mandatory, since the addition of the package
in commit 18a8630637

Moreover, alsa support depends on BR2_PACKAGE_ALSA_LIB_SEQ (otherwise,
it is silently disabled)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2022-03-16 22:22:18 +01:00 committed by Yann E. MORIN
parent ba7319a06e
commit 2fc2191845
2 changed files with 8 additions and 3 deletions

View File

@ -2,8 +2,7 @@ config BR2_PACKAGE_ZYNADDSUBFX
bool "zynaddsubfx"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib, liblo
select BR2_PACKAGE_ALSA_LIB
depends on BR2_TOOLCHAIN_HAS_THREADS # liblo
select BR2_PACKAGE_FFTW
select BR2_PACKAGE_FFTW_SINGLE
select BR2_PACKAGE_LIBLO

View File

@ -18,10 +18,16 @@ ZYNADDSUBFX_CONF_OPTS += -DOS_LIBRARIES=-latomic
endif
ZYNADDSUBFX_DEPENDENCIES = \
alsa-lib \
fftw-single \
liblo \
mxml \
zlib
ifeq ($(BR2_PACKAGE_ALSA_LIB_SEQ),y)
ZYNADDSUBFX_DEPENDENCIES += alsa-lib
ZYNADDSUBFX_CONF_OPTS += -DAlsaEnable=ON
else
ZYNADDSUBFX_CONF_OPTS += -DAlsaEnable=OFF
endif
$(eval $(cmake-package))