diff --git a/packages/emulation/libretro-mame/patches/build.patch b/packages/emulation/libretro-mame/patches/libretro-mame-01-build.patch similarity index 68% rename from packages/emulation/libretro-mame/patches/build.patch rename to packages/emulation/libretro-mame/patches/libretro-mame-01-build.patch index a7f9cfaa3c..1b39f9b42f 100644 --- a/packages/emulation/libretro-mame/patches/build.patch +++ b/packages/emulation/libretro-mame/patches/libretro-mame-01-build.patch @@ -1,6 +1,21 @@ ---- a/makefile 2020-01-31 06:50:07.043158899 +0100 -+++ b/makefile 2020-01-31 06:43:35.696492947 +0100 -@@ -1713,12 +1713,11 @@ +diff --git a/3rdparty/genie/src/actions/make/make_cpp.lua b/3rdparty/genie/src/actions/make/make_cpp.lua +index 880d9d35bf..69fe6f06bf 100644 +--- a/3rdparty/genie/src/actions/make/make_cpp.lua ++++ b/3rdparty/genie/src/actions/make/make_cpp.lua +@@ -632,7 +632,7 @@ + + _p('') + elseif (path.getextension(file) == ".rc") then +- _p('$(OBJDIR)/%s.res: %s', _MAKE.esc(path.getbasename(file)), _MAKE.esc(file)) ++ _p('$(OBJDIR)/%s.res: %s | $(OBJDIR)', _MAKE.esc(path.getbasename(file)), _MAKE.esc(file)) + if prj.msgresource then + _p('\t@echo ' .. prj.msgresource) + else +diff --git a/makefile b/makefile +index 49a30ef20b..c31ee8e318 100644 +--- a/makefile ++++ b/makefile +@@ -1710,12 +1710,11 @@ genie: $(GENIE) generate: \ genie \ @@ -14,7 +29,7 @@ $(GENDIR)/includes/SDL2: -$(call MKDIR,$@) -@@ -1754,7 +1753,7 @@ +@@ -1751,7 +1750,7 @@ $(GENDIR)/%.lh: $(SRC)/%.lay scripts/build/complay.py | $(GEN_FOLDERS) @echo Compressing $<... $(SILENT)$(PYTHON) scripts/build/complay.py $< $@ layout_$(basename $(notdir $<)) @@ -23,14 +38,5 @@ @echo Converting $<... $(SILENT)$(PYTHON) scripts/build/file2str.py $< $@ mulcd_bkg uint8_t ---- a/3rdparty/genie/src/actions/make/make_cpp.lua 2020-01-09 10:56:49.931595408 +0100 -+++ b/3rdparty/genie/src/actions/make/make_cpp.lua 2020-01-09 10:59:04.237732440 +0100 -@@ -560,7 +560,7 @@ - - _p('') - elseif (path.getextension(file) == ".rc") then -- _p('$(OBJDIR)/%s.res: %s', _MAKE.esc(path.getbasename(file)), _MAKE.esc(file)) -+ _p('$(OBJDIR)/%s.res: %s | $(OBJDIR)', _MAKE.esc(path.getbasename(file)), _MAKE.esc(file)) - if prj.msgresource then - _p('\t@echo ' .. prj.msgresource) - else +-- + diff --git a/packages/emulation/libretro-mame/patches/genie.patch b/packages/emulation/libretro-mame/patches/libretro-mame-02-genie.patch similarity index 50% rename from packages/emulation/libretro-mame/patches/genie.patch rename to packages/emulation/libretro-mame/patches/libretro-mame-02-genie.patch index b4bb2c54dd..b32959a84a 100644 --- a/packages/emulation/libretro-mame/patches/genie.patch +++ b/packages/emulation/libretro-mame/patches/libretro-mame-02-genie.patch @@ -1,6 +1,8 @@ ---- a/3rdparty/genie/build/gmake.linux/genie.make 2020-01-14 06:27:22.077161784 +0100 -+++ b/3rdparty/genie/build/gmake.linux/genie.make 2020-01-14 06:27:49.856857764 +0100 -@@ -28,8 +28,12 @@ +diff --git a/3rdparty/genie/build/gmake.linux/genie.make b/3rdparty/genie/build/gmake.linux/genie.make +index fbb6530885..d9da6513ae 100644 +--- a/3rdparty/genie/build/gmake.linux/genie.make ++++ b/3rdparty/genie/build/gmake.linux/genie.make +@@ -28,8 +28,12 @@ else RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 endif @@ -15,3 +17,5 @@ AR = ar ifndef RESCOMP +-- + diff --git a/packages/emulation/libretro-mame/patches/pregenerate.patch b/packages/emulation/libretro-mame/patches/libretro-mame-03-pregenerate.patch similarity index 84% rename from packages/emulation/libretro-mame/patches/pregenerate.patch rename to packages/emulation/libretro-mame/patches/libretro-mame-03-pregenerate.patch index 4f88af690d..5b1bb3b4e0 100644 --- a/packages/emulation/libretro-mame/patches/pregenerate.patch +++ b/packages/emulation/libretro-mame/patches/libretro-mame-03-pregenerate.patch @@ -1,6 +1,8 @@ ---- a/makefile 2020-01-15 17:56:35.780589637 +0100 -+++ b/makefile 2020-01-15 17:56:15.020900841 +0100 -@@ -1294,16 +1294,19 @@ +diff --git a/makefile b/makefile +index c31ee8e318..55f2a96ae4 100644 +--- a/makefile ++++ b/makefile +@@ -1372,16 +1372,19 @@ $(PROJECTDIR)/$(MAKETYPE)-linux/Makefile: makefile $(SCRIPTS) $(GENIE) .PHONY: linux_x64 linux_x64: generate $(PROJECTDIR)/$(MAKETYPE)-linux/Makefile $(SILENT) $(MAKE) $(MAKEPARAMS) -C $(PROJECTDIR)/$(MAKETYPE)-linux config=$(CONFIG)64 precompile @@ -20,3 +22,5 @@ $(SILENT) $(MAKE) $(MAKEPARAMS) -C $(PROJECTDIR)/$(MAKETYPE)-linux config=$(CONFIG) #------------------------------------------------- +-- + diff --git a/packages/emulation/libretro-mame/patches/make.patch b/packages/emulation/libretro-mame/patches/make.patch deleted file mode 100644 index 6721ba2085..0000000000 --- a/packages/emulation/libretro-mame/patches/make.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/3rdparty/genie/src/host/scripts.c 2020-01-30 21:36:48.336290206 +0100 -+++ b/3rdparty/genie/src/host/scripts.c 2020-01-30 21:37:37.167853537 +0100 -@@ -229,7 +229,7 @@ - - /* actions/make/make_cpp.lua */ - "-- --\npremake.make.cpp = { }\npremake.make.override = { }\npremake.make.makefile_ignore = false\nlocal cpp = premake.make.cpp\nlocal make = premake.make\nfunction premake.make_cpp(prj)\nlocal cc = premake.gettool(prj)\nlocal platforms = premake.filterplatforms(prj.solution, cc.platforms, \"Native\")\nlocal action = premake.action.current()\npremake.gmake_cpp_header(prj, cc, platforms)\npremake.gmake_cpp_configs(prj, cc, platforms)\ntable.sort(prj.allfiles)\nlocal objdirs = {}\nlocal additionalobjdirs = {}\nfor _, file in ipairs(prj.allfiles) do\nif path.issourcefile(file) then\nobjdirs[_MAKE.esc(path.getdirectory(path.trimdots(file)))] = 1\nend\nend\nfor _, custombuildtask in ipairs(prj.custombuildtask or {}) do\nfor _, buildtask in ipairs(custombuildtask or {}) do\nadditionalobjdirs[_MAKE.esc(path.getdirectory(path.getrelative(prj.location,buildtask[2])))] = 1\nend\nend\n_p('OBJDIRS := \\\\')\n_p('\\t$(OBJDIR) \\\\')\nfor dir, _ in iter.sortByKeys(objdirs) do\n_p('\\t$(OBJDIR)/%s \\\\', dir)\nend\nfor dir, _" -- " in iter.sortByKeys(additionalobjdirs) do\n_p('\\t%s \\\\', dir)\nend\n_p('')\n_p('RESOURCES := \\\\')\nfor _, file in ipairs(prj.allfiles) do\nif path.isresourcefile(file) then\n_p('\\t$(OBJDIR)/%s.res \\\\', _MAKE.esc(path.getbasename(file)))\nend\nend\n_p('')\n_p('.PHONY: clean prebuild prelink')\n_p('')\nif os.is(\"MacOSX\") and prj.kind == \"WindowedApp\" and not prj.options.SkipBundling then\n_p('all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) $(dir $(TARGETDIR))PkgInfo $(dir $(TARGETDIR))Info.plist')\nelse\n_p('all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET)')\nend\n_p('\\t@:')\n_p('')\nif (prj.kind == \"StaticLib\" and prj.options.ArchiveSplit) then\n_p('define max_args')\n_p('\\t$(eval _args:=)')\n_p('\\t$(foreach obj,$3,$(eval _args+=$(obj))$(if $(word $2,$(_args)),$1$(_args)$(EOL)$(eval _args:=)))')\n_p('\\t$(if $(_args),$1$(_args))')\n_p('endef')\n_p('')\n_p('define EOL')\n_p('')\n_p('')\n_p('endef')\n_p('')\nend\n_p('$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOUR" -+ " in iter.sortByKeys(additionalobjdirs) do\n_p('\\t%s \\\\', dir)\nend\n_p('')\n_p('RESOURCES := \\\\')\nfor _, file in ipairs(prj.allfiles) do\nif path.isresourcefile(file) then\n_p('\\t$(OBJDIR)/%s.res \\\\', _MAKE.esc(path.getbasename(file)))\nend\nend\n_p('')\n_p('.PHONY: clean prebuild prelink')\n_p('')\nif os.is(\"MacOSX\") and prj.kind == \"WindowedApp\" and not prj.options.SkipBundling then\n_p('all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) $(dir $(TARGETDIR))PkgInfo $(dir $(TARGETDIR))Info.plist')\nelse\n_p('all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET)')\nend\n_p('\\t@:')\n_p('')\nif (prj.kind == \"StaticLib\" and prj.options.ArchiveSplit) then\n_p('define max_args')\n_p('\\t$(eval _args:=)')\n_p('\\t$(foreach obj,$3,$(eval _args+=$(obj))$(if $(word $2,$(_args)),$1 $(_args)$(EOL)$(eval _args:=)))')\n_p('\\t$(if $(_args),$1 $(_args))')\n_p('endef')\n_p('')\n_p('define EOL')\n_p('')\n_p('')\n_p('endef')\n_p('')\nend\n_p('$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOUR" - "CES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS)')\nif prj.kind == \"StaticLib\" then\nif prj.msgarchiving then\n_p('\\t@echo ' .. prj.msgarchiving)\nelse\n_p('\\t@echo Archiving %s', prj.name)\nend\nif (not prj.archivesplit_size) then\nprj.archivesplit_size=200\nend\nif (not prj.options.ArchiveSplit) then\n_p('ifeq (posix,$(SHELLTYPE))')\n_p('\\t$(SILENT) rm -f $(TARGET)')\n_p('else')\n_p('\\t$(SILENT) if exist $(subst /,\\\\\\\\,$(TARGET)) del $(subst /,\\\\\\\\,$(TARGET))')\n_p('endif')\n_p('\\t$(SILENT) $(LINKCMD) $(LINKOBJS)' .. (os.is(\"MacOSX\") and \" 2>&1 > /dev/null | sed -e '/.o) has no symbols$$/d'\" or \"\"))\nelse\n_p('\\t$(call RM,$(TARGET))')\n_p('\\t@$(call max_args,$(LINKCMD),'.. prj.archivesplit_size ..',$(LINKOBJS))' .. (os.is(\"MacOSX\") and \" 2>&1 > /dev/null | sed -e '/.o) has no symbols$$/d'\" or \"\"))\n_p('\\t$(SILENT) $(LINKCMD_NDX)')\nend\nelse\nif prj.msglinking then\n_p('\\t@echo ' .. prj.msglinking)\nelse\n_p('\\t@echo Linking %s', prj.name)\nend\n_p('\\t$(SILENT) $(LINKCMD)" - "')\nend\n_p('\\t$(POSTBUILDCMDS)')\n_p('')\n_p('$(TARGETDIR):')\npremake.make_mkdirrule(\"$(TARGETDIR)\")\n_p('$(OBJDIRS):')\nif (not prj.solution.messageskip) or (not table.contains(prj.solution.messageskip, \"SkipCreatingMessage\")) then\n_p('\\t@echo Creating $(@)')\nend\n_p('\\t-$(call MKDIR,$@)')\n_p('')\nif os.is(\"MacOSX\") and prj.kind == \"WindowedApp\" and not prj.options.SkipBundling then\n_p('$(dir $(TARGETDIR))PkgInfo:')\n_p('$(dir $(TARGETDIR))Info.plist:')\n_p('')\nend\n_p('clean:')\nif (not prj.solution.messageskip) or (not table.contains(prj.solution.messageskip, \"SkipCleaningMessage\")) then\n_p('\\t@echo Cleaning %s', prj.name)\nend\n_p('ifeq (posix,$(SHELLTYPE))')\n_p('\\t$(SILENT) rm -f $(TARGET)')\n_p('\\t$(SILENT) rm -rf $(OBJDIR)')\n_p('else')\n_p('\\t$(SILENT) if exist $(subst /,\\\\\\\\,$(TARGET)) del $(subst /,\\\\\\\\,$(TARGET))')\n_p('\\t$(SILENT) if exist $(subst /,\\\\\\\\,$(OBJDIR)) rmdir /s /q $(subst /,\\\\\\\\,$(OBJDIR))')\n_p('endif')\n_p('')\n_p('prebuild:')\n_p('\\t$(PRE" - "BUILDCMDS)')\n_p('')\n_p('prelink:')\n_p('\\t$(PRELINKCMDS)')\n_p('')\ncpp.pchrules(prj)\ncpp.fileRules(prj, cc)\ncpp.dependencyRules(prj)\nfor _, custombuildtask in ipairs(prj.custombuildtask or {}) do\nfor _, buildtask in ipairs(custombuildtask or {}) do\nlocal deps = string.format(\"%s \",path.getrelative(prj.location,buildtask[1]))\nfor _, depdata in ipairs(buildtask[3] or {}) do\ndeps = deps .. string.format(\"%s \",path.getrelative(prj.location,depdata))\nend\n_p('%s: %s | $(TARGETDIR) $(OBJDIRS)'\n,path.getrelative(prj.location,buildtask[2])\n, deps\n)\nfor _, cmdline in ipairs(buildtask[4] or {}) do\nlocal cmd = cmdline\nlocal num = 1\nfor _, depdata in ipairs(buildtask[3] or {}) do\ncmd = string.gsub(cmd,\"%$%(\" .. num ..\"%)\", string.format(\"%s \",path.getrelative(prj.location,depdata)))\nnum = num + 1\nend\ncmd = string.gsub(cmd, \"%$%(<%)\", \"$<\")\ncmd = string.gsub(cmd, \"%$%(@%)\", \"$@\")\n_p('\\t$(SILENT) %s',cmd)\nend\n_p('')\nend\nend\n_p('-include $(OBJECTS:%%.o=%%.d)')\n_p('ifneq (,$("