diff options
author | wiz <wiz> | 2011-02-03 22:22:35 +0000 |
---|---|---|
committer | wiz <wiz> | 2011-02-03 22:22:35 +0000 |
commit | d4e3acc8e6563585f558f13bf8a99b784c9f1120 (patch) | |
tree | d5f0c847d5dfcacb2b1dc164bb02f6ffa4f5493f /emulators/mame/patches | |
parent | 0441505e3f127446384a2b0a364b39b1b2d02a9f (diff) | |
download | pkgsrc-d4e3acc8e6563585f558f13bf8a99b784c9f1120.tar.gz |
Initial import of mame-0.141:
MAME stands for Multiple Arcade Machine Emulator. When used in
conjunction with images of the original arcade game's ROM and disk
data, MAME attempts to reproduce that game as faithfully as possible
on a more modern general-purpose computer. MAME can currently
emulate several thousand different classic arcade video games from
the late 1970s through the modern era.
ROMs are needed to play the games. Some are freely available on the
MAME homepage.
Diffstat (limited to 'emulators/mame/patches')
-rw-r--r-- | emulators/mame/patches/patch-makefile | 25 | ||||
-rw-r--r-- | emulators/mame/patches/patch-src_emu_debug_debugcpu.c | 15 | ||||
-rw-r--r-- | emulators/mame/patches/patch-src_emu_emucore.h | 22 | ||||
-rw-r--r-- | emulators/mame/patches/patch-src_lib_util_astring.h | 17 | ||||
-rw-r--r-- | emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c | 18 |
5 files changed, 97 insertions, 0 deletions
diff --git a/emulators/mame/patches/patch-makefile b/emulators/mame/patches/patch-makefile new file mode 100644 index 00000000000..74f3e17f05d --- /dev/null +++ b/emulators/mame/patches/patch-makefile @@ -0,0 +1,25 @@ +$NetBSD: patch-makefile,v 1.1.1.1 2011/02/03 22:22:36 wiz Exp $ + +First chunk accepted upstream, second pkgsrc-only. + +--- makefile.orig 2010-12-29 22:50:26.000000000 +0000 ++++ makefile +@@ -86,6 +88,9 @@ endif + ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD) + TARGETOS = freebsd + endif ++ifeq ($(firstword $(filter NetBSD,$(UNAME))),NetBSD) ++TARGETOS = netbsd ++endif + ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD) + TARGETOS = openbsd + endif +@@ -344,7 +349,7 @@ NAME = $(TARGET)$(SUBTARGET) + endif + + # fullname is prefix+name+suffix+suffix64+suffixdebug +-FULLNAME = $(PREFIX)$(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)$(SUFFIXPROFILE) ++FULLNAME = $(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIXDEBUG)$(SUFFIXPROFILE) + + # add an EXE suffix to get the final emulator name + EMULATOR = $(FULLNAME)$(EXE) diff --git a/emulators/mame/patches/patch-src_emu_debug_debugcpu.c b/emulators/mame/patches/patch-src_emu_debug_debugcpu.c new file mode 100644 index 00000000000..5687ba359ed --- /dev/null +++ b/emulators/mame/patches/patch-src_emu_debug_debugcpu.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_emu_debug_debugcpu.c,v 1.1.1.1 2011/02/03 22:22:36 wiz Exp $ + +Sent upstream and accepted. + +--- src/emu/debug/debugcpu.c.orig 2010-12-31 16:41:26.000000000 +0000 ++++ src/emu/debug/debugcpu.c +@@ -51,7 +51,7 @@ + #include "xmlfile.h" + #include <ctype.h> + #include <zlib.h> +-#ifdef SDLMAME_FREEBSD ++#if defined(SDLMAME_FREEBSD) || defined(SDLMAME_NETBSD) + # undef tolower + #endif + diff --git a/emulators/mame/patches/patch-src_emu_emucore.h b/emulators/mame/patches/patch-src_emu_emucore.h new file mode 100644 index 00000000000..087652e7c4b --- /dev/null +++ b/emulators/mame/patches/patch-src_emu_emucore.h @@ -0,0 +1,22 @@ +$NetBSD: patch-src_emu_emucore.h,v 1.1.1.1 2011/02/03 22:22:36 wiz Exp $ + +Sent upstream and accepted. + +--- src/emu/emucore.h.orig 2010-12-31 14:59:46.000000000 +0000 ++++ src/emu/emucore.h +@@ -686,6 +686,7 @@ inline void fatalerror_exitcode(running_ + //************************************************************************** + + // population count ++#ifndef SDLMAME_NETBSD + inline int popcount(UINT32 val) + { + int count; +@@ -694,6 +695,7 @@ inline int popcount(UINT32 val) + val &= val - 1; + return count; + } ++#endif + + + // convert a series of 32 bits into a float diff --git a/emulators/mame/patches/patch-src_lib_util_astring.h b/emulators/mame/patches/patch-src_lib_util_astring.h new file mode 100644 index 00000000000..48807e98b9d --- /dev/null +++ b/emulators/mame/patches/patch-src_lib_util_astring.h @@ -0,0 +1,17 @@ +$NetBSD: patch-src_lib_util_astring.h,v 1.1.1.1 2011/02/03 22:22:36 wiz Exp $ + +Sent upstream and accepted. + +--- src/lib/util/astring.h.orig 2010-10-31 23:48:04.000000000 +0000 ++++ src/lib/util/astring.h +@@ -296,6 +296,10 @@ INLINE astring *astring_assemble_5(astri + ***************************************************************************/ + + #ifdef __cplusplus ++#ifdef SDLMAME_NETBSD ++#undef toupper ++#undef tolower ++#endif + + /* derived class for C++ */ + class astring : public astring_base diff --git a/emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c b/emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c new file mode 100644 index 00000000000..ba966723a2e --- /dev/null +++ b/emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c @@ -0,0 +1,18 @@ +$NetBSD: patch-src_osd_sdl_sdlsync__ntc.c,v 1.1.1.1 2011/02/03 22:22:36 wiz Exp $ + +Sent upstream and accepted. + +--- src/osd/sdl/sdlsync_ntc.c.orig 2010-01-15 20:12:06.000000000 +0000 ++++ src/osd/sdl/sdlsync_ntc.c +@@ -19,6 +19,11 @@ + #include <mach/mach.h> + #endif + ++#ifdef SDLMAME_NETBSD ++/* for SIGKILL */ ++#include <signal.h> ++#endif ++ + // standard C headers + #include <math.h> + #include <unistd.h> |