Created
October 31, 2018 06:11
-
-
Save nop-sled/261cf73669123ea382680be118c8fe83 to your computer and use it in GitHub Desktop.
Vagrantfile for Firestorm, assumes you have an hg clone of FS tip. Place this vagrantfile in the cloned repo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Based on instructions in https://wiki.phoenixviewer.com/fs_compiling_firestorm_alexivy_ubuntu_16 | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
# Can be removed if you don't use ccache | |
config.vm.synced_folder "~/.ccache", "/home/vagrant/.ccache" | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine | |
vb.gui = false | |
# Customize the amount of memory on the VM: | |
vb.memory = "4096" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
add-apt-repository ppa:ubuntu-toolchain-r/test -y | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install --install-recommends build-essential bison bzip2 cmake curl doxygen flex g++-6 gdb m4 mercurial moreutils pkg-config | |
apt-get -y install python python-dev python-pip | |
update-alternatives --remove-all gcc | |
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 6 --slave /usr/bin/g++ g++ /usr/bin/g++-6 --slave /usr/bin/gcov gcov /usr/bin/gcov-6 | |
update-alternatives --config gcc | |
apt-get -y install --install-recommends libalut-dev libapr1-dev libaprutil1-dev libatk1.0-dev libboost-all-dev libcairo2-dev libcollada-dom2.4-dp-dev libcurl4-openssl-dev libdbus-glib-1-dev libfreetype6-dev libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev libjpeg-dev libjsoncpp-dev libnghttp2-dev libogg-dev libopenal-dev libpangox-1.0-dev libpng-dev libsdl1.2-dev libssl-dev libstdc++6 liburiparser-dev libvorbis-dev libx11-dev libxinerama-dev libxml2-dev libxmlrpc-epi-dev libxrender-dev zlib1g-dev | |
pip install --upgrade pip | |
# Get rid of apt's version of pip | |
apt-get -y remove python-pip | |
# May have to do this manually anyway | |
pip install autobuild | |
mkdir ~vagrant/src | |
hg clone https://bitbucket.org/Ansariel/fs-build-variables ~vagrant/src/fs-build-variables | |
echo 'source ~/src/fs-build-variables/convenience Release' >> ~vagrant/.bashrc | |
echo 'export AUTOBUILD_VARIABLES_FILE=$HOME/src/fs-build-variables/variables' >> ~vagrant/.bashrc | |
# https://wiki.phoenixviewer.com/fs_compiling_firestorm_alexivy_ubuntu_16#configuring_the_viewer | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment