Hi,
You are right. I have changed the patch.
This patch is tested on mipsel and mips64el successfully.
Regards,
Daniel
--- mame-0.173.orig/makefile
+++ mame-0.173/makefile
@@ -150,6 +150,9 @@ endif
ifneq ($(filter powerpc,$(UNAME_P)),)
PLATFORM := powerpc
endif
+ifneq ($(filter mips64%,$(UNAME_M)),)
+ifeq ($(shell getconf LONG_BIT),64)
+PLATFORM := mips64
+endif
+endif
ifeq ($(firstword $(filter Linux,$(UNAME))),Linux)
OS := linux
endif
--- mame-0.173.orig/scripts/genie.lua
+++ mame-0.173/scripts/genie.lua
@@ -1005,6 +1005,12 @@ if (_OPTIONS["PLATFORM"]=="arm64") then
}
end
+if (_OPTIONS["PLATFORM"]=="mips64") then
+ defines {
+ "PTR64=1",
+ }
+end
+
local subdir
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"]