6 - sudo apt-get install automake
7 - sudo apt-get install autoconf
8 - sudo apt-get install libtool
9 - sudo apt-get install xutils-dev
10 - sudo apt-get install libpciaccess-dev
11 - sudo apt-get install python-mako
12 - sudo dpkg -s python-mako
13 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
15 - sudo apt-get install gcc-4.9
16 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
17 - sudo apt-get install g++-4.9
18 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
20 - export HWC_BUILD_DIR=/tmp/
21 - export WLD=/tmp/hwc-install
22 - export LD_LIBRARY_PATH=$WLD/lib
23 - export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig
24 - export PATH=$WLD/bin:$PATH
25 - export ACLOCAL_PATH=$WLD/share/aclocal
26 - export ACLOCAL="aclocal -I $ACLOCAL_PATH"
28 - tar -xvf travisci/resources/minigbm-install.tar.bz2 -C $HWC_BUILD_DIR
29 - mkdir -p $WLD/share/aclocal
30 - git clone https://github.com/intel/external-libdrm.git /tmp/libdrm
32 - ./autogen.sh --disable-radeon --disable-nouveau --disable-amdgpu --enable-udev --enable-libkms --prefix=$WLD
33 - make -j5 && make install
36 - make CFLAGS=-DDRV_I915=1 -j5