diff options
author | Eric Hameleers <alien@slackware.com> | 2022-09-03 19:56:23 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-09-03 19:56:23 +0000 |
commit | e0e5209043444a7e45181ccc3c4cdeb432f8bbfa (patch) | |
tree | 1d57c38ab454840a461938228892ff05edc34c4b /sonic-pi | |
parent | f719ffc75999e578e44878e209b0dac44e32342e (diff) | |
download | asb-e0e5209043444a7e45181ccc3c4cdeb432f8bbfa.tar.gz asb-e0e5209043444a7e45181ccc3c4cdeb432f8bbfa.tar.xz |
sonic-pi: make it compile on 32bit Slackware
Diffstat (limited to 'sonic-pi')
-rwxr-xr-x | sonic-pi/build/sonic-pi.SlackBuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sonic-pi/build/sonic-pi.SlackBuild b/sonic-pi/build/sonic-pi.SlackBuild index acd389db..f4e83130 100755 --- a/sonic-pi/build/sonic-pi.SlackBuild +++ b/sonic-pi/build/sonic-pi.SlackBuild @@ -183,8 +183,19 @@ mkdir -p ${APPROOT}/vcpkg cd ${APPROOT}/vcpkg git clone --depth 1 --branch ${VCPKG_BRANCH} \ https://github.com/microsoft/vcpkg.git . + if [ "$ARCH" = "i586" ]; then + # Add the 'x86-linux' architecture which vcpkg does not know: + sed -i scripts/buildsystems/vcpkg.cmake \ + -e '/^ *elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "s390x")/ielseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "i686")\nset(Z_VCPKG_TARGET_TRIPLET_ARCH x86)' + mkdir custom-triplets + cat triplets/x64-linux.cmake | sed -e 's/x64/x86/' \ + > custom-triplets/x86-linux.cmake + VCARGS=" --overlay-triplets=custom-triplets " + else + VCARGS=" " + fi ./bootstrap-vcpkg.sh -disableMetrics - ./vcpkg install \ + ./vcpkg ${VCARGS} install \ libsndfile[core,external-libs] kissfft fmt crossguid sdl2[x11] gl3w \ reproc gsl-lite concurrentqueue platform-folders catch2 \ --recurse |