|
11 | 11 |
|
12 | 12 | rp_module_id="amiberry"
|
13 | 13 | 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" |
15 | 15 | rp_module_licence="GPL3 https://raw.githubusercontent.com/midwan/amiberry/master/COPYING"
|
16 | 16 | rp_module_section="opt"
|
17 | 17 | rp_module_flags="!x86"
|
18 | 18 |
|
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" |
23 | 21 | if isPlatform "rpi" && ! isPlatform "kms"; then
|
24 |
| - amiberry_bin="$__platform-sdl1" |
25 |
| - amiberry_platform="$__platform" |
| 22 | + platform="$__platform" |
26 | 23 | elif isPlatform "odroid-xu"; then
|
27 |
| - amiberry_bin="xu4" |
28 |
| - amiberry_platform="xu4" |
| 24 | + platform="xu4" |
29 | 25 | elif isPlatform "tinker"; then
|
30 |
| - amiberry_bin="tinker" |
31 |
| - amiberry_platform="tinker" |
| 26 | + platform="tinker" |
32 | 27 | elif isPlatform "vero4k"; then
|
33 |
| - amiberry_bin="vero4k" |
34 |
| - amiberry_platform="vero4k" |
| 28 | + platform="vero4k" |
35 | 29 | fi
|
36 |
| - [[ "$choice" == "bin" ]] && echo "$amiberry_bin" |
37 |
| - [[ "$choice" == "platform" ]] && echo "$amiberry_platform" |
| 30 | + echo "$platform" |
38 | 31 | }
|
39 | 32 |
|
40 | 33 | 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) |
45 | 35 |
|
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[@]}" |
52 | 39 | }
|
53 | 40 |
|
54 | 41 | 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 |
57 | 44 | }
|
58 | 45 |
|
59 | 46 | 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" |
62 | 54 | 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" |
66 | 57 | }
|
67 | 58 |
|
68 | 59 | function install_amiberry() {
|
69 |
| - local amiberry_bin=$(_get_platform_bin_amiberry bin) |
70 | 60 | md_ret_files=(
|
71 | 61 | 'amiberry'
|
72 |
| - "amiberry-$amiberry_bin" |
73 | 62 | 'data'
|
| 63 | + 'external/capsimg/capsimg.so' |
74 | 64 | )
|
75 | 65 |
|
76 | 66 | cp -R "$md_build/whdboot" "$md_inst/whdboot-dist"
|
|
0 commit comments