summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-09 16:28:07 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-09 16:28:07 +0000
commitae044aeba549da343d278a26bb72bac844e5a5e4 (patch)
treeb16ea879113ef2bd09bb78bb00e8338b088d3afb /games-emulation/xmame
parentNew package - rename. (diff)
downloadgentoo-2-ae044aeba549da343d278a26bb72bac844e5a5e4.tar.gz
gentoo-2-ae044aeba549da343d278a26bb72bac844e5a5e4.tar.bz2
gentoo-2-ae044aeba549da343d278a26bb72bac844e5a5e4.zip
welcome to games-emulation
Diffstat (limited to 'games-emulation/xmame')
-rw-r--r--games-emulation/xmame/ChangeLog110
-rw-r--r--games-emulation/xmame/Manifest4
-rw-r--r--games-emulation/xmame/files/0.72.1-glx-fix.patch19
-rw-r--r--games-emulation/xmame/files/digest-xmame-0.72.11
-rw-r--r--games-emulation/xmame/xmame-0.72.1.ebuild128
5 files changed, 262 insertions, 0 deletions
diff --git a/games-emulation/xmame/ChangeLog b/games-emulation/xmame/ChangeLog
new file mode 100644
index 000000000000..ca47166adf51
--- /dev/null
+++ b/games-emulation/xmame/ChangeLog
@@ -0,0 +1,110 @@
+# ChangeLog for app-emulation/xmame
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/xmame/ChangeLog,v 1.1 2003/09/09 16:26:50 vapier Exp $
+
+*xmame-0.72.1 (17 Aug 2003)
+
+ 17 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump #26763 + remove mips patch.
+
+*xmame-0.71.1 (16 Aug 2003)
+
+ 16 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump #24986 + mips patch.
+
+*xmame-0.70.1 (11 Jul 2003)
+
+ 15 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Add glx patch #24383.
+
+ 11 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump + major rehaul of code. Thanks to Caleb Shay <caleb@webninja.com> for
+ his ideas/submissions.
+
+*xmame-0.69.1 (05 Jun 2003)
+
+ 05 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Version bump.
+
+*xmame-0.67.2 (28 Apr 2003)
+
+ 28 Apr 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump.
+
+*xmame-0.62.2-r1 (28 Apr 2003)
+
+ 29 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Added missing changelog entry.
+
+*xmame-0.62.2 (13 Jan 2003)
+
+ 13 Jan 2003; Ryan Phillips <rphillips@gentoo.org> xmame-0.62.2.ebuild :
+ Submitted by Caleb Shay
+
+*xmame-0.62.1_rc2 (27 Dec 2002)
+
+ 27 Dec 2002; Ryan Phillips <rphillips@gentoo.org> xmame-0.62.1_rc2.ebuild :
+ version bump. Submitted by Kfir Ozer. Fixes #11927
+
+*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.
+
+ 15 Jul 2002; Owen Stampflee <owen@gentoo.org> :
+ 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
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/games-emulation/xmame/Manifest b/games-emulation/xmame/Manifest
new file mode 100644
index 000000000000..705b24372974
--- /dev/null
+++ b/games-emulation/xmame/Manifest
@@ -0,0 +1,4 @@
+MD5 13dc5b32bbff98dec74c41dd0c9b33a1 files/0.72.1-glx-fix.patch 597
+MD5 9e2434931e4fa0ed0cce862961302c8c files/digest-xmame-0.72.1 67
+MD5 c5bc8c71636e39b2fdb20392b95bf13f ChangeLog 3432
+MD5 15280fd1819b823b4ea530b5488c2889 xmame-0.72.1.ebuild 4251
diff --git a/games-emulation/xmame/files/0.72.1-glx-fix.patch b/games-emulation/xmame/files/0.72.1-glx-fix.patch
new file mode 100644
index 000000000000..20d29a9d0573
--- /dev/null
+++ b/games-emulation/xmame/files/0.72.1-glx-fix.patch
@@ -0,0 +1,19 @@
+diff -urN xmame-0.70.1-orig/src/unix/osd_cpu.h xmame-0.70.1/src/unix/osd_cpu.h
+--- xmame-0.70.1-orig/src/unix/osd_cpu.h 2003-06-12 05:37:50.000000000 +0200
++++ xmame-0.70.1/src/unix/osd_cpu.h 2003-07-15 15:09:03.000000000 +0200
+@@ -39,11 +39,15 @@
+ #endif
+
+ /* grrr work around some stupid header conflicts */
++#ifndef xgl
+ #if !defined __XF86_DGA_C && !defined __XOPENGL_C_ && !defined LONG64
+ typedef signed char INT8;
+ typedef signed short INT16;
+ typedef signed int INT32;
+ #endif
++#else
++#include <X11/Xmd.h>
++#endif
+
+ #ifndef LONG64
+ typedef signed long long INT64;
diff --git a/games-emulation/xmame/files/digest-xmame-0.72.1 b/games-emulation/xmame/files/digest-xmame-0.72.1
new file mode 100644
index 000000000000..d0317da90c07
--- /dev/null
+++ b/games-emulation/xmame/files/digest-xmame-0.72.1
@@ -0,0 +1 @@
+MD5 0ca7ca8111c24951232c453af8db3f86 xmame-0.72.1.tar.bz2 10210781
diff --git a/games-emulation/xmame/xmame-0.72.1.ebuild b/games-emulation/xmame/xmame-0.72.1.ebuild
new file mode 100644
index 000000000000..3f9c7aabfba0
--- /dev/null
+++ b/games-emulation/xmame/xmame-0.72.1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/xmame/xmame-0.72.1.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $
+
+inherit games flag-o-matic gcc eutils
+
+TARGET=${PN}
+
+DESCRIPTION="Multiple Arcade Machine Emulator for X11"
+SRC_URI="http://x.mame.net/download/xmame-${PV}.tar.bz2"
+HOMEPAGE="http://x.mame.net/"
+
+LICENSE="xmame"
+SLOT="0"
+KEYWORDS="x86 ~ppc ~sparc ~mips ~alpha"
+IUSE="sdl dga xv alsa esd opengl X 3dfx svga ggi arts joystick"
+
+DEPEND="sys-libs/zlib
+ sdl? ( >=media-libs/libsdl-1.2.0 )
+ 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 )"
+
+S=${WORKDIR}/xmame-${PV}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+
+ epatch ${FILESDIR}/${PV}-glx-fix.patch
+
+ [ ${ARCH} == "x86" ] && sed -i -e '/X86_ASM_68000 =/s:#::' -e '/X86_MIPS3_DRC =/s:#::' Makefile
+ [ ${ARCH} == "ppc" ] && sed -i '/^MY_CPU/s:i386:risc:' Makefile
+ [ ${ARCH} == "sparc" ] && sed -i '/^MY_CPU/s:i386:risc:' Makefile
+ [ ${ARCH} == "alpha" ] && sed -i '/^MY_CPU/s:i386:alpha:' Makefile
+ [ ${ARCH} == "mips" ] && sed -i '/^MY_CPU/s:i386:mips:' Makefile
+
+ [ ${ARCH} == "x86" ] && [ `use joystick` ] && sed -i '/JOY_I386.*=/s:#::' Makefile
+
+ [ `use esd` ] && sed -i '/SOUND_ESOUND/s:#::' Makefile
+ [ `use alsa` ] && sed -i '/SOUND_ALSA/s:#::' Makefile
+ [ `use arts` ] && sed -i '/SOUND_ARTS/s:#::' Makefile
+ [ `use sdl` ] && sed -i '/SOUND_SDL/s:#::' Makefile
+
+ if [ `use dga` ] ; then
+ sed -i '/X11_DGA/s:#::' Makefile
+ [ `use 3dfx` ] && sed -i '/TDFX_DGA_WORKAROUND/s:#::' Makefile
+ fi
+
+ [ `use xv` ] && sed -i '/X11_XV/s:#::' Makefile
+
+ sed -i \
+ -e "/^PREFIX/s:=.*:=/usr:" \
+ -e "/^BINDIR/s:=.*:=${GAMES_BINDIR}:" \
+ -e "/^XMAMEROOT/s:=.*:=${GAMES_DATADIR}/${TARGET}:" \
+ -e "/^TARGET/s:mame:${TARGET:1}:" \
+ Makefile
+
+ case ${ARCH} in
+ x86) append-flags -Wno-unused -fomit-frame-pointer -fstrict-aliasing -fstrength-reduce -ffast-math
+ [ `gcc-major-version` -eq 3 ] \
+ && append-flags -falign-functions=2 -falign-jumps=2 -falign-loops=2 \
+ || append-flags -malign-functions=2 -malign-jumps=2 -malign-loops=2
+ ;;
+ ppc) append-flags -Wno-unused -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math -fsigned-char
+ ;;
+ esac
+ sed -i "s:^CFLAGS =:CFLAGS=${CFLAGS}:" Makefile
+}
+
+src_compile() {
+ [ ! -z "`use X``use dga``use xv`" ] && { make DISPLAY_METHOD=x11 || die; }
+ [ `use sdl` ] && { make DISPLAY_METHOD=SDL || die; }
+ [ `use svga` ] && { make DISPLAY_METHOD=svgalib || die; }
+ [ `use ggi` ] && { make DISPLAY_METHOD=ggi || die; }
+ [ `use opengl` ] && { make DISPLAY_METHOD=xgl || die; }
+}
+
+src_install() {
+ sed -i \
+ -e "s:Xmame:${TARGET}:g" \
+ -e "s:xmame:${TARGET}:g" \
+ doc/*.6
+ sed -i \
+ -e "s:^PREFIX.*:PREFIX=${D}/usr:" \
+ -e "s:^BINDIR.*:BINDIR=${D}/${GAMES_BINDIR}:" \
+ -e "s:^XMAMEROOT.*:XMAMEROOT=${D}/${GAMES_DATADIR}/${TARGET}:" \
+ Makefile
+
+ [ ! -z "`use X``use dga``use xv`" ] && { make DISPLAY_METHOD=x11 install || die; }
+ [ `use sdl` ] && { make DISPLAY_METHOD=SDL install || die; }
+ [ `use svga` ] && { make DISPLAY_METHOD=svgalib install || die; }
+ [ `use ggi` ] && { make DISPLAY_METHOD=ggi install || die; }
+ [ `use opengl` ] && { make DISPLAY_METHOD=xgl install || die; }
+
+ dodoc doc/{changes.*,*.txt,mame/*,${TARGET}rc.dist} README todo
+ dohtml -r doc/*
+
+ if [ `use opengl` ] ; then
+ dosym ${TARGET}.xgl ${GAMES_BINDIR}/${TARGET}
+ elif [ ! -z "`use X``use dga``use xv`" ] ; then
+ dosym ${TARGET}.x11 ${GAMES_BINDIR}/${TARGET}
+ elif [ `use sdl` ] ; then
+ dosym ${TARGET}.SDL ${GAMES_BINDIR}/${TARGET}
+ elif [ `use svga` ] ; then
+ dosym ${TARGET}.svgalib ${GAMES_BINDIR}/${TARGET}
+ elif [ `use ggi` ] ; then
+ dosym ${TARGET}.ggi ${GAMES_BINDIR}/${TARGET}
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ einfo "Your available MAME binaries are:"
+ [ ! -z "`use X``use dga``use xv`" ] && einfo " ${TARGET}.x11"
+ [ `use sdl` ] && einfo " ${TARGET}.SDL"
+ [ `use svga` ] && einfo " ${TARGET}.svgalib"
+ [ `use ggi` ] && einfo " ${TARGET}.ggi"
+ [ `use opengl` ] && einfo " ${TARGET}.xgl"
+}