Skip to content

Commit 44690da

Browse files
authored
Merge pull request #2886 from joolswills/amiberry_update
Amiberry update
2 parents 6aa73f5 + cb4ec2f commit 44690da

File tree

2 files changed

+24
-57
lines changed

2 files changed

+24
-57
lines changed

scriptmodules/emulators/amiberry.sh

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,66 +11,56 @@
1111

1212
rp_module_id="amiberry"
1313
rp_module_desc="Amiga emulator with JIT support (forked from uae4arm)"
14-
rp_module_help="ROM Extension: .adf\n\nCopy your Amiga games to $romdir/amiga\n\nCopy the required BIOS files\nkick13.rom\nkick20.rom\nkick31.rom\nto $biosdir"
14+
rp_module_help="ROM Extension: .adf .ipf .zip\n\nCopy your Amiga games to $romdir/amiga\n\nCopy the required BIOS files\nkick13.rom\nkick20.rom\nkick31.rom\nto $biosdir"
1515
rp_module_licence="GPL3 https://raw.githubusercontent.com/midwan/amiberry/master/COPYING"
1616
rp_module_section="opt"
1717
rp_module_flags="!x86"
1818

19-
function _get_platform_bin_amiberry() {
20-
local choice="$1"
21-
local amiberry_bin="$__platform-sdl2"
22-
local amiberry_platform="$__platform-sdl2"
19+
function _get_platform_amiberry() {
20+
local platform="$__platform-sdl2"
2321
if isPlatform "rpi" && ! isPlatform "kms"; then
24-
amiberry_bin="$__platform-sdl1"
25-
amiberry_platform="$__platform"
22+
platform="$__platform"
2623
elif isPlatform "odroid-xu"; then
27-
amiberry_bin="xu4"
28-
amiberry_platform="xu4"
24+
platform="xu4"
2925
elif isPlatform "tinker"; then
30-
amiberry_bin="tinker"
31-
amiberry_platform="tinker"
26+
platform="tinker"
3227
elif isPlatform "vero4k"; then
33-
amiberry_bin="vero4k"
34-
amiberry_platform="vero4k"
28+
platform="vero4k"
3529
fi
36-
[[ "$choice" == "bin" ]] && echo "$amiberry_bin"
37-
[[ "$choice" == "platform" ]] && echo "$amiberry_platform"
30+
echo "$platform"
3831
}
3932

4033
function depends_amiberry() {
41-
local depends=(libpng-dev libmpeg2-4-dev zlib1g-dev)
42-
if ! isPlatform "rpi" || isPlatform "kms" || isPlatform "vero4k"; then
43-
depends+=(libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev)
44-
fi
34+
local depends=(autoconf libpng-dev libmpeg2-4-dev zlib1g-dev libguichan-dev libmpg123-dev libflac-dev libxml2-dev libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev)
4535

46-
if isPlatform "vero4k"; then
47-
depends+=(vero3-userland-dev-osmc libmpg123-dev libxml2-dev libflac-dev)
48-
getDepends "${depends[@]}"
49-
else
50-
depends_uae4arm "${depends[@]}"
51-
fi
36+
isPlatform "vero4k" && depends+=(vero3-userland-dev-osmc)
37+
38+
getDepends "${depends[@]}"
5239
}
5340

5441
function sources_amiberry() {
55-
gitPullOrClone "$md_build" https://github.com/midwan/amiberry/
56-
applyPatch "$md_data/01_remove_cflags.diff"
42+
# temporarily use dev branch
43+
gitPullOrClone "$md_build" https://github.com/midwan/amiberry
5744
}
5845

5946
function build_amiberry() {
60-
local amiberry_bin=$(_get_platform_bin_amiberry bin)
61-
local amiberry_platform=$(_get_platform_bin_amiberry platform)
47+
local platform=$(_get_platform_amiberry)
48+
cd external/capsimg
49+
make clean
50+
./bootstrap.fs
51+
./configure.fs
52+
make -f Makefile.fs
53+
cd "$md_build"
6254
make clean
63-
CXXFLAGS="" make PLATFORM="$amiberry_platform"
64-
ln -sf "amiberry-$amiberry_bin" "amiberry"
65-
md_ret_require="$md_build/amiberry-$amiberry_bin"
55+
make PLATFORM="$platform"
56+
md_ret_require="$md_build/amiberry"
6657
}
6758

6859
function install_amiberry() {
69-
local amiberry_bin=$(_get_platform_bin_amiberry bin)
7060
md_ret_files=(
7161
'amiberry'
72-
"amiberry-$amiberry_bin"
7362
'data'
63+
'external/capsimg/capsimg.so'
7464
)
7565

7666
cp -R "$md_build/whdboot" "$md_inst/whdboot-dist"

scriptmodules/emulators/amiberry/01_remove_cflags.diff

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)