File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ rp_module_section="opt"
18
18
rp_module_flags=" "
19
19
20
20
function _get_branch_simcoupe() {
21
- local branch=" master "
22
- # latest simcoupe requires cmake 3.8.2 - on Stretch older versions throw a cmake error about CXX17
21
+ local branch=" main "
22
+ # latest simcoupe requires cmake 3.14 - on Stretch older versions throw a cmake error about CXX17
23
23
# dialect support but actually seem to build ok. Lock systems with older cmake to 20200711 tag,
24
- # which builds ok on Raspbian Stretch and hopefully Ubuntu 18.04.
24
+ # which builds ok on Raspbian Stretch, and systems with cmake 3.12 to 20210501, which builds ok on Ubuntu 18.04.
25
25
26
26
# Test using "apt-cache madison" as this code could be called when cmake isn't yet installed but correct version
27
27
# is available - eg via update check with builder module which removes dependencies after building.
@@ -30,6 +30,8 @@ function _get_branch_simcoupe() {
30
30
local cmake_ver=$( apt-cache madison cmake | cut -d\| -f2 | sort --version-sort | head -1 | xargs)
31
31
if compareVersions " $cmake_ver " lt 3.8.2; then
32
32
branch=" 20200711"
33
+ elif compareVersions " $cmake_ver " lt 3.14; then
34
+ branch=" 20210501"
33
35
fi
34
36
echo " $branch "
35
37
}
@@ -44,6 +46,8 @@ function sources_simcoupe() {
44
46
45
47
function build_simcoupe() {
46
48
cmake -DCMAKE_INSTALL_PREFIX=" $md_inst " .
49
+ # force the downloaded 'SAAsound' dependency to be statically linked
50
+ sed -i ' s/ SHARED//' _deps/saasound-src/CMakeLists.txt
47
51
make clean
48
52
make
49
53
md_ret_require=" $md_build /simcoupe"
You can’t perform that action at this time.
0 commit comments