|
| 1 | +#!/usr/bin/env bash |
| 2 | + |
| 3 | +# This file is part of The RetroPie Project |
| 4 | +# |
| 5 | +# The RetroPie Project is the legal property of its developers, whose names are |
| 6 | +# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source. |
| 7 | +# |
| 8 | +# See the LICENSE.md file at the top-level directory of this distribution and |
| 9 | +# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md |
| 10 | +# |
| 11 | + |
| 12 | +rp_module_id="lr-uae4arm" |
| 13 | +rp_module_desc="Uae4arm port for libretro" |
| 14 | +rp_module_help="ROM Extensions: .adf .uae .lha .ipf .iso\n\nCopy your Amigas games to $romdir/amiga." |
| 15 | +rp_module_licence="GPL2" |
| 16 | +rp_module_repo="git https://github.com/Chips-fr/uae4arm-rpi.git master" |
| 17 | +rp_module_section="exp" |
| 18 | +rp_module_flags="!all arm aarch64" |
| 19 | + |
| 20 | +function depends_lr-uae4arm() { |
| 21 | + getDepends libmpg123-dev libflac-dev |
| 22 | +} |
| 23 | + |
| 24 | +function sources_lr-uae4arm() { |
| 25 | + gitPullOrClone |
| 26 | +} |
| 27 | + |
| 28 | +function build_lr-uae4arm() { |
| 29 | + make -f Makefile.libretro clean |
| 30 | + local params=(platform=unix) |
| 31 | + isPlatform "neon" && params=(platform=unix-neon) |
| 32 | + isPlatform "aarch64" && params=(platform=unix-aarch64) |
| 33 | + make -f Makefile.libretro "${params[@]}" |
| 34 | + md_ret_require="$md_build/uae4arm_libretro.so" |
| 35 | +} |
| 36 | + |
| 37 | +function install_lr-uae4arm() { |
| 38 | + md_ret_files=( |
| 39 | + 'uae4arm_libretro.so' |
| 40 | + 'README.md' |
| 41 | + ) |
| 42 | +} |
| 43 | + |
| 44 | +function configure_lr-uae4arm() { |
| 45 | + mkRomDir "amiga" |
| 46 | + ensureSystemretroconfig "amiga" |
| 47 | + addEmulator 1 "$md_id" "amiga" "$md_inst/uae4arm_libretro.so" |
| 48 | + addSystem "amiga" |
| 49 | +} |
0 commit comments