# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Ben Lutgens # $Header: /var/cvsroot/gentoo-x86/app-emulation/xmame/xmame-0.56.1.ebuild,v 1.1 2002/02/04 06:21:53 tod Exp $ S=${WORKDIR}/${P} DESCRIPTION="Multiple Arcade Machine Emulator for X11" SRC_URI="http://x.mame.net/download/${P}.tar.bz2" HOMEPAGE="http://x.mame.net" DEPEND="virtual/x11 sdl? ( >=media-libs/libsdl-1.2.0 ) >=sys-libs/zlib-1.1.3-r2" src_unpack() { unpack ${A} cd ${S} sed -e "s:CFLAGS = -O -Wall:\#CFLAGS=:g" -e \ "s:PREFIX = /usr/local:PREFIX = /usr:g" -e \ "s:MANDIR = \$\(PREFIX\)/man/man6:MANDIR = \$\(PREFIX\)/share/man/man6:g" \ makefile.unix > makefile.unix.tmp mv makefile.unix.tmp makefile.unix if [ "`use sdl`" ]; then sed -e "s:DISPLAY_METHOD = x11:DISPLAY_METHOD = SDL:g" \ makefile.unix > makefile.unix.tmp mv makefile.unix.tmp makefile.unix fi if [ "`use esd`" ]; then sed -e "s/\# SOUND_ESOUND/SOUND_ESOUND/g" makefile.unix > Makefile else mv makefile.unix Makefile fi } src_compile() { emake CFLAGS="${CFLAGS}" || die } src_install () { make PREFIX=${D}/usr install # dodoc gzips dodoc doc/{changes.*,dga2.txt,gamelist.mame,readme.mame,xmamerc.dist} dodoc doc/{xmame-doc.ps,xmame-doc.txt} # Don't really want html files gzipped insinto /usr/share/doc/${P}/html doins doc/*.html dosym xmame.SDL /usr/bin/xmame }