mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
58 lines
2 KiB
Bash
58 lines
2 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="basilisk"
|
|
rp_module_desc="Macintosh emulator"
|
|
rp_module_help="ROM Extensions: .img .rom\n\nCopy your Macintosh roms mac.rom and disk.img to $romdir/macintosh"
|
|
rp_module_licence="GPL2 https://raw.githubusercontent.com/cebix/macemu/master/BasiliskII/COPYING"
|
|
rp_module_repo="git https://github.com/cebix/macemu.git master"
|
|
rp_module_section="opt"
|
|
rp_module_flags="sdl1 !mali"
|
|
|
|
function depends_basilisk() {
|
|
local depends=(libsdl1.2-dev autoconf automake oss-compat)
|
|
isPlatform "x11" && depends+=(libgtk2.0-dev)
|
|
getDepends "${depends[@]}"
|
|
}
|
|
|
|
function sources_basilisk() {
|
|
gitPullOrClone
|
|
}
|
|
|
|
function build_basilisk() {
|
|
cd BasiliskII/src/Unix
|
|
local params=(--enable-sdl-video --enable-sdl-audio --disable-vosf --without-mon --without-esd)
|
|
! isPlatform "x86" && params+=(--disable-jit-compiler)
|
|
! isPlatform "x11" && params+=(--without-x --without-gtk)
|
|
isPlatform "aarch64" && params+=(--build=arm)
|
|
./autogen.sh --prefix="$md_inst" "${params[@]}"
|
|
make clean
|
|
make
|
|
md_ret_require="$md_build/BasiliskII/src/Unix/BasiliskII"
|
|
}
|
|
|
|
function install_basilisk() {
|
|
cd "BasiliskII/src/Unix"
|
|
make install
|
|
}
|
|
|
|
function configure_basilisk() {
|
|
local params=()
|
|
isPlatform "kms" && params+=("--screen win/%XRES%/%YRES%")
|
|
|
|
mkRomDir "macintosh"
|
|
touch "$romdir/macintosh/Start.txt"
|
|
|
|
mkUserDir "$md_conf_root/macintosh"
|
|
|
|
addEmulator 1 "$md_id" "macintosh" "$md_inst/bin/BasiliskII --rom $romdir/macintosh/mac.rom --disk $romdir/macintosh/disk.img --extfs $romdir/macintosh --config $md_conf_root/macintosh/basiliskii.cfg ${params[*]}"
|
|
addSystem "macintosh"
|
|
}
|