A simple shell script to download source, patch and compile MAME (SDLMAME) on OSX / Linux using SDL Framework.
Current version if 0.147u4.
MAME stands for Multiple Arcade Machine Emulator. When used in conjunction with images of the original arcade game's ROM and disk data, MAME attempts to reproduce that game as faithfully as possible on a more modern general-purpose computer. MAME can currently emulate several thousand different classic arcade video games from the late 1970s through the modern era. (source http://mamedev.org/)
MAME can be downloaded from it official website http://mamedev.org/ but is only available as Windows executables.
If you want to run MAME under OSX / Linux, you have to :
- download it from the great http://sdlmame.lngn.net/ (OSX) or apt-get install sdlmame (Debian)
- compile it by yourself
This script should help you in this second case.
On OSX :
- Latest XCode from AppStore
- SDL.Framework from http://www.libsdl.org/download-1.2.php
On Linux :
- build-essential
- gconf2
- libgconf2-dev
- libgtk2.0-dev
- libsdl1.2-dev
- libsdl-ttf2.0-dev
Basic usage :
bash mame_installer.sh ~/Desktop/MAME
Optional param for faster build :
# for dual-core processors
bash mame_installer.sh ~/Desktop/MAME -j3
# for quad-core processors
bash mame_installer.sh ~/Desktop/MAME -j5
Now wait until the end of compilation (~35min@basic / ~25min@j3 on my MBA 1.8Ghz Intel Core i7) You should find a fresh mame64 binary ready to use.
- [PASSED] Mac OSX 10.8 / XCode 4.5.1
- [FAILED] Debian GNU/Linux Squeeze 2.6.32-5-amd64 (gcc4.4 issue ?)
- Add a check on install folder to ask for files overwrite
- Don't hardcode files URL to fetch which are version specific...
Do not hesitate to contribute !