Hi,
Just installed xmame on a P4 sff with SUSE 9.1. The following is a quick note on what to do:
In Yast -> hardware -> Joystick find a joystick driver which works with your device (try any if it's not specifically listed).
You'll need the XFree86-devel and SDL-devel packages (Yast) and the source for xmame (
http://x.mame.net/download/xmame-0.86.tar.bz2 ).
Uncompress the xmame directory in a temporary area (/tmp/).
(Commandline: cp xmame-0.86.tar.bz2 /tmp; tar --bunzip2 -xvf /tmp/xmame-0.86.tar.bz2)
Edit the Makefile (/tmp/makefile.unix). SUSE specific: Uncomment these two lines (remove the hash '#'):
Code:
LIBS = -L/usr/X11R6/lib -L/usr/local/lib
INCLUDES = -I/usr/X11R6/include -I/usr/local/include
And for joystick support

uncomment any of the joystick lines you think you'll use (best to do at least these 3, others may not compile):
Code:
JOY_I386 = 1
JOY_PAD = 1
JOY_SDL = 1
Nb: I couldn't get the experimental network option (XMAME_NET = 1) to compile. It seems it didn't work in the 0.85 release, so i left it commented.
Open a shell terminal and type 'cd /tmp/xmame-0.86/; make'. Check output for errors...
Nb: If you want rerun make with different options in Makefile, you must run 'make clean' before rerunning 'make'
If there's no errors, type 'su' and enter your root password, then type 'make install'
Last line should say:
xmame for linux-i386 installation completed
Exit this root shell with - Control D - keys or type 'exit'
Now type 'mkdir ~/.xmame; cp /tmp/xmame-0.86/src/unix/doc/xmamerc.dist ~/.xmame/xmamerc.dist'
Read the docs on how to config your 'xmamerc.dist' file, for path to ROMs etc. You can test most options on the commandline, different joysticks eg. 'xmame.x11 <gamename> -scale 2 -jt 7'. More info type 'man xmame'
There's loads of GUI front-ends available eg. GXMAME.
Providing no error messages, the binary is '/usr/local/bin/xmame.x11', and your ready to go.
Nb: You can use a P2P client such as gtk-gnutella (Yast) to get loads of ROMS instead of the web

search with 'mame rom'