RetroPie-Setup/scriptmodules/emulators/jzintv.sh
Jools Wills ac1dce6307 jzintv - add flag nodistcc to disable distcc for module
Remove setting DISTCC_HOSTS to an empty string to disable distcc (now handled by the module flag).
2024-04-17 00:54:41 +01:00

78 lines
2.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="jzintv"
rp_module_desc="Intellivision emulator"
rp_module_help="ROM Extensions: .int .bin .rom\n\nCopy your Intellivision roms to $romdir/intellivision\n\nCopy the required BIOS files exec.bin and grom.bin to $biosdir"
rp_module_licence="GPL2 http://spatula-city.org/%7Eim14u2c/intv/"
rp_module_repo="file $__archive_url/jzintv-20200712-src.zip"
rp_module_section="opt"
rp_module_flags="sdl2 nodistcc"
function depends_jzintv() {
getDepends libsdl2-dev libreadline-dev
}
function sources_jzintv() {
rm -rf "$md_build/jzintv"
downloadAndExtract "$md_repo_url" "$md_build"
# jzintv-YYYYMMDD/ --> jzintv/
mv jzintv-[0-9]* jzintv
cd jzintv/src
# Add source release date information to build
mv buildcfg/90-svn.mak buildcfg/90-svn.mak.txt
echo "SVN_REV := $(echo $md_repo_url | grep -o -P '[\d]{8}')" > buildcfg/90-src_releasedate.mak
sed -i.zip-dist "s/SVN Revision/Releasedate/" svn_revision.c
# aarch64 doesn't include sys/io.h - but it's not needed so we can remove
grep -rl "include.*sys/io.h" | xargs sed -i "/include.*sys\/io.h/d"
# remove shipped binaries / libraries
rm -rf ../bin
}
function build_jzintv() {
mkdir -p jzintv/bin
cd jzintv/src
make clean
make
md_ret_require="$md_build/jzintv/bin/jzintv"
}
function install_jzintv() {
md_ret_files=(
'jzintv/bin'
'jzintv/doc'
'jzintv/src/COPYING.txt'
'jzintv/src/COPYRIGHT.txt'
$(find jzintv/Release*)
)
}
function configure_jzintv() {
mkRomDir "intellivision"
local options=(
--displaysize="%XRES%x%YRES%"
--quiet
--rom-path="$biosdir"
--voice=1
)
addEmulator 1 "$md_id" "intellivision" "$md_inst/bin/jzintv ${options[*]} %ROM%"
options+=(--ecs=1)
addEmulator 0 "${md_id}-ecs" "intellivision" "$md_inst/bin/jzintv ${options[*]} %ROM%"
addSystem "intellivision"
}