mgba/.travis-deps.sh

20 lines
842 B
Bash
Raw Normal View History

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
else
sudo add-apt-repository ppa:smspillaz/cmake-2.8.12 -y
sudo add-apt-repository ppa:zoogie/sdl2-snapshots -y
sudo add-apt-repository ppa:immerrr-k/qt5-backport -y
sudo add-apt-repository ppa:spvkgn/ffmpeg+mpv -y
2015-09-21 08:06:11 +00:00
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
2015-09-21 07:46:57 +00:00
sudo apt-get update -qq
sudo apt-get purge cmake -qq
sudo apt-get install -y -qq cmake libedit-dev libmagickwand-dev \
2015-09-21 08:06:11 +00:00
g++-4.8 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
2015-09-21 08:06:11 +00:00
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100
2015-09-21 07:46:57 +00:00
fi