From d8fa264c56b99d94b024270f9c647a362b985771 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sun, 20 Nov 2022 09:59:07 -0700 Subject: [PATCH] Add sdl_mixer support to prboom --- recipes/prboom/recipe.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/prboom/recipe.sh b/recipes/prboom/recipe.sh index 6fd974413..25550228a 100644 --- a/recipes/prboom/recipe.sh +++ b/recipes/prboom/recipe.sh @@ -1,6 +1,6 @@ VERSION=2.5.0 TAR=https://downloads.sourceforge.net/project/prboom/prboom%20stable/$VERSION/prboom-$VERSION.tar.gz -BUILD_DEPENDS=(sdl liborbital) +BUILD_DEPENDS=(sdl liborbital sdl_mixer libogg libvorbis) function recipe_version { echo "$VERSION" @@ -9,6 +9,7 @@ function recipe_version { function recipe_build { export CFLAGS="-static" + export MIXER_LIBS="-lSDL_mixer -lvorbisfile -lvorbis -logg" sysroot="$(realpath ../sysroot)" autoreconf -if wget -O autotools/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false" @@ -20,7 +21,8 @@ function recipe_build { --disable-cpu-opt \ --disable-gl \ --without-net \ - --with-sdl-prefix="$sysroot" + --with-sdl-prefix="$sysroot" \ + ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes "$REDOX_MAKE" -j"$($NPROC)" skip=1 } -- GitLab