mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
Move the SDL declarations from MYOSGLUE.h to MYOSGLUE.c This fixes building on GCC 10+ due to the MYOSGLUE.h header being included by every source file. PR has been sent upstream https://github.com/vanfanel/minivmac_sdl2/pull/3
48 lines
1.5 KiB
Bash
48 lines
1.5 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="minivmac"
|
|
rp_module_desc="Macintosh Plus Emulator"
|
|
rp_module_help="ROM Extensions: .dsk \n\nCopy your Macintosh Plus disks to $romdir/macintosh \n\n You need to copy the Macintosh bios file vMac.ROM into "$biosdir" and System Tools.dsk to $romdir"
|
|
rp_module_licence="GPL2 https://raw.githubusercontent.com/vanfanel/minivmac_sdl2/master/COPYING.txt"
|
|
rp_module_repo="git https://github.com/vanfanel/minivmac_sdl2.git master"
|
|
rp_module_section="exp"
|
|
rp_module_flags=""
|
|
|
|
function depends_minivmac() {
|
|
getDepends libsdl2-dev
|
|
}
|
|
|
|
function sources_minivmac() {
|
|
gitPullOrClone
|
|
# apply fix for building on gcc 10+
|
|
applyPatch "$md_data/gcc10_fix.diff"
|
|
}
|
|
|
|
function build_minivmac() {
|
|
make
|
|
md_ret_require="$md_build/minivmac"
|
|
}
|
|
|
|
function install_minivmac() {
|
|
md_ret_files=(
|
|
'minivmac'
|
|
)
|
|
}
|
|
|
|
function configure_minivmac() {
|
|
mkRomDir "macintosh"
|
|
|
|
ln -sf "$biosdir/vMac.ROM" "$md_inst/vMac.ROM"
|
|
|
|
addEmulator 1 "$md_id" "macintosh" "pushd $md_inst; $md_inst/minivmac $romdir/macintosh/System\ Tools.dsk %ROM%; popd"
|
|
addSystem "macintosh"
|
|
}
|