Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5025 - No way to choose xgl as renderer in app-emulation/xmame
Summary: No way to choose xgl as renderer in app-emulation/xmame
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-15 08:36 UTC by Caleb Shay
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Shay 2002-07-15 08:36:13 UTC
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
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-07-19 17:06:20 UTC
David:

   Would this fix apply to the PPC version of this package alse?
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-08-07 02:51:25 UTC
committed