#!/bin/bash sudo apt-get -qq -y install libsdl2-dev libsdl2-ttf-dev libalut-dev libpng12-dev cmake if [ "$CC" = "gcc" ]; then sudo apt-get install gcc-4.8; fi if [ "$CXX" = "g++" ]; then sudo apt-get install g++-4.8; fi if [ "$CXX" = "clang++" ]; then sudo apt-get -y install --allow-unauthenticated clang-3.5; fi wget 'http://downloads.sourceforge.net/project/ogl-math/glm-0.9.6.3/glm-0.9.6.3.zip' unzip glm-0.9.6.3.zip sudo cp -R glm/glm /usr/local/include/glm if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++" svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk libcxx cd libcxx/lib && bash buildit sudo cp ./libc++.so.1.0 /usr/lib/ sudo mkdir /usr/include/c++/v1 cd .. && sudo cp -r include/* /usr/include/c++/v1/ cd /usr/lib && sudo ln -sf libc++.so.1.0 libc++.so sudo ln -sf libc++.so.1.0 libc++.so.1 && cd $cwd fi