package/wine: simplify alsa-lib feature selection

Instead of having the user need to figure out that 2 alsa-lib features
are needed for wine ALSA support, have the top-level wine option select
the relevant alsa-lib features, when alsa-lib is enabled as already done
for pulseaudio in commit 97cd3680a4

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-28 14:28:39 +02:00 committed by Thomas Petazzoni
parent fd4783258b
commit cc08b57079
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@ config BR2_PACKAGE_WINE
depends on !BR2_STATIC_LIBS
# pthread_attr_setstack
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
select BR2_PACKAGE_ALSA_LIB_SEQ if BR2_PACKAGE_ALSA_LIB
select BR2_PACKAGE_ALSA_LIB_RAWMIDI if BR2_PACKAGE_ALSA_LIB
help
Wine is a compatibility layer capable of running Windows
applications on Linux. Instead of simulating internal

View File

@ -41,7 +41,7 @@ ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
WINE_CONF_OPTS += TARGETFLAGS="-b $(TOOLCHAIN_EXTERNAL_PREFIX)"
endif
ifeq ($(BR2_PACKAGE_ALSA_LIB)$(BR2_PACKAGE_ALSA_LIB_SEQ)$(BR2_PACKAGE_ALSA_LIB_RAWMIDI),yyy)
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
WINE_CONF_OPTS += --with-alsa
WINE_DEPENDENCIES += alsa-lib
else