@@ -17,22 +17,21 @@ rp_module_section="opt"
17
17
rp_module_flags=" !mali !kms"
18
18
19
19
function depends_atari800() {
20
- local depends=(libsdl1.2-dev autoconf zlib1g-dev libpng-dev)
20
+ local depends=(libsdl1.2-dev autoconf automake zlib1g-dev libpng-dev)
21
21
isPlatform " rpi" && depends+=(libraspberrypi-dev)
22
22
getDepends " ${depends[@]} "
23
23
}
24
24
25
25
function sources_atari800() {
26
- downloadAndExtract " $__archive_url / atari800-4.0.0.tar.gz " " $md_build " --strip-components 1
26
+ gitPullOrClone " $md_build " " https://github.com/ atari800/atari800.git " ATARI800_4_1_0
27
27
if isPlatform " rpi" ; then
28
28
applyPatch " $md_data /01_rpi_fixes.diff"
29
29
fi
30
30
}
31
31
32
32
function build_atari800() {
33
- cd src
34
- autoreconf -v
35
- params=()
33
+ local params=()
34
+ ./autogen.sh
36
35
isPlatform " rpi" && params+=(--target=rpi)
37
36
./configure --prefix=" $md_inst " ${params[@]}
38
37
make clean
@@ -49,16 +48,22 @@ function configure_atari800() {
49
48
mkRomDir " atari800"
50
49
mkRomDir " atari5200"
51
50
52
- mkUserDir " $md_conf_root /atari800"
51
+ if [[ " $md_mode " == " install" ]]; then
52
+ mkUserDir " $md_conf_root /atari800"
53
+
54
+ # move old config if exists to new location
55
+ if [[ -f " $md_conf_root /atari800.cfg" ]]; then
56
+ mv " $md_conf_root /atari800.cfg" " $md_conf_root /atari800/atari800.cfg"
57
+ fi
58
+ moveConfigFile " $home /.atari800.cfg" " $md_conf_root /atari800/atari800.cfg"
53
59
54
- # move old config if exists to new location
55
- if [[ -f " $md_conf_root / atari800.cfg " ]] ; then
56
- mv " $md_conf_root /atari800.cfg " " $md_conf_root /atari800/atari800.cfg "
60
+ # copy launch script (used for unpacking archives)
61
+ sed " s#EMULATOR#/bin/ $md_id # " " $scriptdir /scriptmodules/ $md_type / atari800/atari800.sh " > " $md_inst / $md_id .sh "
62
+ chmod a+x " $md_inst / $md_id .sh "
57
63
fi
58
- moveConfigFile " $home /.atari800.cfg" " $md_conf_root /atari800/atari800.cfg"
59
64
60
- addEmulator 1 " atari800" " atari800" " $md_inst /bin/ atari800 %ROM%"
61
- addEmulator 1 " atari800" " atari5200" " $md_inst /bin/ atari800 %ROM%"
65
+ addEmulator 1 " atari800" " atari800" " $md_inst /atari800.sh %ROM%"
66
+ addEmulator 1 " atari800" " atari5200" " $md_inst /atari800.sh %ROM%"
62
67
addSystem " atari800"
63
68
addSystem " atari5200"
64
69
}
0 commit comments