summaryrefslogtreecommitdiff
path: root/emulators/mame/patches
diff options
context:
space:
mode:
authorwiz <wiz>2016-04-14 21:47:07 +0000
committerwiz <wiz>2016-04-14 21:47:07 +0000
commit8ca21938736feb6e1094cc0dc27aec0b87352a1c (patch)
treea98c465d9e420227885b92f074d0f312ada8609d /emulators/mame/patches
parent11875b4a35e5148a6d123e2c66a982bb13f3603c (diff)
downloadpkgsrc-8ca21938736feb6e1094cc0dc27aec0b87352a1c.tar.gz
Update mame to 0.172.
It's with great pleasure that we announce the release of MAME 0.172. This release includes several notable things above and beyond the usual assortment of new systems, new features, and bug fixes. Most importantly, this is the first release of MAME since the change to a proper open-source licensing scheme as announced earlier this month. From this release onward, MAME will be distributed under a GPL-2.0+ license, with the bulk of code being covered under a 3-clause BSD license. MAME now has an up-to-date set of documentation! You can find it under the "Documentation" drop-down at the top of this site, or go to http://docs.mamedev.org/ to check it out. Due to the large number of configuration changes made in this version, we strongly advise all users to delete their existing INI configuration files and re-create them using the "-cc" option. In case you are just overwriting previous release files note that you better remove plugin folder first For those of you running MAME on authentic CRT monitors, MAME now incorporates a number of scaling-related features from GroovyMAME, thanks to its author being brought on board the team, which should help reduce user fragmentation. Please note: If you have issues with MAME 0.172's graphics output, please ensure that "unevenstretch" is set to 1 in your MAME configuration. MAME 0.172 will also introduce a new high-score saving system using Lua scripting. The feature is still experimental, but it's something to keep an eye on for interesting future developments! This version additionally marks the creation of a cross-platform data-driven shader system via the BGFX renderer, which allows you to apply shader effects per-screen, and more.
Diffstat (limited to 'emulators/mame/patches')
-rw-r--r--emulators/mame/patches/patch-3rdparty_luv_deps_uv.cmake33
-rw-r--r--emulators/mame/patches/patch-3rdparty_luv_src_dns.c24
-rw-r--r--emulators/mame/patches/patch-makefile12
-rw-r--r--emulators/mame/patches/patch-scripts_genie.lua38
4 files changed, 23 insertions, 84 deletions
diff --git a/emulators/mame/patches/patch-3rdparty_luv_deps_uv.cmake b/emulators/mame/patches/patch-3rdparty_luv_deps_uv.cmake
deleted file mode 100644
index 1028cb3fbb0..00000000000
--- a/emulators/mame/patches/patch-3rdparty_luv_deps_uv.cmake
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-3rdparty_luv_deps_uv.cmake,v 1.1 2016/03/04 12:47:13 wiz Exp $
-
---- 3rdparty/luv/deps/uv.cmake.orig 2016-02-24 07:02:17.000000000 +0000
-+++ 3rdparty/luv/deps/uv.cmake
-@@ -138,6 +138,14 @@ if("${CMAKE_SYSTEM_NAME}" MATCHES "FreeB
- )
- endif()
-
-+## NetBSD
-+if("${CMAKE_SYSTEM_NAME}" MATCHES "NetBSD")
-+ set(SOURCES ${SOURCES}
-+ ${LIBUVDIR}/src/unix/kqueue.c
-+ ${LIBUVDIR}/src/unix/freebsd.c
-+ )
-+endif()
-+
- ## Linux
- if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
- add_definitions(
-@@ -187,6 +195,13 @@ if("${CMAKE_SYSTEM_NAME}" MATCHES "FreeB
- )
- endif()
-
-+if("${CMAKE_SYSTEM_NAME}" MATCHES "NetBSD")
-+ target_link_libraries(uv
-+ pthread
-+ kvm
-+ )
-+endif()
-+
- if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
- target_link_libraries(uv
- pthread
diff --git a/emulators/mame/patches/patch-3rdparty_luv_src_dns.c b/emulators/mame/patches/patch-3rdparty_luv_src_dns.c
deleted file mode 100644
index 82e8d172eef..00000000000
--- a/emulators/mame/patches/patch-3rdparty_luv_src_dns.c
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-3rdparty_luv_src_dns.c,v 1.1 2016/03/04 12:47:13 wiz Exp $
-
-Only use existing defines.
-
---- 3rdparty/luv/src/dns.c.orig 2016-02-24 07:02:17.000000000 +0000
-+++ 3rdparty/luv/src/dns.c
-@@ -150,13 +150,17 @@ static int luv_getaddrinfo(lua_State* L)
- if (lua_toboolean(L, -1)) hints->ai_flags |= AI_ADDRCONFIG;
- lua_pop(L, 1);
-
-+#if defined(AI_V4MAPPED)
- lua_getfield(L, 3, "v4mapped");
- if (lua_toboolean(L, -1)) hints->ai_flags |= AI_V4MAPPED;
- lua_pop(L, 1);
-+#endif
-
-+#if defined(AI_ALL)
- lua_getfield(L, 3, "all");
- if (lua_toboolean(L, -1)) hints->ai_flags |= AI_ALL;
- lua_pop(L, 1);
-+#endif
-
- lua_getfield(L, 3, "numerichost");
- if (lua_toboolean(L, -1)) hints->ai_flags |= AI_NUMERICHOST;
diff --git a/emulators/mame/patches/patch-makefile b/emulators/mame/patches/patch-makefile
index 7a98c2d1884..f6dce1aabb2 100644
--- a/emulators/mame/patches/patch-makefile
+++ b/emulators/mame/patches/patch-makefile
@@ -1,16 +1,16 @@
-$NetBSD: patch-makefile,v 1.14 2016/04/04 17:32:17 joerg Exp $
+$NetBSD: patch-makefile,v 1.15 2016/04/14 21:47:07 wiz Exp $
---- makefile.orig 2016-04-04 07:38:18.519192767 +0000
+--- makefile.orig 2016-03-30 09:03:03.000000000 +0000
+++ makefile
-@@ -806,11 +806,6 @@ ifeq ($(CLANG_VERSION),)
- $(info GCC $(GCC_VERSION) detected)
+@@ -833,11 +833,6 @@ $(info GCC $(GCC_VERSION) detected)
else
$(info Clang $(CLANG_VERSION) detected)
+ ifneq ($(TARGETOS),asmjs)
-ifeq ($(ARCHITECTURE),_x64)
-ARCHITECTURE := _x64_clang
-else
-ARCHITECTURE := _x86_clang
-endif
endif
- ifneq ($(PYTHON_AVAILABLE),python)
- $(error Python is not available in path)
+ endif
+
diff --git a/emulators/mame/patches/patch-scripts_genie.lua b/emulators/mame/patches/patch-scripts_genie.lua
index 301ad338aec..11d3f3637ed 100644
--- a/emulators/mame/patches/patch-scripts_genie.lua
+++ b/emulators/mame/patches/patch-scripts_genie.lua
@@ -1,11 +1,11 @@
-$NetBSD: patch-scripts_genie.lua,v 1.1 2016/04/04 17:32:17 joerg Exp $
+$NetBSD: patch-scripts_genie.lua,v 1.2 2016/04/14 21:47:07 wiz Exp $
Detect clang correctly.
Use GNU version of the C++ standard to avoid trouble with alloca on NetBSD.
---- scripts/genie.lua.orig 2016-04-04 07:47:22.946297308 +0000
+--- scripts/genie.lua.orig 2016-03-30 09:03:03.000000000 +0000
+++ scripts/genie.lua
-@@ -692,12 +692,12 @@ local version = str_to_version(_OPTIONS[
+@@ -672,22 +672,22 @@ local version = str_to_version(_OPTIONS[
if string.find(_OPTIONS["gcc"], "clang") and ((version < 30500) or (_OPTIONS["targetos"]=="macosx" and (version <= 60000))) then
buildoptions_cpp {
"-x c++",
@@ -19,15 +19,11 @@ Use GNU version of the C++ standard to avoid trouble with alloca on NetBSD.
+ "-std=gnu++1y",
}
else
- if _OPTIONS["targetos"]=="os2" then
-@@ -708,13 +708,13 @@ else
- else
- buildoptions_cpp {
- "-x c++",
-- "-std=c++14",
-+ "-std=gnu++14",
- }
- end
+ buildoptions_cpp {
+ "-x c++",
+- "-std=c++14",
++ "-std=gnu++14",
+ }
buildoptions_objc {
"-x objective-c++",
@@ -36,26 +32,26 @@ Use GNU version of the C++ standard to avoid trouble with alloca on NetBSD.
}
end
-- this speeds it up a bit by piping between the preprocessor/compiler/assembler
-@@ -955,7 +955,17 @@ end
+@@ -933,7 +933,17 @@ end
local version = str_to_version(_OPTIONS["gcc_version"])
-- if string.find(_OPTIONS["gcc"], "clang") then
+- if string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "pnacl") or string.find(_OPTIONS["gcc"], "asmjs") or string.find(_OPTIONS["gcc"], "android") then
+ if _OPTIONS["clang_version"] == "" then
+ if (version < 40900) then
+ print("GCC version 4.9 or later needed")
+ os.exit(-1)
+ end
-+ buildoptions {
-+ "-Wno-unused-result", -- needed for fgets,fread on linux
-+ -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds)
-+ "-Wno-array-bounds",
-+ }
++ buildoptions {
++ "-Wno-unused-result", -- needed for fgets,fread on linux
++ -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds)
++ "-Wno-array-bounds",
++ }
+ else
if (version < 30400) then
print("Clang version 3.4 or later needed")
os.exit(-1)
-@@ -981,16 +991,6 @@ end
+@@ -959,16 +969,6 @@ end
"-Wno-tautological-undefined-compare",
}
end
@@ -71,4 +67,4 @@ Use GNU version of the C++ standard to avoid trouble with alloca on NetBSD.
- }
end
end
-
+