mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
Looks like some deprecation in python3.11 breaks building the Mame/Mess2016 cores due to some codegen including python scripts. Similar to the commit for `lr-mame2016`, allows us to build on the newer Bookworm.
46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# This file is part of The RetroPie Project
|
|
#
|
|
# The RetroPie Project is the legal property of its developers, whose names are
|
|
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
|
|
#
|
|
# See the LICENSE.md file at the top-level directory of this distribution and
|
|
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
|
|
#
|
|
|
|
rp_module_id="lr-mess2016"
|
|
rp_module_desc="MESS emulator - MESS Port for libretro"
|
|
rp_module_help="see wiki for detailed explanation"
|
|
rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/mame2016-libretro/master/LICENSE.md"
|
|
rp_module_repo="git https://github.com/libretro/mame2016-libretro.git master"
|
|
rp_module_section="exp"
|
|
rp_module_flags=""
|
|
|
|
function depends_lr-mess2016() {
|
|
depends_lr-mame2016
|
|
}
|
|
|
|
function sources_lr-mess2016() {
|
|
gitPullOrClone
|
|
applyPatch "${md_path%/*}/lr-mame2016/01-python3-irgen.diff"
|
|
}
|
|
|
|
function build_lr-mess2016() {
|
|
rpSwap on 1200
|
|
local params=($(_get_params_lr-mame) SUBTARGET=mess)
|
|
make clean
|
|
make "${params[@]}"
|
|
rpSwap off
|
|
md_ret_require="$md_build/mess2016_libretro.so"
|
|
}
|
|
|
|
function install_lr-mess2016() {
|
|
md_ret_files=(
|
|
'mess2016_libretro.so'
|
|
)
|
|
}
|
|
|
|
function configure_lr-mess2016() {
|
|
configure_lr-mess "mess2016_libretro.so"
|
|
}
|