package/mpg123: add sdl2 support

mpg123 supports (and prefers) SDL2 as well for the sdl backends since 1.26.9
with:

792615f651

So support that here as well.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Peter Korsgaard
2026-02-03 08:58:18 +01:00
committed by Thomas Petazzoni
parent bc2d04f30d
commit 53c2c0903d

View File

@@ -64,10 +64,10 @@ MPG123_DEPENDENCIES += portaudio
MPG123_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs portaudio-2.0`"
endif
ifeq ($(BR2_PACKAGE_SDL),y)
ifneq ($(BR2_PACKAGE_SDL)$(BR2_PACKAGE_SDL2),)
MPG123_AUDIO += sdl
MPG123_CONF_OPTS += --with-default-audio=sdl
MPG123_DEPENDENCIES += sdl
MPG123_DEPENDENCIES += $(if $(BR2_PACKAGE_SDL2),sdl2,sdl)
endif
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)