summaryrefslogtreecommitdiff
path: root/emulators/mame/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-01-07 15:51:23 +0000
committerwiz <wiz@pkgsrc.org>2019-01-07 15:51:23 +0000
commitaf6e239a024e4f453c42e0d566928ebe2d2c57a8 (patch)
tree11fbe90fa134fcc8c29ece6e11f1b2a896d16145 /emulators/mame/patches
parent1624f52af9afcf0e69dec567ccebdb9a9118ae56 (diff)
downloadpkgsrc-af6e239a024e4f453c42e0d566928ebe2d2c57a8.tar.gz
mame: update to 0.205.
With Christmas just over, it’s time for the final MAME release for 2018, and what a year it’s been! MAME 0.205 is no different. Newly supported arcade systems include Unico’s Magic Purple, and Visco’s never-before-seen prototype Pastel Island. The latter ties in nicely with improved video emulation for the SSV platform (yes, this fixes other long-standing glitches, too). Newly playable machines include Konami’s Tobe! Polystars, Evil Night and Total Vice. Yes, Konami M2 emulation is finally here! Be aware that there’s still a lot of room for performance optimisation on this system. Putting arcade systems aside for a moment, this release includes support for Dance Dance Revolution Strawberry Shortcake, and the Nintendo Game & Watch titles Oil Panic and Squish. Interestingly, there are no other emulators or simulators for Squish, and it hasn’t been included in any of Nintendo’s Game & Watch collections. It seems to draw inspiration from the Famicom game Devil World. There are hundreds more Commodore 64 cassettes in the software list now, and quite a few more BBC ROMs as well. Software lists have been added for the Nascom computers, along with updates to the boot ROM choices and better keyboard emulation. We’ve also created a skeleton driver and documented the known software for the Chinese Monon Color console. In a last-minute addition we added support for new version 2 .WOZ floppy images on the Apple II family.
Diffstat (limited to 'emulators/mame/patches')
-rw-r--r--emulators/mame/patches/patch-makefile53
-rw-r--r--emulators/mame/patches/patch-scripts_toolchain.lua52
-rw-r--r--emulators/mame/patches/patch-src_mame_machine_pocketc.cpp15
-rw-r--r--emulators/mame/patches/patch-src_mame_video_xavix.cpp16
4 files changed, 16 insertions, 120 deletions
diff --git a/emulators/mame/patches/patch-makefile b/emulators/mame/patches/patch-makefile
index 5b6ac31fb91..c1bb6e7a4fc 100644
--- a/emulators/mame/patches/patch-makefile
+++ b/emulators/mame/patches/patch-makefile
@@ -1,12 +1,9 @@
-$NetBSD: patch-makefile,v 1.22 2018/12/08 23:18:54 wiz Exp $
+$NetBSD: patch-makefile,v 1.23 2019/01/07 15:51:23 wiz Exp $
Treat all BSDs the same.
Do not set compiler optimization.
-Add missing rules for building with clang on FreeBSD and NetBSD.
-https://github.com/mamedev/mame/pull/4383
-
--- makefile.orig 2018-08-29 00:35:24.000000000 +0000
+++ makefile
@@ -190,19 +190,19 @@ GENIEOS := solaris
@@ -44,51 +41,3 @@ https://github.com/mamedev/mame/pull/4383
# set the symbols level
ifdef SYMBOLS
-@@ -1395,6 +1391,23 @@ freebsd_x86: generate $(PROJECTDIR)/$(MA
- $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd config=$(CONFIG)32
-
- #-------------------------------------------------
-+# gmake-freebsd-clang
-+#-------------------------------------------------
-+
-+$(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile: makefile $(SCRIPTS) $(GENIE)
-+ $(SILENT) $(GENIE) $(PARAMS) $(TARGET_PARAMS) --gcc=freebsd-clang --gcc_version=$(CLANG_VERSION) $(MAKETYPE)
-+
-+.PHONY: freebsd_x64_clang
-+freebsd_x64_clang: generate $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile
-+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)64 precompile
-+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)64
-+
-+.PHONY: freebsd_x86_clang
-+freebsd_x86_clang: generate $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile
-+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)32 precompile
-+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)32
-+
-+#-------------------------------------------------
- # gmake-netbsd
- #-------------------------------------------------
-
-@@ -1415,6 +1428,23 @@ netbsd_x86: generate $(PROJECTDIR)/$(MAK
- $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd config=$(CONFIG)32
-
- #-------------------------------------------------
-+# gmake-netbsd-clang
-+#-------------------------------------------------
-+
-+$(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile: makefile $(SCRIPTS) $(GENIE)
-+ $(SILENT) $(GENIE) $(PARAMS) $(TARGET_PARAMS) --gcc=netbsd-clang --gcc_version=$(CLANG_VERSION) $(MAKETYPE)
-+
-+.PHONY: netbsd_x64_clang
-+netbsd_x64_clang: generate $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile
-+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)64 precompile
-+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)64
-+
-+.PHONY: netbsd_x86_clang
-+netbsd_x86_clang: generate $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile
-+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)32 precompile
-+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)32
-+
-+#-------------------------------------------------
- # gmake-openbsd
- #-------------------------------------------------
-
diff --git a/emulators/mame/patches/patch-scripts_toolchain.lua b/emulators/mame/patches/patch-scripts_toolchain.lua
deleted file mode 100644
index 19d9eefde6a..00000000000
--- a/emulators/mame/patches/patch-scripts_toolchain.lua
+++ /dev/null
@@ -1,52 +0,0 @@
-$NetBSD: patch-scripts_toolchain.lua,v 1.4 2018/12/08 23:18:54 wiz Exp $
-
-Allow Clang on FreeBSD, NetBSD, and OpenBSD.
-https://github.com/mamedev/mame/pull/4383
-
---- scripts/toolchain.lua.orig 2018-09-26 04:43:31.000000000 +0000
-+++ scripts/toolchain.lua
-@@ -23,6 +23,7 @@ newoption {
- { "android-x64", "Android - x64" },
- { "asmjs", "Emscripten/asm.js" },
- { "freebsd", "FreeBSD" },
-+ { "freebsd-clang", "FreeBSD (clang compiler)"},
- { "linux-gcc", "Linux (GCC compiler)" },
- { "linux-clang", "Linux (Clang compiler)" },
- { "ios-arm", "iOS - ARM" },
-@@ -31,7 +32,9 @@ newoption {
- { "mingw64-gcc", "MinGW64" },
- { "mingw-clang", "MinGW (clang compiler)" },
- { "netbsd", "NetBSD" },
-+ { "netbsd-clang", "NetBSD (clang compiler)"},
- { "openbsd", "OpenBSD" },
-+ { "openbsd-clang", "OpenBSD (clang compiler)"},
- { "osx", "OSX (GCC compiler)" },
- { "osx-clang", "OSX (Clang compiler)" },
- { "pnacl", "Native Client - PNaCl" },
-@@ -168,14 +171,26 @@ function toolchain(_buildDir, _subDir)
- location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-freebsd")
- end
-
-+ if "freebsd-clang" == _OPTIONS["gcc"] then
-+ location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-freebsd-clang")
-+ end
-+
- if "netbsd" == _OPTIONS["gcc"] then
- location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-netbsd")
- end
-
-+ if "netbsd-clang" == _OPTIONS["gcc"] then
-+ location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-netbsd-clang")
-+ end
-+
- if "openbsd" == _OPTIONS["gcc"] then
- location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-openbsd")
- end
-
-+ if "openbsd-clang" == _OPTIONS["gcc"] then
-+ location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-openbsd-clang")
-+ end
-+
- if "ios-arm" == _OPTIONS["gcc"] then
- premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
- premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
diff --git a/emulators/mame/patches/patch-src_mame_machine_pocketc.cpp b/emulators/mame/patches/patch-src_mame_machine_pocketc.cpp
new file mode 100644
index 00000000000..ab0347cc550
--- /dev/null
+++ b/emulators/mame/patches/patch-src_mame_machine_pocketc.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_mame_machine_pocketc.cpp,v 1.1 2019/01/07 15:51:23 wiz Exp $
+
+Fix compile.
+https://github.com/mamedev/mame/commit/9592a18b11d708a1430f2684f3f70eef43372de0
+
+--- src/mame/machine/pocketc.cpp.orig 2018-12-25 14:27:31.000000000 +0000
++++ src/mame/machine/pocketc.cpp
+@@ -1,6 +1,7 @@
+ // license:GPL-2.0+
+ // copyright-holders:Peter Trauner
+
++#include "emu.h"
+ #include "includes/pocketc.h"
+
+ WRITE8_MEMBER(pocketc_state::out_a_w)
diff --git a/emulators/mame/patches/patch-src_mame_video_xavix.cpp b/emulators/mame/patches/patch-src_mame_video_xavix.cpp
deleted file mode 100644
index c9f86b00066..00000000000
--- a/emulators/mame/patches/patch-src_mame_video_xavix.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-src_mame_video_xavix.cpp,v 1.2 2018/12/07 22:09:16 wiz Exp $
-
-For sin, atan in std::.
-https://github.com/mamedev/mame/pull/4379
-
---- src/mame/video/xavix.cpp.orig 2018-11-27 19:12:23.000000000 +0000
-+++ src/mame/video/xavix.cpp
-@@ -7,6 +7,8 @@
- // #define VERBOSE 1
- #include "logmacro.h"
-
-+#include <cmath>
-+
- inline void xavix_state::set_data_address(int address, int bit)
- {
- m_tmp_dataaddress = address;