12
12
rp_module_id=" cgenius"
13
13
rp_module_desc=" Commander Genius - Modern Interpreter for the Commander Keen Games (Vorticon and Galaxy Games)"
14
14
rp_module_licence=" GPL2 https://raw.githubusercontent.com/gerstrong/Commander-Genius/master/COPYRIGHT"
15
- rp_module_repo=" git https://gitlab.com/Dringgstein/Commander-Genius.git v3.0.8 "
15
+ rp_module_repo=" git https://gitlab.com/Dringgstein/Commander-Genius.git v3.2.0 "
16
16
rp_module_section=" exp"
17
17
18
18
function depends_cgenius() {
@@ -21,23 +21,20 @@ function depends_cgenius() {
21
21
22
22
function sources_cgenius() {
23
23
gitPullOrClone
24
-
25
- # use -O2 on older GCC due to segmentation fault when compiling with -O3
26
- if compareVersions $__gcc_version lt 6; then
27
- sed -i " s/ADD_DEFINITIONS(-O3)/ADD_DEFINITIONS(-O2)/" src/CMakeLists.txt
28
- fi
29
24
}
30
25
31
26
function build_cgenius() {
32
- cmake -DBUILD_COSMOS=1 -DCMAKE_INSTALL_PREFIX=" $md_inst " -DNOTYPESAVE=on
27
+ rmdir -fr build
28
+ mkdir -p build && cd build
29
+ cmake -DBUILD_COSMOS=1 -DNOTYPESAVE=on ..
33
30
make
34
- md_ret_require=" $md_build /src/CGeniusExe"
31
+ md_ret_require=" $md_build /build/ src/CGeniusExe"
35
32
}
36
33
37
34
function install_cgenius() {
38
35
md_ret_files=(
39
36
' vfsroot'
40
- ' src/CGeniusExe'
37
+ ' build/ src/CGeniusExe'
41
38
)
42
39
}
43
40
@@ -47,5 +44,18 @@ function configure_cgenius() {
47
44
mkRomDir " ports/$md_id "
48
45
49
46
moveConfigDir " $home /.CommanderGenius" " $md_conf_root /$md_id "
50
- moveConfigDir " $md_conf_root /$md_id /games" " $romdir /ports/$md_id "
47
+
48
+ [[ $md_mode == " remove" ]] && return
49
+
50
+ # Create a minimal config file so the Commander can find the games
51
+ local config=" $( mktemp) "
52
+ cat > " $config " << _INI_
53
+ [FileHandling]
54
+ EnableLogfile = false
55
+ SearchPath1 = \$ {HOME}/.CommanderGenius
56
+ SearchPath2 = .
57
+ SearchPath3 = $romdir /ports/$md_id
58
+ _INI_
59
+ copyDefaultConfig " $config " " $md_conf_root /$md_id /cgenius.cfg"
60
+
51
61
}
0 commit comments