Here is an update to sdlmame 0.128.
Some testing would still be appreciated :)

Pierre

On Thu, Sep 04, 2008 at 04:46:05PM +0200, Pierre Riteau wrote:
> On Mon, Aug 25, 2008 at 02:42:11PM +0200, Pierre Riteau wrote:
> > Hi,
> > emulators/xmame has not been active upstream for 2 years.
> > It has been more or less officially replaced by sdlmame.
> > 
> > Attached is a port of sdlmame 0.127 (I also have a port of sdlmess
> > almost ready).
> > It needs gcc 4.2 to compile.
> > It was only tested on amd64 and i386, hence the ONLY_FOR_ARCHS.
> > If someone wants to give it a spin on e.g. powerpc, these two steps are
> > needed:
> > 1) uncomment BIG_ENDIAN = 1 in sdlmame's makefile
> > 2) add powerpc to MODGCC4_ARCHES in the port's Makefile
> > I really don't know if it will compile ok even after these 2 steps.
> > 
> > This port can be tested with a few freely available roms at:
> > http://mamedev.org/roms
> > There is also World Rally which is available from its editor website:
> > http://www.gaelco.com/english/pages/hablando/frhablan.htm
> > 
> > Quick start for testers: put your roms in a roms/ subdirectory.
> > 
> > People with foreign keyboards: if your keymap is present in
> > /usr/local/share/sdlmame/keymaps, run sdlmame with the following flags:
> > -keymap -keymap_file /usr/local/share/sdlmame/keymaps/<yourkeymap>.txt
> > 
> > People with DRI: you can probably get better performance by running
> > sdlmame with the "-video opengl" flag.
> > 
> > People without DRI: you can probably get better performance by running
> > sdlmame with the "-window -nomaximize" flags.
> > 
> > To compile it on amd64 you need to recompile gcc 4.2 with the following
> > patch (espie@ is aware of it):
> > 
> > Index: lang/gcc/4.2/Makefile
> > ===================================================================
> > RCS file: /home/pierre/cvs/ports/lang/gcc/4.2/Makefile,v
> > retrieving revision 1.22
> > diff -p -u -r1.22 Makefile
> > --- lang/gcc/4.2/Makefile   4 Jul 2008 19:41:21 -0000       1.22
> > +++ lang/gcc/4.2/Makefile   25 Aug 2008 11:13:10 -0000
> > @@ -8,7 +8,7 @@ DATE=20070307
> >  FULL_VERSION=4.2-${DATE}
> >  FULL_PKGVERSION=4.2.${DATE}
> >  
> > -PKGNAME-main=  gcc-${FULL_PKGVERSION}p7
> > +PKGNAME-main=  gcc-${FULL_PKGVERSION}p8
> >  PKGNAME-c++ =  g++-${FULL_PKGVERSION}p7
> >  PKGNAME-estdc= libstdc++-${FULL_PKGVERSION}p4
> >  PKGNAME-g77=   g77-${FULL_PKGVERSION}p4
> > @@ -29,7 +29,7 @@ SHARED_LIBS=      estdc++         8.0 \
> >  MAINTAINER=        Marc Espie <[EMAIL PROTECTED]>
> >  
> >  PSEUDO_FLAVORS=c++ fortran objc java ada
> > -.if ${MACHINE_ARCH} == "i386"
> > +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
> >  FLAVOR?=c++ fortran objc ada
> >  .else
> >  FLAVOR?=c++ fortran objc
> > @@ -194,4 +194,3 @@ LIB_DEPENDS-f95=        gmp:gmp->=4.2:devel/gmp
> >  LIB_DEPENDS-java=  gc::devel/boehm-gc
> >  
> >  .include <bsd.port.mk>
> > -
> 
> I just realized the diff I sent for gcc is bad. Here is the right one.
> 
> Index: Makefile
> ===================================================================
> RCS file: /mnt/pierre/cvs/ports/lang/gcc/4.2/Makefile,v
> retrieving revision 1.22
> diff -p -u -r1.22 Makefile
> --- Makefile  4 Jul 2008 19:41:21 -0000       1.22
> +++ Makefile  4 Sep 2008 10:22:24 -0000
> @@ -8,7 +8,7 @@ DATE=20070307
>  FULL_VERSION=4.2-${DATE}
>  FULL_PKGVERSION=4.2.${DATE}
>  
> -PKGNAME-main=  gcc-${FULL_PKGVERSION}p7
> +PKGNAME-main=  gcc-${FULL_PKGVERSION}p8
>  PKGNAME-c++ =  g++-${FULL_PKGVERSION}p7
>  PKGNAME-estdc= libstdc++-${FULL_PKGVERSION}p4
>  PKGNAME-g77=   g77-${FULL_PKGVERSION}p4
> @@ -174,7 +174,7 @@ PKG_ARGS+=-DPPC=1
>  .else
>  PKG_ARGS+=-DPPC=0
>  .endif
> -.if ${MACHINE_ARCH} == "i386"
> +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
>  PKG_ARGS+=-DI386=1
>  .else
>  PKG_ARGS+=-DI386=0
> @@ -194,4 +194,3 @@ LIB_DEPENDS-f95=  gmp:gmp->=4.2:devel/gmp
>  LIB_DEPENDS-java=    gc::devel/boehm-gc
>  
>  .include <bsd.port.mk>
> -

Attachment: sdlmame-0.128.tar.gz
Description: application/tar-gz

Reply via email to