2015-09-21 07:46:57 +00:00
|
|
|
#!/bin/sh
|
2015-09-21 07:53:27 +00:00
|
|
|
if [ $TRAVIS_OS_NAME = "osx" ]; then
|
2015-09-23 06:17:48 +00:00
|
|
|
brew update
|
2015-09-21 07:46:57 +00:00
|
|
|
brew install qt5 ffmpeg imagemagick sdl2 libzip libpng
|
2017-03-20 23:01:56 +00:00
|
|
|
if [ "$CC" == "gcc" ]; then
|
2017-07-17 21:08:26 +00:00
|
|
|
brew install gcc@5
|
|
|
|
export CC=gcc-5
|
|
|
|
export CXX=g++-5
|
2017-03-20 23:01:56 +00:00
|
|
|
fi
|
2015-09-21 07:46:57 +00:00
|
|
|
else
|
2016-02-14 19:56:00 +00:00
|
|
|
sudo apt-get clean
|
2017-07-17 21:08:26 +00:00
|
|
|
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
|
2017-07-23 17:37:52 +00:00
|
|
|
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
2016-02-14 19:56:00 +00:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y -q cmake libedit-dev libmagickwand-dev \
|
2015-12-16 06:54:51 +00:00
|
|
|
libpng-dev libsdl2-dev libzip-dev qtbase5-dev \
|
2015-09-21 07:46:57 +00:00
|
|
|
libqt5opengl5-dev qtmultimedia5-dev libavcodec-dev \
|
|
|
|
libavutil-dev libavformat-dev libavresample-dev libswscale-dev
|
2017-07-17 21:08:26 +00:00
|
|
|
if [ "$CC" == "gcc" ]; then
|
|
|
|
sudo apt-get install -y -q gcc-5 g++-5
|
|
|
|
export CC=gcc-5
|
|
|
|
export CXX=g++-5
|
|
|
|
fi
|
2015-09-21 07:46:57 +00:00
|
|
|
fi
|