Scaricate l'ebuild di xmame 0.86 da: http://bugs.gentoo.org/attachment.cgi?i ... ction=view
salvatelo come xmame-0.86-r1.ebuild e copiatelo in /usr/portage/games-emulation/xmame
Scaricate la patch di gxmame: http://bugs.gentoo.org/attachment.cgi?i ... ction=view,
salvatela come gxmame-xml.patch e mettetela in /usr/portage/games-emulation/gxmame/files
Salvate anche la prossima patch (che risolve il problema dei parametri obsoleti di xmame 0.86) come gxmame-xmame-086.patch e mettetela in /usr/portage/games-emulation/gxmame/files
Code: Select all
--- gxmame-0.34b/src/options.c 2003-12-18 20:03:13.000000000 +0100
+++ gxmame-0.34b-glpatch/src/options.c 2004-09-19 19:11:52.776640816 +0200
@@ -7398,11 +7398,11 @@
option_string = g_strdup_printf ("-%sfullscreen "
"-%sgldblbuffer "
"-gltexture_size %i "
- "-%sglforceblitmode "
- "-%sglext78 "
+ //"-%sglforceblitmode "
+ //"-%sglext78 "
"-%sglbilinear "
- "-%sgldrawbitmap "
- "-%sglcolormod "
+ //"-%sgldrawbitmap "
+ //"-%sglcolormod "
"-%sglalphablending "
"-%sglantialias "
"%s " /* gllibname */
Cambiate l'ebuild di gxmame ( gxmame-0.34b.ebuild ) che si trova in /usr/portage/games-emulation/gxmame:
con:
Code: Select all
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/gxmame/gxmame-0.34b.ebuild,v 1.7 2004/09/12 23:35:02 mr_bones_ Exp $
DESCRIPTION="frontend for XMame using the GTK library"
HOMEPAGE="http://gxmame.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
inherit flag-o-matic gcc eutils games
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~amd64"
IUSE="nls joystick"
DEPEND="virtual/x11
=x11-libs/gtk+-2*
=dev-libs/glib-2*
sys-libs/zlib"
RDEPEND="nls? ( sys-devel/gettext )
games-emulation/xmame"
src_unpack() {
unpack ${A}
cd ${S}
# Patch for http://bugs.gentoo.org/show_bug.cgi?id=57524
# http://bugs.gentoo.org/attachment.cgi?id=35714&action=view
EPATCH_SINGLE_MSG="Applying XML Patch" \
epatch ${FILESDIR}/gxmame-xml.patch
EPATCH_SINGLE_MSG="Applying xmame compatibility patch" \
epatch ${FILESDIR}/gxmame-xmame-086.patch
sed -i \
-e "s:-O2 -fomit-frame-pointer -ffast-math:${CFLAGS}:" \
-e "s:-O2:${CFLAGS}:" \
configure
}
src_compile() {
econf \
$(use_enable nls) \
$(use_enable joystick) \
|| die
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS BUGS ChangeLog NEWS README TODO
}




