Skip to content

Instantly share code, notes, and snippets.

@DavidLudwig
Created September 12, 2017 18:30
Show Gist options
  • Save DavidLudwig/e52a34e158f70fa64bc63fea1e706dcc to your computer and use it in GitHub Desktop.
Save DavidLudwig/e52a34e158f70fa64bc63fea1e706dcc to your computer and use it in GitHub Desktop.
BasiliskII, make Linux build via Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "fedora/26-cloud-base"
config.vm.box_version = "20170705"
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
end
config.vm.provision "shell", privileged: false, inline: <<-SHELL
# Install development packages
sudo yum install -y \
git \
nano \
SDL2-devel \
autoconf \
automake \
gcc \
gcc-c++ \
gtk+-devel
# Install a basic, desktop environment
sudo dnf install -y @base-x gnome-shell
sudo dnf install -y gnome-terminal dejavu-sans-mono-fonts bash-completion
# Install Prefs file
if [ -f /vagrant/.basilisk_ii_prefs ]; then
cp -v /vagrant/.basilisk_ii_prefs /home/vagrant/.basilisk_ii_prefs
elif [ -f /vagrant/basilisk_ii_prefs ]; then
cp -v /vagrant/basilisk_ii_prefs /home/vagrant/.basilisk_ii_prefs
else
echo "A BasiliskII prefs file was not found (to be installed in the VM)."
fi
# Download latest code
git clone https://github.com/davidludwig/macemu
cd macemu
# OPTIONAL: use a specific git revision
# git checkout 449936e461ac15325453cf09c892d41c8e0fec24
# Configure and build
cd BasiliskII/src/Unix
NO_CONFIGURE=1 ./autogen.sh
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon=NO
# ./configure --enable-sdl-video --enable-sdl-audio
make
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment