Those of us with hardware opengl acceleration can get some very nice visual and performance improvements under MAME by using the xgl driver. Unfortunately, the ebuild doesn't look for `use opengl`. The additional problem being that if you have use opengl but don't have hardware acceleration you pretty much can't use MAME, in which case you probably want SDL for decent performance. To make things even more complex, xmame can only be built with one renderer. Maybe a multipass build that creates different binaries (xmame.SDL, xmame.x11, xmame.SDL), depending on your USE variables? ccache would actually make this not too painful and would be very useful. Anyways, here's text to add to the src_unpack function in the ebuild to enable opengl support, though it will of course break other things (like sdl). Hmmm, do we maybe need a new use flag? opengl for OpenGL support, and maybe hwopengl for hardware accelerated OpenGL? That way programs that have opengl support but work fine with a software renderer anybody can build, but if it requires hardware acceleration you must have explicitly set use hwopengl? if [ "`use opengl`"; then sed -e "s:DISPLAY_METHOD = x11:DISPLAY_METHOD = xgl:g" \ makefile.unix > makefile.unix.tmp mv makefile.unix.tmp makefile.unix fi
David: Would this fix apply to the PPC version of this package alse?
committed