mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/zynaddsubfx: fix alsa-lib handling
alsa-lib is optional, not mandatory, since the addition of the package in commit18a8630637Moreover, 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> (cherry picked from commit2fc2191845) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
dcfccfddf1
commit
76de77202d
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user