Last active
July 10, 2016 02:45
-
-
Save mnaberez/5692068 to your computer and use it in GitHub Desktop.
Build MESS with SoftBox support
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
#!/bin/bash | |
# | |
# Build the MESS emulator from source and then | |
# start the SoftBox emulation. | |
# | |
# Tested on Ubuntu Desktop 16.04 (amd64) | |
set -x | |
set -e | |
set -o errexit | |
# Install MAME dependencies | |
sudo apt-get update | |
sudo apt-get install -y build-essential git wget | |
sudo apt-get install -y libgtk2.0-dev libgnome2-dev | |
sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev | |
sudo apt-get install -y qt5-default | |
# Checkout MAME with SoftBox support from Git. | |
git clone https://github.com/mamedev/mame.git | |
cd mame | |
# Get ROMs, software, and patches | |
wget -U mame-softbox-installer \ | |
http://mikenaberezny.com/wp-content/uploads/2011/05/mame-softbox.zip | |
unzip mame-softbox.zip | |
mv mame-softbox/* . | |
rmdir mame-softbox | |
rm mame-softbox.zip | |
# Apply patches | |
find patches -name '*.diff' -exec sh -c 'patch -p1 < {}' \; | |
# Build MESS | |
QT_SELECT=5 make SUBTARGET=mess | |
# Find MESS executable | |
MESS="./mess" | |
if [ ! -f $MESS ]; then | |
MESS="./mess64" | |
fi | |
# Start 8032 with HardBox peripheral | |
# $MESS pet8032 -window -nomaximize -skip_gameinfo -natural -ieee9 hardbox \ | |
# -flop1 ./software/hardbox/hardbox-utils.d80 \ | |
# -hard1 ./software/hardbox/corvus20mb.chd | |
# Start SoftBox as a standalone computer | |
# $MESS softbox -window -nomaximize -skip_gameinfo -natural \ | |
# -flop1 ./software/softbox/softbox-distrib.d80 \ | |
# -hard1 ./software/softbox/corvus10mb.chd | |
# Start 8032 with SoftBox peripheral | |
$MESS pet8032 -window -nomaximize -skip_gameinfo -natural -ieee11 softbox \ | |
-flop1 ./software/softbox/softbox-distrib.d80 \ | |
-hard1 ./software/softbox/corvus10mb.chd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment