From 16ff2d339a9d66cea1fbd8f3b85d101c4e4fb584 Mon Sep 17 00:00:00 2001 From: Michael Manganiello Date: Sat, 26 Mar 2022 13:16:26 -0300 Subject: [PATCH] Ports: Enable MP3 support for SDL2_mixer `SDL2_mixer` needs `libmpg123` to support MP3 playback. By adding it as a dependency, its compilation now outputs: ``` checking mpg123.h usability... yes checking mpg123.h presence... yes checking for mpg123.h... yes checking for mpg123_replace_reader_handle in -lmpg123... yes -- dynamic libmpg123 -> libmpg123.so.0 ``` Sound output was tested with [an implementation](https://gist.github.com/cdave1/10563386) found online. --- Ports/SDL2_mixer/package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ports/SDL2_mixer/package.sh b/Ports/SDL2_mixer/package.sh index ea3124c1cd..c600b6ab2d 100755 --- a/Ports/SDL2_mixer/package.sh +++ b/Ports/SDL2_mixer/package.sh @@ -6,7 +6,7 @@ use_fresh_config_sub=true config_sub_path=build-scripts/config.sub files="https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${version}.tar.gz SDL2_mixer-${version}.tar.gz b4cf5a382c061cd75081cf246c2aa2f9df8db04bdda8dcdc6b6cca55bede2419" auth_type=sha256 -depends=("libmodplug" "libvorbis" "SDL2") +depends=("libmodplug" "libmpg123" "libvorbis" "SDL2") configure() { export LIBS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib"