mirror of
https://git.freebsd.org/ports.git
synced 2025-07-12 14:59:13 -04:00
it's development: 1) Run on Linux/Unix, Mac OS X, and other SDL supported operating systems with as few changes as possible to the base Win32 code. This means we can track changes faster than larger more conventional ports such as MacMAME, and we also maintain what I call "Firefox compatibilty" where learning a major app only needs to be done once per application, and it then applies across many operating systems. If you can use the command-line Win32 MAME, you already know how to use SDLMAME on any platform you may encounter it on. 2) MAME developers are important. By keeping quickly up to date, we make it easy for people on non-Windows platforms to make and submit changes to the core MAME code, and we offer native implementations of MAME's multi-window GUI debugger on both Linux/Unix and Mac OS X. WWW: http://rbelmont.mameworld.info/?page_id=163
19 lines
548 B
Bash
19 lines
548 B
Bash
#!/bin/sh
|
|
#
|
|
# The executable needs to be run from its data directory, and needs to store
|
|
# configuration in it. We therefore mirror the data directory hierarchy in
|
|
# ~/.cube, and create symlinks to the data files.
|
|
#
|
|
|
|
if [ -d ~/.sdlmame ]
|
|
then
|
|
echo "Using existing ~/.sdlmame directory."
|
|
else
|
|
echo "Creating ~/.sdlmame directory."
|
|
cd %%DATADIR%% || exit 1
|
|
find * -type d -exec mkdir -p ~/.sdlmame/{} \;
|
|
find * -type f -exec ln -s %%DATADIR%%/{} ~/.sdlmame/{} \; 2>/dev/null
|
|
fi
|
|
|
|
cd ~/.sdlmame || exit 1
|
|
exec %%PREFIX%%/libexec/sdlmame/mame "$@"
|