Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478 - New ebuild: xmame
Summary: New ebuild: xmame
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-01 13:49 UTC by Per Wigren
Modified: 2002-10-13 03:36 UTC (History)
0 users

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 Per Wigren 2002-02-01 13:49:41 UTC
# xmame .ebuild file by Per Wigren <wigren@home.se>

S=${WORKDIR}/${P}
DESCRIPTION="Multiple Arcade Machine Emulator for *nix"
SRC_URI="http://x.mame.net/download/xmame-0.57.1.tar.bz2"
HOMEPAGE="http://x.mame.net"
DEPEND="sys-libs/zlib
        dev-lang/nasm"
RDEPEND="sys-libs/zlib"


src_compile() {

    CFLAGS="$CFLAGS -Wall -Wno-unused -funroll-loops -fstrength-reduce 
-fomit-frame-pointer -ffast-math -malign-functions=2 -malign-jumps=2 
-malign-loops=2"
    use alsa && ARGS="SOUND_ALSA=1 ${ARGS}"
    use esd  && ARGS="SOUND_ESOUND=1 ${ARGS}"
    use arts && ARGS="SOUND_ARTS_SMOTEK=1 ${ARGS}"

    make ${MAKEOPTS} -f makefile.unix CFLAGS="${CFLAGS}" PREFIX=/usr 
MANDIR=/usr/share/man JOY_I386=1 X11_DGA=1 X86_ASM_68000=1 ${SOUND}

}

src_install () {
    dobin xmame.x11
    dosym xmame ${D}/bin/xmame.x11
    cd doc
    doman xmame.6
    dohtml xmame-doc*.html xmame.css img
    dodoc xmame-doc.txt readme.mame changes.mame changes.opengl changes.unix 
dga2.txt multiplayer-readme.txt
    mkdir -p ${D}/usr/lib/xmame
}

---------------------------EOF----------------------------------

The following file should be installed as /usr/lib/xmamerc! Maybe you can
help me out with that!

---------- xmamerc ----------
### xmame running parameters ###

### Digital sound related ###
# dsp-plugin            <NULL> (not set)
timer                   0

### Sound mixer related ###
# sound-mixer-plugin    <NULL> (not set)

### Video Related ###
bpp                     0
arbheight               0
heightscale             1
widthscale              1
effect                  1
autodouble              1
dirty                   1
scanlines               0
artwork                 1
frameskipper            0
throttle                1
sleepidle               0
autoframeskip           1
maxautoframeskip        8
frameskip               0
brightness              100
gamma-correction        1.000000

### Vector Games Related ###
# vectorres             <NULL> (not set)
beam                    1.000000
flicker                 0.000000
antialias               1
translucency            1

### X11 Related ###
x11-mode                0

### X11-window Related ###
cursor                  1
mitshm                  1
xsync                   1
privatecmap             0
xil                     1
mtxil                   0
run-in-root-window      0
root_window_id          0
geometry                640x480

### Video Mode Selection Related ###
keepaspect              1
displayaspectratio      1.330000

### X11-input related ###
grabmouse               0
winkeys                 0

### Sound Related ###
sound                   1
samples                 1
samplefreq              22050
bufsize                 3.000000
volume                  -3
# audiodevice           <NULL> (not set)
# mixerdevice           <NULL> (not set)

### Input Related ###
joytype                 0
analogstick             0
joydevname              /dev/input/js0
mouse                   1
hotrod                  0
hotrodse                0
usbpspad                0
rapidfire               0

### Fileio Related ###
rompath                 /usr/lib/xmame/roms
samplepath              /usr/lib/xmame/samples
artworkpath             /usr/lib/xmame/artwork
spooldir                /usr/lib/xmame/hiscores
screenshotdir           .
cheatfile               /usr/lib/xmame/cheat.dat
hiscorefile             /usr/lib/xmame/hiscore.dat
historyfile             /usr/lib/xmame/history.dat
mameinfofile            /usr/lib/xmame/mameinfo.dat

### Mame Related ###
defaultgame             pacman
language                english
fuzzycmp                1
cheat                   0

### Frontend Related ###
clones                  1

### General Options ###
loadconfig              1
Comment 1 Per Wigren 2002-02-01 14:13:22 UTC
Please set:
defaultgame robby
in xmamerc instead of pacman, because robby is in xmame-extras (public domain 
rom)
*shrug*
Regards
Per Wigren

Comment 2 Per Wigren 2002-02-01 22:22:12 UTC
Jeez, I really shouldn't submit things when I'm as tired as I was...

1. s/ARGS/SOUND/g in src_compile()
2. MANDIR= statement not needed on the make-line
3. the xmamerc should of course be /usr/lib/xmame/xmamerc
4. remove all "<NULL> (not set)" lines in xmamerc..

Should I make a new ebuild and submit it?
Comment 3 Tod M. Neidt (RETIRED) gentoo-dev 2002-02-01 23:13:12 UTC
Hi!

There already exists an ebuild for xmame in app-games/xmame

However, the package version does need to be upgraded.  If you don't mind, why
don't you look at the latest existing ebuild (0.56.1) and adapt that to 0.57.1
Unfortunately, your submitted ebuild is not polished enough (IMHO) as is to
commit to portage. Please take this as *constructive* criticism.  Your
contributions are appreciated.

Note: There exists a bug ( http://bugs.gentoo.org/show_bug.cgi?id=421 ) for
moving xmame to app-emulation.  I will probably make that move this weekend
sometime.

If you have any questions, feel free to email me directly.

tod@gentoo.org
Comment 4 Per Wigren 2002-02-02 07:10:18 UTC
ok, my bad. I only looked in app-emulation... :P
I looked at the 0.56.1.ebuild and found a bug:
It does a "dosym xmame.SDL /usr/bin/xmame" at the end, but if I don't have 
"USE sdl" defined, it will be called "xmame.x11" ...
It also should be "chown root:games" + "chmod 4710" to make a "secure suid 
root" so we can use DGA..
You may also consider to include a xmamerc so it finds the samples, artwork 
etc in xmame-extras which I still consider good.