Skip to content

Commit 0be2bfd

Browse files
committed
lr-scummvm: update build recipe, upgrade the core to v2.6.1
Recently, upstream re-organized the repository and changed the build process. This commit adapts the scriptmodule to the new structure: - building is done directly from the main repo source - data files neeed for the core is built with `make datafiles` and copied to our package - ScummVM is upgraded to current stable (v2.6.1) in the process. NOTE: WIP engines are not built by default and are not included - switched the theme the `scummremastered`, added in 2019 in ScummVM - license changed to GPLv3 (same as the main ScummVM project)
1 parent a34b2ec commit 0be2bfd

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

scriptmodules/libretrocores/lr-scummvm.sh

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,26 @@
1212
rp_module_id="lr-scummvm"
1313
rp_module_desc="ScummVM port for libretro"
1414
rp_module_help="Copy your ScummVM games to $romdir/scummvm\n\nThe name of your game directories must be suffixed with '.svm' for direct launch in EmulationStation."
15-
rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/scummvm/master/COPYING"
16-
rp_module_repo="git https://github.com/libretro/scummvm.git master"
15+
rp_module_licence="GPL3 https://raw.githubusercontent.com/libretro/scummvm/main/LICENSE"
16+
rp_module_repo="git https://github.com/libretro/scummvm.git main"
1717
rp_module_section="exp"
1818

1919
function sources_lr-scummvm() {
2020
gitPullOrClone
2121
}
2222

2323
function build_lr-scummvm() {
24-
make clean -C backends/platform/libretro/build
25-
26-
local params=(HAVE_MT32EMU=1)
27-
local platform
28-
isPlatform "arm" && platform+="armv"
29-
isPlatform "neon" && platform+="neon"
30-
[[ -n "$platform" ]] && params+=(platform="$platform")
31-
32-
make "${params[@]}" -C backends/platform/libretro/build
33-
md_ret_require="$md_build/backends/platform/libretro/build/scummvm_libretro.so"
24+
make clean
25+
make HAVE_MT32EMU=1
26+
make datafiles
27+
md_ret_require="$md_build/scummvm_libretro.so"
3428
}
3529

3630
function install_lr-scummvm() {
3731
md_ret_files=(
38-
"backends/platform/libretro/build/scummvm_libretro.so"
39-
"COPYING"
32+
"scummvm_libretro.so"
33+
"scummvm.zip"
34+
"LICENSE"
4035
)
4136
}
4237

@@ -49,8 +44,8 @@ function configure_lr-scummvm() {
4944
mkRomDir "scummvm"
5045
defaultRAConfig "scummvm"
5146

52-
# download and extract auxiliary data (theme, extra)
53-
downloadAndExtract "https://github.com/libretro/scummvm/raw/master/backends/platform/libretro/aux-data/scummvm.zip" "$biosdir"
47+
# unpack the data files to system dir
48+
runCmd unzip -q "$md_inst/scummvm.zip" -d "$biosdir"
5449
chown -R $user:$user "$biosdir/scummvm"
5550

5651
# basic initial configuration (if config file not found)
@@ -60,7 +55,7 @@ function configure_lr-scummvm() {
6055
iniSet "extrapath" "$biosdir/scummvm/extra"
6156
iniSet "themepath" "$biosdir/scummvm/theme"
6257
iniSet "soundfont" "$biosdir/scummvm/extra/Roland_SC-55.sf2"
63-
iniSet "gui_theme" "scummmodern"
58+
iniSet "gui_theme" "scummremastered"
6459
iniSet "subtitles" "true"
6560
iniSet "multi_midi" "true"
6661
iniSet "gm_device" "fluidsynth"

0 commit comments

Comments
 (0)