#!/bin/sh
set -e

if [ "$(uname -s)" = "Darwin" ]; then
    brew update
    brew install qt

    case "$CONFIG" in
    full*)
        brew install doxygen opus speex theora libvpx
        ;;
    esac
else
    sudo apt-get update -qq
    sudo apt-get install -qq clang cmake qtbase5-dev

    case "$CONFIG" in
    full*)
        sudo apt-get install -qq  doxygen libopus-dev libspeex-dev libtheora-dev libvpx-dev
        ;;
    esac
fi
