#!/bin/sh

sudo apt-get --force-yes install libopenal-dev libconfuse-dev libpng-dev libenet-dev libogg-dev libvorbis-dev libasound2-dev libxss-dev libpulse-dev

# remove the 2 lines below and add libsdl2-static-dev to apt-get if travis updates sdl to 2.0.1+
wget http://libsdl.org/release/SDL2-2.0.1.tar.gz -O - | tar xz
cd SDL2-2.0.1 && ./configure --prefix=$PREFIX && make -j5 && sudo make install
  
cd travis/
git clone --depth=1 https://github.com/omf2097/libShadowDive.git
git clone --depth=1 https://bitbucket.org/kode54/dumb.git

cd libShadowDive
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install

cd ../../dumb
mkdir dumb/cmake/build/
cd dumb/cmake/build/
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install





#!/bin/sh

sudo apt-get --force-yes install libopenal-dev libconfuse-dev libpng-dev libenet-dev libogg-dev libvorbis-dev libasound2-dev libxss-dev libpulse-dev

# remove the 2 lines below and add libsdl2-dev to apt-get if travis updates sdl to 2.0.1+
wget http://libsdl.org/release/SDL2-2.0.3.tar.gz -O - | tar xz
cd SDL2-2.0.1 && ./configure --prefix=$PREFIX && make -j5 && sudo make install
  
cd travis/
git clone --depth=1 https://github.com/omf2097/libShadowDive.git
git clone --depth=1 https://bitbucket.org/kode54/dumb.git

cd libShadowDive
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install

cd ../../dumb
mkdir dumb/cmake/build/
cd dumb/cmake/build/
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install





Update travis to use SDL 2.0.3
Update travis to use SDL 2.0.3
