.travis-deps.sh (view raw)
1#!/bin/sh
2if [ $TRAVIS_OS_NAME = "osx" ]; then
3 brew update
4 brew install qt5 ffmpeg imagemagick sdl2 libzip libpng
5 if [ "$CC" == "gcc" ]; then
6 brew install gcc@5
7 export CC=gcc-5
8 export CXX=g++-5
9 fi
10else
11 sudo apt-get clean
12 sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
13 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
14 sudo apt-get update
15 sudo apt-get install -y -q cmake libedit-dev libmagickwand-dev \
16 libpng-dev libsdl2-dev libzip-dev qtbase5-dev \
17 libqt5opengl5-dev qtmultimedia5-dev libavcodec-dev \
18 libavutil-dev libavformat-dev libavresample-dev libswscale-dev
19 if [ "$CC" == "gcc" ]; then
20 sudo apt-get install -y -q gcc-5 g++-5
21 export CC=gcc-5
22 export CXX=g++-5
23 fi
24fi