| 1 | #! /bin/bash |
| 2 | set -e |
| 3 | set -x |
| 4 | set -u |
| 5 | set -o pipefail |
| 6 | |
| 7 | mkdir -p /staging/deps && cd /staging/deps && curl -L https://github.com/libsdl-org/SDL/releases/download/release-2.32.10/SDL2-2.32.10.tar.gz | tar -zx && cd SDL2-2.32.10 && ls -lrt |
| 8 | cd /staging/deps/SDL2-2.32.10 && ./configure --enable-shared --enable-static && make && make install |
| 9 | |
| 10 | #https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.2/SDL2_image-2.6.2.tar.gz |
| 11 | mkdir -p /staging/deps && cd /staging/deps && curl -L https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.2/SDL2_image-2.8.2.tar.gz | tar -zx && cd SDL2_image-2.8.2 && ls -lrt |
| 12 | cd /staging/deps/SDL2_image-2.8.2 && ./configure --enable-shared --enable-static && make && make install |
| 13 | |
| 14 | #https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.8./SDL2_mixer-2.8.0.tar.gz |
| 15 | mkdir -p /staging/deps && cd /staging/deps && curl -L https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.8.0/SDL2_mixer-2.8.0.tar.gz | tar -zx && cd SDL2_mixer-2.8.0 && ls -lrt |
| 16 | cd /staging/deps/SDL2_mixer-2.8.0 && ./configure --enable-shared --enable-static && make && make install |
| 17 | |
| 18 | #https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.22.0/SDL2_ttf-2.22.0.tar.gz |
| 19 | mkdir -p /staging/deps && cd /staging/deps && curl -L https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.22.0/SDL2_ttf-2.22.0.tar.gz | tar -zx && cd SDL2_ttf-2.22.0 && ls -lrt |
| 20 | cd /staging/deps/SDL2_ttf-2.22.0 && ./configure --enable-shared --enable-static && make && make install |
| 21 | mkdir -p /staging/blockattack-game |
| 22 | |
| 23 | mkdir -p /staging/deps && cd /staging/deps && curl https://icculus.org/physfs/downloads/physfs-3.0.2.tar.bz2 | tar -jx && cd physfs-3.0.2 && ls -lrt |
| 24 | cd /staging/deps/physfs-3.0.2 && cmake . && make && make install |
| 25 | |
| 26 | # boost |
| 27 | cd ~ |
| 28 | mkdir -p Downloads |
| 29 | cd Downloads |
| 30 | curl https://archives.boost.io/release/1.89.0/source/boost_1_89_0.tar.bz2 -O |
| 31 | tar xvfj boost_1_89_0.tar.bz2 |
| 32 | pushd boost_1_89_0 |
| 33 | ./bootstrap.sh --with-libraries=program_options |
| 34 | ./b2 install -j 2 --prefix=/usr link=static |
| 35 | popd |
| 36 | curl https://files.poulsander.com/~poul19/public_files/fmt-8.1.0.tar.gz | tar -xz |
| 37 | pushd fmt-8.1.0 |
| 38 | cmake . -DFMT_TEST=OFF -DFMT_INSTALL=ON -DFMT_MASTER_PROJECT=OFF && make && make install |
| 39 | popd |