Skip to content

Commit 2830334

Browse files
authored
Merge pull request #3611 from cmitu/dosbox-staging-2
dosbox-staging: updates for 0.80
2 parents 09a0fbd + 7ee0eec commit 2830334

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

scriptmodules/emulators/dosbox-staging.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,34 @@ function _get_branch_dosbox-staging() {
2222
}
2323

2424
function depends_dosbox-staging() {
25-
getDepends cmake libasound2-dev libglib2.0-dev libopusfile-dev libpng-dev libsdl2-dev libsdl2-net-dev libspeexdsp-dev meson ninja-build
25+
getDepends cmake libasound2-dev libglib2.0-dev libopusfile-dev libpng-dev libsdl2-dev libsdl2-net-dev libsdl2-image-dev libspeexdsp-dev meson ninja-build
2626
}
2727

2828
function sources_dosbox-staging() {
2929
gitPullOrClone
30-
# patch the dosbox-staging meson.build script to disable neon instructions for older arm
31-
if ! isPlatform "neon"; then
32-
applyPatch "$md_data/speexdsp_simd_disable.diff"
30+
# Check if we have at least meson>=0.57, otherwise install it locally for the build
31+
local meson_version="$(meson --version)"
32+
if compareVersions "$meson_version" lt 0.57; then
33+
downloadAndExtract "https://github.com/mesonbuild/meson/releases/download/0.61.5/meson-0.61.5.tar.gz" meson --strip-components 1
3334
fi
3435
}
3536

3637
function build_dosbox-staging() {
3738
local params=(-Dprefix="$md_inst" -Ddatadir="resources")
39+
# use the build local Meson installation if found
40+
local meson_cmd="meson"
41+
[[ -f "$md_build/meson/meson.py" ]] && meson_cmd="python3 $md_build/meson/meson.py"
3842

39-
meson setup "${params[@]}" build
40-
meson compile -j${__jobs} -C build
43+
$meson_cmd setup "${params[@]}" build
44+
$meson_cmd compile -j${__jobs} -C build
4145

4246
md_ret_require=(
4347
"$md_build/build/dosbox"
4448
)
4549
}
4650

4751
function install_dosbox-staging() {
48-
cd "$md_build/build"
49-
meson install
52+
ninja -C build install
5053
}
5154

5255
function configure_dosbox-staging() {

scriptmodules/emulators/dosbox-staging/speexdsp_simd_disable.diff

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)