Skip to content

Commit

Permalink
Merge pull request #3402 from Chips-fr/master
Browse files Browse the repository at this point in the history
Add uae4arm core support
  • Loading branch information
joolswills authored Oct 10, 2021
2 parents 9b9f052 + 4f46416 commit 8a39a76
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
49 changes: 49 additions & 0 deletions scriptmodules/libretrocores/lr-uae4arm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/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-uae4arm"
rp_module_desc="Uae4arm port for libretro"
rp_module_help="ROM Extensions: .adf .uae .lha .ipf .iso\n\nCopy your Amigas games to $romdir/amiga."
rp_module_licence="GPL2"
rp_module_repo="git https://github.com/Chips-fr/uae4arm-rpi.git master"
rp_module_section="exp"
rp_module_flags="!all arm aarch64"

function depends_lr-uae4arm() {
getDepends libmpg123-dev libflac-dev
}

function sources_lr-uae4arm() {
gitPullOrClone
}

function build_lr-uae4arm() {
make -f Makefile.libretro clean
local params=(platform=unix)
isPlatform "neon" && params=(platform=unix-neon)
isPlatform "aarch64" && params=(platform=unix-aarch64)
make -f Makefile.libretro "${params[@]}"
md_ret_require="$md_build/uae4arm_libretro.so"
}

function install_lr-uae4arm() {
md_ret_files=(
'uae4arm_libretro.so'
'README.md'
)
}

function configure_lr-uae4arm() {
mkRomDir "amiga"
ensureSystemretroconfig "amiga"
addEmulator 1 "$md_id" "amiga" "$md_inst/uae4arm_libretro.so"
addSystem "amiga"
}
1 change: 1 addition & 0 deletions scriptmodules/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function conf_build_vars() {
# add our cpu and optimisation flags
__default_cflags+=" $__cpu_flags $__opt_flags"
__default_cxxflags+=" $__cpu_flags $__opt_flags"
__default_asflags+=" $__cpu_flags"

# if not overridden by user, configure our compiler flags
[[ -z "$__cflags" ]] && __cflags="$__default_cflags"
Expand Down

0 comments on commit 8a39a76

Please sign in to comment.