@@ -22,31 +22,34 @@ function _get_branch_dosbox-staging() {
22
22
}
23
23
24
24
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
26
26
}
27
27
28
28
function sources_dosbox-staging() {
29
29
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
33
34
fi
34
35
}
35
36
36
37
function build_dosbox-staging() {
37
38
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"
38
42
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
41
45
42
46
md_ret_require=(
43
47
" $md_build /build/dosbox"
44
48
)
45
49
}
46
50
47
51
function install_dosbox-staging() {
48
- cd " $md_build /build"
49
- meson install
52
+ ninja -C build install
50
53
}
51
54
52
55
function configure_dosbox-staging() {
0 commit comments