Skip to content

Commit b4e6add

Browse files
committed
dosbox-staging - fix building slirp due to missing libsdl2-image-dev
1 parent 7063373 commit b4e6add

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scriptmodules/emulators/dosbox-staging.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ function _get_branch_dosbox-staging() {
2929
function depends_dosbox-staging() {
3030
local depends
3131
depends=(cmake libasound2-dev libglib2.0-dev libopusfile-dev libpng-dev libsdl2-dev libsdl2-net-dev libspeexdsp-dev meson ninja-build zlib1g-dev)
32-
[[ "$__os_debian_ver" -ge 11 ]] && depends+=(libslirp-dev libfluidsynth-dev)
32+
if [[ "$__os_debian_ver" -ge 11 ]]; then
33+
depends+=(libslirp-dev libfluidsynth-dev)
34+
else
35+
# the slirp subproject requires libsdl2-image-dev to build
36+
depends+=(libsdl2-image-dev)
37+
fi
3338

3439
getDepends "${depends[@]}"
3540
}

0 commit comments

Comments
 (0)