summaryrefslogtreecommitdiff
path: root/travis/sdl2.sh
blob: 8b914fb15846e8b4441fe1e1be5bc352f2a12fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if [ ! -e "$HOME/local/lib/libSDL2.so" ]; then
    wget https://www.libsdl.org/release/SDL2-2.0.4.tar.gz -O ~/SDL2.tar.gz
    tar -xzvf ~/SDL2.tar.gz -C ~/
    mkdir ~/sdl-build
    cd ~/sdl-build
    export CC=gcc-5
    ~/SDL2-2.0.4/configure --prefix=$HOME/local
    make -j2
    make install
else 
    echo 'Using cached SDL2 build directory.';
fi