diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-04-28 02:38:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-04-28 02:38:47 +0000 |
commit | a6a1a117cc77aaf2c190c66c0956eefcce98effe (patch) | |
tree | 6faa9a4c4f9eb1bf7013a998e83eff4bf475a30b /app-emulation | |
parent | ~ppc added (diff) | |
download | historical-a6a1a117cc77aaf2c190c66c0956eefcce98effe.tar.gz historical-a6a1a117cc77aaf2c190c66c0956eefcce98effe.tar.bz2 historical-a6a1a117cc77aaf2c190c66c0956eefcce98effe.zip |
version bump
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/xmame/ChangeLog | 18 | ||||
-rw-r--r-- | app-emulation/xmame/files/digest-xmame-0.67.2 | 1 | ||||
-rw-r--r-- | app-emulation/xmame/xmame-0.67.2.ebuild | 250 |
3 files changed, 257 insertions, 12 deletions
diff --git a/app-emulation/xmame/ChangeLog b/app-emulation/xmame/ChangeLog index db96fa54b67d..fe7f79eccd92 100644 --- a/app-emulation/xmame/ChangeLog +++ b/app-emulation/xmame/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/xmame # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xmame/ChangeLog,v 1.15 2003/02/12 04:04:25 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xmame/ChangeLog,v 1.16 2003/04/28 02:38:47 vapier Exp $ + +*xmame-0.67.2 (28 Apr 2003) + + 28 Apr 2003; Mike Frysinger <vapier@gentoo.org> : + Version bump. *xmame-0.62.2 (13 Jan 2003) @@ -15,25 +20,21 @@ *xmame-0.61.1_pre1 (31 Oct 2002) 31 Oct 2002; Ryan Phillips <rphillips@gentoo.org> xmame-0.61.1_pre1.ebuild : - Version bump.. Submitted by Caleb Shay. Fixes #8904 *xmame-0.60.1-r4 (17 Aug 2002) 14 Aug 2002; Ryan Phillips <rphillips@gentoo.org> xmame-0.60.1-r4.ebuild : - thanks to Caleb Shay. Fixes #8904 *xmame-0.60.1-r3 (7 Aug 2002) 7 Aug 2002; Ryan Phillips <rphillips@gentoo.org> xmame-0.60.1-r3.ebuild : - Included sed for use var 'opengl' *xmame-0.60.1-r2 (13 June 2002) 23 Jul 2002; Ryan Phillips <rphillips@gentoo.org> : - on x86 platforms -O3 doesn't compile. I included a sed statement to replace -O3 with -O2. @@ -41,45 +42,38 @@ Added KEYWORDS. 13 June 2002; David Chamberlain <daybird@gentoo.org> xmame-0.60.1-r2.ebuild - This ebuild provides ppc fixes to makefile *xmame-0.60.1-r1 (7 Jun 2002) 7 Jun 2002; J. Perrot <blackmore@gentoo.org> xmame-0.60.1-r1.ebuild : - Check the presence of "dga" in the USE variable and do the appropriate sed substitution *xmame-0.60.1 (27 May 2002) 27 May 2002; Ryan Phillips <rphillips@gentoo.org> xmame-0.60.1.ebuild : - Updated version and fixes to the xmame symlink. #2958 *xmame-0.59.1 (28 Mar 2002) 28 Mar 2002; Geert Bevin <gbevin@gentoo.org> xmame-0.59.1.ebuild files/digest-xmame-0.59.1 : - Version upgrade *xmame-0.56.1 (3 Feb 2002) 3 Feb 2002; T.Neidt <tneidt@gentoo.org> ChangeLog : - Moved to app-emulation/xmame with the other emulators (Bug 421) *xmame-0.55.2 (3 Feb 2002) 3 Feb 2002; T.Neidt <tneidt@gentoo.org> ChangeLog : - Moved to app-emulation/xmame with the other emulators (Bug 421) *xmame-0.56.1 (1 Feb 2002) 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : - Added initial ChangeLog which should be updated whenever the package is updated in any way. This changelog is targetted to users. This means that the comments should well explained and written in clean English. The details about diff --git a/app-emulation/xmame/files/digest-xmame-0.67.2 b/app-emulation/xmame/files/digest-xmame-0.67.2 new file mode 100644 index 000000000000..fcd8d3756357 --- /dev/null +++ b/app-emulation/xmame/files/digest-xmame-0.67.2 @@ -0,0 +1 @@ +MD5 b3a89afe2dcd53bb3f9f1f5d47f01dc3 xmame-0.67.2.tar.bz2 8453281 diff --git a/app-emulation/xmame/xmame-0.67.2.ebuild b/app-emulation/xmame/xmame-0.67.2.ebuild new file mode 100644 index 000000000000..a6c2802e417b --- /dev/null +++ b/app-emulation/xmame/xmame-0.67.2.ebuild @@ -0,0 +1,250 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# Based on the 0.59.1 ebuild by Ben Lutgens <blutgens@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xmame/xmame-0.67.2.ebuild,v 1.1 2003/04/28 02:38:47 vapier Exp $ + +DESCRIPTION="Multiple Arcade Machine Emulator for X11" +SRC_URI="http://x.mame.net/download/${P}.tar.bz2" +HOMEPAGE="http://x.mame.net/" + +SLOT="0" +LICENSE="xmame" +KEYWORDS="~x86 ~ppc" +IUSE="sdl dga xv alsa esd opengl X 3dfx svga ggi arts" + +DEPEND="sdl? ( >=media-libs/libsdl-1.2.0 ) + sys-libs/zlib + alsa? ( media-libs/alsa-lib ) + xv? ( >=x11-base/xfree-4.1.0 ) + dga? ( >=x11-base/xfree-4.1.0 ) + esd? ( >=media-sound/esound-0.2.29 ) + svga? ( media-libs/svgalib ) + ggi? ( media-libs/libggi ) + arts? ( kde-base/arts ) + x86? ( dev-lang/nasm )" + +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 [ ${ARCH} = "x86" ] + then + # Enable joystick support + sed -e "s/\# JOY_I386/JOY_I386/g" makefile.unix > makefile.unix.tmp + mv makefile.unix.tmp makefile.unix + # Enable M68K asm core + sed -e "s/\# X86_ASM_68000 = 1/X86_ASM_68000 = 1/g" makefile.unix > makefile.unix.tmp + mv makefile.unix.tmp makefile.unix + fi + + if [ ${ARCH} = "ppc" ] + then + sed -e "s:MY_CPU = i386:\#MY_CPU = i386:g" -e \ + "s:\# MY_CPU = risc$:MY_CPU = risc:" 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.unix.tmp + mv makefile.unix.tmp makefile.unix + fi + + if [ "`use alsa`" ]; then + sed -e "s/\# SOUND_ALSA/SOUND_ALSA/g" makefile.unix > makefile.unix.tmp + mv makefile.unix.tmp makefile.unix + fi + + if [ "`use arts`" ]; then + sed -e "s/\# SOUND_ARTS/SOUND_ARTS/g" makefile.unix > makefile.unix.tmp + mv makefile.unix.tmp makefile.unix + fi + + if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then + cp makefile.unix makefile.x11; + fi + + if [ "`use svga`" ]; then + cp makefile.unix makefile.svga + sed -e "s/DISPLAY_METHOD = x11/DISPLAY_METHOD = svgalib/g" \ + makefile.svga > makefile.svga.tmp + mv makefile.svga.tmp makefile.svga + fi + + if [ "`use sdl`" ]; then + cp makefile.unix makefile.SDL + sed -e "s/DISPLAY_METHOD = x11/DISPLAY_METHOD = SDL/g" \ + makefile.SDL > makefile.SDL.tmp + mv makefile.SDL.tmp makefile.SDL + fi + + if [ "`use ggi`" ]; then + cp makefile.unix makefile.ggi + sed -e "s/DISPLAY_METHOD = x11/DISPLAY_METHOD = ggi/g" \ + makefile.ggi > makefile.ggi.tmp + mv makefile.ggi.tmp makefile.ggi + fi + + if [ "`use opengl`" ]; then + cp makefile.unix makefile.xgl + sed -e "s/DISPLAY_METHOD = x11/DISPLAY_METHOD = xgl/g" \ + makefile.xgl > makefile.xgl.tmp + mv makefile.xgl.tmp makefile.xgl + sed -e "s/<GL\/glx.h>/\"\/usr\/lib\/opengl\/xfree\/include\/glx.h\"/g" \ + src/unix/video-drivers/gltool.h > src/unix/video-drivers/gltool.h.tmp + mv src/unix/video-drivers/gltool.h.tmp src/unix/video-drivers/gltool.h + fi + + if [ "`use dga`" ]; then + sed -e "s/\# X11_DGA = 1/X11_DGA = 1/g" \ + makefile.x11 > makefile.x11.tmp + mv makefile.x11.tmp makefile.x11 + if [ "`use 3dfx`" ]; then + sed -e "s/\# TDFX_DGA_WORKAROUND/TDFX_DGA_WORKAROUND/g" \ + makefile.x11 > makefile.x11.tmp + mv makefile.x11.tmp makefile.x11 + fi + if [ "`use sdl`" ]; then + sed -e "s/\# X11_DGA = 1/X11_DGA = 1/g" \ + makefile.SDL > makefile.SDL.tmp + mv makefile.SDL.tmp makefile.SDL + if [ "`use 3dfx`" ]; then + sed -e "s/\# TDFX_DGA_WORKAROUND/TDFX_DGA_WORKAROUND/g" \ + makefile.SDL > makefile.SDL.tmp + mv makefile.SDL.tmp makefile.SDL + fi + fi + fi + + if [ "`use xv`" ]; then + sed -e "s/\# X11_XV = 1/X11_XV = 1/g" makefile.x11 > makefile.x11.tmp + mv makefile.x11.tmp makefile.x11 + fi +} + +src_compile() { + local MYFLAGS + local GCCMAJ + MYFLAGS="" + # 08 Oct 2002 Caleb Shay + # Parallel makes breaks the build + MAKEOPTS="" + + GCCMAJ=`gcc -v 2>&1 | grep version | awk '{print $3}' | cut -f1 -d\.` + + if [ ${ARCH} = "ppc" ] ; then + # add Makefile suggested flags for ppc + MYFLAGS="${CFLAGS} -funroll-loops \ + -fstrength-reduce -fomit-frame-pointer -ffast-math -fsigned-char" + fi + + if [ ${ARCH} = "x86" ] ; then + # add Makefile suggested flags for x86 + MYFLAGS="${CFLAGS} -O3 -Wall -Wno-unused -funroll-loops \ + -fstrength-reduce -fomit-frame-pointer -ffast-math" + if [ ${GCCMAJ} = "2" ]; then + MYFLAGS="${MYFLAGS} -malign-functions=2 -malign-jumps=2 -malign-loops=2" + else + MYFLAGS="${MYFLAGS} -falign-functions=2 -falign-jumps=2 -falign-loops=2" + fi + fi + + if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then + cp makefile.x11 Makefile + emake CFLAGS="${MYFLAGS}" || die + fi + + if [ "`use sdl`" ]; then + cp makefile.SDL Makefile + emake CFLAGS="${MYFLAGS}" || die + fi + + if [ "`use svga`" ]; then + cp makefile.svga Makefile + emake CFLAGS="${MYFLAGS}" || die + fi + + if [ "`use ggi`" ]; then + cp makefile.ggi Makefile + emake CFLAGS="${MYFLAGS}" || die + fi + + if [ "`use opengl`" ]; then + cp makefile.xgl Makefile + emake CFLAGS="${MYFLAGS}" || die + fi +} + +src_install() { + if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then + cp makefile.x11 Makefile + make \ + PREFIX=${D}/usr \ + MANDIR=${D}/usr/share/man/man6 \ + install + fi + if [ "`use sdl`" ]; then + cp makefile.SDL Makefile + make \ + PREFIX=${D}/usr \ + MANDIR=${D}/usr/share/man/man6 \ + install + fi + if [ "`use svga`" ]; then + cp makefile.svga Makefile + make \ + PREFIX=${D}/usr \ + MANDIR=${D}/usr/share/man/man6 \ + install + fi + if [ "`use ggi`" ]; then + cp makefile.ggi Makefile + make \ + PREFIX=${D}/usr \ + MANDIR=${D}/usr/share/man/man6 \ + install + fi + + if [ "`use opengl`" ]; then + cp makefile.xgl Makefile + make \ + PREFIX=${D}/usr \ + MANDIR=${D}/usr/share/man/man6 \ + install + fi + + dodoc doc/{changes.*,dga2.txt,gamelist.mame,readme.mame,xmamerc.dist} + dodoc doc/{xmame-doc.ps,xmame-doc.txt} + + dohtml -r doc + + if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then + dosym xmame.x11 /usr/bin/xmame + fi +} + +pkg_postinst() { + einfo "Your available MAME binaries are:" + if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then + einfo " xmame.x11"; + fi + if [ "`use sdl`" ]; then + einfo " xmame.SDL" + fi + if [ "`use svga`" ]; then + einfo " xmame.svgalib" + fi + if [ "`use ggi`" ]; then + einfo " xmame.ggi" + fi + if [ "`use opengl`" ]; then + einfo " xmame.xgl" + fi + if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then + einfo "xmame is a symbolic link to xmame.x11" + fi +} |