pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
mame: add partial update to 0.253, doesn't build, reported upstream
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Thu Mar 30 19:23:51 2023 +0200
Changeset: 0e7fc1d4fcda2629d7146c3833b2653af11c929b
Modified Files:
Makefile
Added Files:
mame/DESCR
mame/Makefile
mame/PLIST
mame/TODO
mame/distinfo
mame/patches/patch-3rdparty_bx_src_thread.cpp
mame/patches/patch-3rdparty_genie_build_gmake.darwin_genie.make
mame/patches/patch-makefile
Log Message:
mame: add partial update to 0.253, doesn't build, reported upstream
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0e7fc1d4fcda2629d7146c3833b2653af11c929b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 6 +
mame/DESCR | 9 +
mame/Makefile | 127 ++++
mame/PLIST | 758 +++++++++++++++++++++
mame/TODO | 15 +
mame/distinfo | 8 +
mame/patches/patch-3rdparty_bx_src_thread.cpp | 17 +
...ch-3rdparty_genie_build_gmake.darwin_genie.make | 26 +
mame/patches/patch-makefile | 38 ++
9 files changed, 1004 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index b18787efbd..b3663d7c67 100644
--- a/Makefile
+++ b/Makefile
@@ -2258,6 +2258,7 @@ SUBDIR+= ltrace
SUBDIR+= ltsmin
SUBDIR+= lua-MessagePack
SUBDIR+= lua-htmlparser
+SUBDIR+= lua-language-server
SUBDIR+= lua-lbn
SUBDIR+= lua-ldoc
SUBDIR+= lua-luacheck
@@ -2297,6 +2298,7 @@ SUBDIR+= makepp
SUBDIR+= maker
SUBDIR+= malaga
SUBDIR+= maloc
+SUBDIR+= mame
SUBDIR+= man
SUBDIR+= man-db
SUBDIR+= manatee
@@ -5034,6 +5036,8 @@ SUBDIR+= ripe-rpsl-objectlibrary
SUBDIR+= ripit
SUBDIR+= ripole
SUBDIR+= rippled
+SUBDIR+= riscv64-none-elf-binutils
+SUBDIR+= riscv64-none-elf-gcc
SUBDIR+= rk
SUBDIR+= rlottie
SUBDIR+= rmilter
@@ -5644,6 +5648,7 @@ SUBDIR+= tex-zxjafbfont
SUBDIR+= tex-zxjafbfont-doc
SUBDIR+= tex-zxjatype
SUBDIR+= tex-zxjatype-doc
+SUBDIR+= texlab
SUBDIR+= texlive-collection-langcjk
SUBDIR+= texlive-collection-langjapanese
SUBDIR+= texlive-tlpdb
@@ -5762,6 +5767,7 @@ SUBDIR+= twittering-mode-git
SUBDIR+= txt2tags
SUBDIR+= typespeed
SUBDIR+= typhoon
+SUBDIR+= typst
SUBDIR+= u-boot
SUBDIR+= u-boot-full
SUBDIR+= u-boot-khadas-vim3
diff --git a/mame/DESCR b/mame/DESCR
new file mode 100644
index 0000000000..0dd9e45a74
--- /dev/null
+++ b/mame/DESCR
@@ -0,0 +1,9 @@
+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.
diff --git a/mame/Makefile b/mame/Makefile
new file mode 100644
index 0000000000..624498bdaa
--- /dev/null
+++ b/mame/Makefile
@@ -0,0 +1,127 @@
+# $NetBSD: Makefile,v 1.165 2023/02/22 11:15:21 wiz Exp $
+
+DISTNAME= mame-0.253
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_GITHUB:=mamedev/}
+GITHUB_TAG= ${DISTNAME:S/-//S/.//}
+
+MAINTAINER= wiz%NetBSD.org@localhost
+HOMEPAGE= https://www.mamedev.org/
+COMMENT= Multiple Arcade Machine Emulator
+LICENSE= modified-bsd AND gnu-gpl-v2
+
+DOCDIR= share/doc/mame
+SHAREDIR= share/mame
+INSTALLATION_DIRS= bin ${DOCDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man6
+INSTALLATION_DIRS+= ${SHAREDIR}/artwork/bgfx/border_blur
+INSTALLATION_DIRS+= ${SHAREDIR}/artwork/bgfx/chains/crt-geom ${SHAREDIR}/hash
+
+DEPENDS+= liberation-ttf-[0-9]*:../../fonts/liberation-ttf
+BUILD_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+
+USE_LANGUAGES= c99 c++
+GCC_REQD+= 7
+USE_TOOLS+= bsdtar gmake pkg-config
+UNLIMIT_RESOURCES+= datasize virtualsize
+MAKE_FILE= makefile
+EXTRACT_USING= bsdtar
+
+.include "../../mk/bsd.prefs.mk"
+
+MAKE_FLAGS+= PRECOMPILE=0
+# TODO: set differently when debugging?
+MAKE_FLAGS+= OPTIMIZE=2
+
+.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
+# \todo Arch detection for aarch64 fails, investigate why
+MAKE_FLAGS+= NOASM=1
+MAKE_FLAGS+= FORCE_DRC_C_BACKEND=1
+BUILDLINK_TRANSFORM+= rm:-m32
+BUILDLINK_TRANSFORM+= rm:-m64
+.endif
+
+# Need to use gnu++ instead of c++ to get __builtin_alloca() (!)
+BUILDLINK_TRANSFORM+= opt:-std=c++17:-std=gnu++17
+
+# -Werror is problematic
+MAKE_ENV+= NOWERROR=1
+# on Darwin, avoid SDL2.framework
+MAKE_ENV+= USE_LIBSDL=1
+
+# use pkgsrc libraries
+# boost-header's asio.hpp is not compatible as of mame-0.251/boost 1.81.0
+#MAKE_ENV+= USE_SYSTEM_LIB_ASIO=1
+MAKE_ENV+= USE_SYSTEM_LIB_EXPAT=1
+MAKE_ENV+= USE_SYSTEM_LIB_ZLIB=1
+MAKE_ENV+= USE_SYSTEM_LIB_JPEG=1
+MAKE_ENV+= USE_SYSTEM_LIB_FLAC=1
+MAKE_ENV+= USE_SYSTEM_LIB_LUA=1
+# use audio from SDL
+#MAKE_ENV+= USE_SYSTEM_LIB_PORTAUDIO=1
+# no portmidi package exists yet
+#MAKE_ENV+= USE_SYSTEM_LIB_PORTMIDI=1
+MAKE_ENV+= USE_SYSTEM_LIB_SQLITE3=1
+MAKE_ENV+= USE_SYSTEM_LIB_UTF8PROC=1
+MAKE_ENV+= USE_SYSTEM_LIB_GLM=1
+MAKE_ENV+= USE_SYSTEM_LIB_RAPIDJSON=1
+MAKE_ENV+= USE_SYSTEM_LIB_PUGIXML=1
+# find proper python binary
+MAKE_ENV+= PYTHON_EXECUTABLE=${PYTHONBIN}
+# don't depend on qt5
+MAKE_ENV+= USE_QTDEBUG=0
+# avoid midi for now
+#MAKE_ENV+= NO_USE_MIDI=1
+# build tools
+MAKE_ENV+= TOOLS=1
+
+.include "../../mk/endian.mk"
+.if ${MACHINE_ENDIAN} == "big"
+MAKE_ENV+= BIGENDIAN=1
+.endif
+
+LUA_VERSIONS_ACCEPTED= 53
+PYTHON_FOR_BUILD_ONLY= yes
+
+post-extract:
+ # will be chosen in preference to /usr/include/signal.h, but does not provide kill()
+ ${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/signal.h
+ # will be chosen in preference to /usr/include/dirent.h, but does not provide opendir() et al.
+ ${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/dirent.h
+ ${MV} ${WRKSRC}/3rdparty/genie/build/gmake.freebsd ${WRKSRC}/3rdparty/genie/build/gmake.bsd
+
+pre-build:
+ # problems with mame-specific png.h
+ ${RM} -f ${WRKDIR}/.buildlink/include/png*
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mame ${DESTDIR}${PREFIX}/bin/mame
+ set -e; \
+ for prg in castool chdman floptool imgtool jedutil ldresample ldverify \
+ nltool nlwav pngcmp regrep romcmp split srcclean unidasm; do \
+ ${INSTALL_PROGRAM} ${WRKSRC}/"$$prg" ${DESTDIR}${PREFIX}/bin; \
+ done
+ ${INSTALL_DATA} ${WRKSRC}/docs/man/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA} ${WRKSRC}/docs/man/*.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6
+ ${INSTALL_DATA} ${WRKSRC}/artwork/LICENSE ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork
+ ${INSTALL_DATA} ${WRKSRC}/artwork/*.* ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork
+ ${INSTALL_DATA} ${WRKSRC}/artwork/bgfx/border_blur/* ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork/bgfx/border_blur
+ ${INSTALL_DATA} ${WRKSRC}/artwork/bgfx/chains/*.* ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork/bgfx/chains
+ ${INSTALL_DATA} ${WRKSRC}/artwork/bgfx/chains/crt-geom/* ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork/bgfx/chains/crt-geom/
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.md ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/hash/* ${DESTDIR}${PREFIX}/${SHAREDIR}/hash
+
+.include "../../audio/flac/buildlink3.mk"
+.include "../../converters/utf8proc/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../graphics/glm/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../lang/lua/buildlink3.mk"
+.include "../../lang/python/pyversion.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../textproc/pugixml/buildlink3.mk"
+.include "../../textproc/rapidjson/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mame/PLIST b/mame/PLIST
new file mode 100644
index 0000000000..42ba6b4074
--- /dev/null
+++ b/mame/PLIST
@@ -0,0 +1,758 @@
+@comment $NetBSD: PLIST,v 1.74 2023/02/22 11:15:21 wiz Exp $
+bin/castool
+bin/chdman
+bin/floptool
+bin/imgtool
+bin/jedutil
+bin/ldresample
+bin/ldverify
+bin/mame
+bin/nltool
+bin/nlwav
+bin/pngcmp
+bin/regrep
+bin/romcmp
+bin/split
+bin/srcclean
+bin/unidasm
+man/man1/castool.1
+man/man1/chdman.1
+man/man1/floptool.1
+man/man1/imgtool.1
+man/man1/jedutil.1
+man/man1/ldplayer.1
+man/man1/ldresample.1
+man/man1/ldverify.1
+man/man1/romcmp.1
+man/man6/mame.6
+share/doc/mame/README.md
+share/mame/artwork/LICENSE
+share/mame/artwork/README.md
+share/mame/artwork/aperture-grille.png
+share/mame/artwork/aperture.png
+share/mame/artwork/aperture1x2rb.png
+share/mame/artwork/aperture1x3rb.png
+share/mame/artwork/aperture2x4bg.png
+share/mame/artwork/aperture2x4rb.png
+share/mame/artwork/aperture4x6.png
+share/mame/artwork/bgfx/border_blur/default.lay
+share/mame/artwork/bgfx/chains/crt-geom/add_alpha.py
+share/mame/artwork/bgfx/chains/crt-geom/aperture_1_2_bgr.png
+share/mame/artwork/bgfx/chains/crt-geom/aperture_1_4_rgb.png
+share/mame/artwork/bgfx/chains/crt-geom/aperture_2_4_rgb.png
+share/mame/artwork/bgfx/chains/crt-geom/aperture_2_5_bgr.png
+share/mame/artwork/bgfx/chains/crt-geom/aperture_3_6_rgb.png
+share/mame/artwork/bgfx/chains/crt-geom/delta_1_2x1_bgr.png
+share/mame/artwork/bgfx/chains/crt-geom/delta_1_4x1_rgb.png
+share/mame/artwork/bgfx/chains/crt-geom/delta_2_4x1_rgb.png
+share/mame/artwork/bgfx/chains/crt-geom/delta_2_4x2_rgb.png
+share/mame/artwork/bgfx/chains/crt-geom/none.png
+share/mame/artwork/bgfx/chains/crt-geom/slot_2_4x4_rgb.png
+share/mame/artwork/bgfx/chains/crt-geom/slot_2_5x4_bgr.png
+share/mame/artwork/bgfx/chains/crt-geom/slot_3_7x6_rgb.png
+share/mame/artwork/bgfx/chains/hq2x.png
+share/mame/artwork/bgfx/chains/hq3x.png
+share/mame/artwork/bgfx/chains/hq4x.png
+share/mame/artwork/dir.txt
+share/mame/artwork/lut-default.png
+share/mame/artwork/monochrome-chessboard.png
+share/mame/artwork/monochrome-matrix.png
+share/mame/artwork/scanlines.png
+share/mame/artwork/shadow-mask.png
+share/mame/artwork/slot-mask-aligned.png
+share/mame/artwork/slot-mask.png
+share/mame/artwork/white.png
+share/mame/hash/32x.xml
+share/mame/hash/3do_m2.xml
+share/mame/hash/README.md
+share/mame/hash/a2600.xml
+share/mame/hash/a2600_cass.xml
+share/mame/hash/a5200.hsi
+share/mame/hash/a5200.xml
+share/mame/hash/a7800.xml
+share/mame/hash/a800.xml
+share/mame/hash/a800_cass.xml
+share/mame/hash/a800_flop.xml
+share/mame/hash/abc1600_flop.xml
+share/mame/hash/abc800.xml
+share/mame/hash/abc800_hdd.xml
+share/mame/hash/abc806.xml
+share/mame/hash/abc80_cass.xml
+share/mame/hash/abc80_flop.xml
+share/mame/hash/acrnsys_flop.xml
+share/mame/hash/acrnsys_rom.xml
+share/mame/hash/adam_cart.xml
+share/mame/hash/adam_cass.xml
+share/mame/hash/adam_flop.xml
+share/mame/hash/advantage.xml
+share/mame/hash/advision.xml
+share/mame/hash/aim65_cart.xml
+share/mame/hash/aleste.xml
+share/mame/hash/alice32.xml
+share/mame/hash/alice90.xml
+share/mame/hash/alphasmart_kapps.xml
+share/mame/hash/alphatro_cart.xml
+share/mame/hash/alphatro_flop.xml
+share/mame/hash/altos5.xml
+share/mame/hash/altos8600.xml
+share/mame/hash/amiga_a1000.xml
+share/mame/hash/amiga_a3000.xml
+share/mame/hash/amiga_apps.xml
+share/mame/hash/amiga_demos.xml
+share/mame/hash/amiga_flop.xml
+share/mame/hash/amiga_hardware.xml
+share/mame/hash/amiga_hdd.xml
+share/mame/hash/amiga_workbench.xml
+share/mame/hash/amigaaga_flop.xml
+share/mame/hash/amigaecs_flop.xml
+share/mame/hash/amigaocs_flop.xml
+share/mame/hash/ampro.xml
+share/mame/hash/apc.xml
+share/mame/hash/apexc_cyl.xml
+share/mame/hash/apfimag_cass.xml
+share/mame/hash/apfm1000.xml
+share/mame/hash/apogee.xml
+share/mame/hash/apollo_ctape.xml
+share/mame/hash/apple1.xml
+share/mame/hash/apple2_cass.xml
+share/mame/hash/apple2_flop_clcracked.xml
+share/mame/hash/apple2_flop_misc.xml
+share/mame/hash/apple2_flop_orig.xml
+share/mame/hash/apple2gs_flop_clcracked.xml
+share/mame/hash/apple2gs_flop_misc.xml
+share/mame/hash/apple2gs_flop_orig.xml
+share/mame/hash/apple3.xml
+share/mame/hash/applix_flop.xml
+share/mame/hash/apricot_flop.xml
+share/mame/hash/apxen_flop.xml
+share/mame/hash/aquarius_cart.xml
+share/mame/hash/aquarius_cass.xml
+share/mame/hash/arb.xml
+share/mame/hash/arcadia.xml
+share/mame/hash/archimedes.xml
+share/mame/hash/archimedes_hdd.xml
+share/mame/hash/archimedes_rom.xml
+share/mame/hash/astrocde.xml
+share/mame/hash/atom_cass.xml
+share/mame/hash/atom_flop.xml
+share/mame/hash/atom_rom.xml
+share/mame/hash/attache.xml
+share/mame/hash/aussiebyte.xml
+share/mame/hash/b2m.xml
+share/mame/hash/basf7100.xml
+share/mame/hash/bbc_cass.xml
+share/mame/hash/bbc_flop_32016.xml
+share/mame/hash/bbc_flop_6502.xml
+share/mame/hash/bbc_flop_68000.xml
+share/mame/hash/bbc_flop_80186.xml
+share/mame/hash/bbc_flop_arm.xml
+share/mame/hash/bbc_flop_hybrid.xml
+share/mame/hash/bbc_flop_torch.xml
+share/mame/hash/bbc_flop_z80.xml
+share/mame/hash/bbc_hdd.xml
+share/mame/hash/bbc_rom.xml
+share/mame/hash/bbcb_flop.xml
+share/mame/hash/bbcb_flop_orig.xml
+share/mame/hash/bbcb_flop_us.xml
+share/mame/hash/bbcbc.xml
+share/mame/hash/bbcm_cart.xml
+share/mame/hash/bbcm_flop.xml
+share/mame/hash/bbcmc_flop.xml
+share/mame/hash/bdesignm_design_cart.xml
+share/mame/hash/bdesignm_game_cart.xml
+share/mame/hash/bk0010.xml
+share/mame/hash/bkrankp_cart.xml
+share/mame/hash/bml3_flop.xml
+share/mame/hash/bungo_flop.xml
+share/mame/hash/buzztime_cart.xml
+share/mame/hash/bw12.xml
+share/mame/hash/bw14.xml
+share/mame/hash/bw2.xml
+share/mame/hash/bx256hp_flop.xml
+share/mame/hash/c128_cart.xml
+share/mame/hash/c128_flop.xml
+share/mame/hash/c128_rom.xml
+share/mame/hash/c2color_cart.xml
+share/mame/hash/c64_cart.xml
+share/mame/hash/c64_cass.xml
+share/mame/hash/c64_flop_misc.xml
+share/mame/hash/c64_flop_orig.xml
+share/mame/hash/c65_flop.xml
+share/mame/hash/camplynx_cass.xml
+share/mame/hash/camplynx_flop.xml
+share/mame/hash/casio_rompack.xml
+share/mame/hash/casloopy.xml
+share/mame/hash/cbm2_cart.xml
+share/mame/hash/cbm2_flop.xml
+share/mame/hash/cbm8096_flop.xml
+share/mame/hash/cbm8296_flop.xml
+share/mame/hash/cc40_cart.xml
+share/mame/hash/cd32.xml
+share/mame/hash/cdi.xml
+share/mame/hash/cdtv.xml
+share/mame/hash/cecflop.xml
+share/mame/hash/cgenie_cass.xml
+share/mame/hash/cgenie_flop_rom.xml
+share/mame/hash/channelf.xml
+share/mame/hash/chessking_cart.xml
+share/mame/hash/chessmstdm.xml
+share/mame/hash/chip8_quik.xml
+share/mame/hash/clickstart_cart.xml
+share/mame/hash/clipper_flop.xml
+share/mame/hash/coco_cart.xml
+share/mame/hash/coco_flop.xml
+share/mame/hash/coleco.xml
+share/mame/hash/compclr2_flop.xml
+share/mame/hash/compis.xml
+share/mame/hash/comx35_flop.xml
+share/mame/hash/conchess_plymate.xml
+share/mame/hash/conchess_standard.xml
+share/mame/hash/copera.xml
+share/mame/hash/cpc_cass.xml
+share/mame/hash/cpc_flop.xml
+share/mame/hash/crvision.xml
+share/mame/hash/cx3000tc.xml
+share/mame/hash/dai_cass.xml
+share/mame/hash/database.xml
+share/mame/hash/dc.xml
+share/mame/hash/dgnalpha_flop.xml
+share/mame/hash/dgnbeta_flop.xml
+share/mame/hash/digiblast_cart.xml
+share/mame/hash/digilog320.xml
+share/mame/hash/dim68k.xml
+share/mame/hash/dmv.xml
+share/mame/hash/dps1.xml
+share/mame/hash/dragon_cart.xml
+share/mame/hash/dragon_cass.xml
+share/mame/hash/dragon_flex.xml
+share/mame/hash/dragon_flop.xml
+share/mame/hash/dragon_os9.xml
+share/mame/hash/e01_flop.xml
+share/mame/hash/easy_karaoke_cart.xml
+share/mame/hash/ec1841.xml
+share/mame/hash/einstein.xml
+share/mame/hash/einstein_rom.xml
+share/mame/hash/ekara_japan.xml
+share/mame/hash/ekara_japan_a.xml
+share/mame/hash/ekara_japan_ac.xml
+share/mame/hash/ekara_japan_bh.xml
+share/mame/hash/ekara_japan_d.xml
+share/mame/hash/ekara_japan_en.xml
+share/mame/hash/ekara_japan_g.xml
+share/mame/hash/ekara_japan_gk.xml
+share/mame/hash/ekara_japan_m.xml
+share/mame/hash/ekara_japan_p.xml
+share/mame/hash/ekara_japan_s.xml
+share/mame/hash/ekara_japan_sp.xml
+share/mame/hash/ekara_japan_web.xml
+share/mame/hash/ekara_pal.xml
+share/mame/hash/ekara_us.xml
+share/mame/hash/electron_cart.xml
+share/mame/hash/electron_cass.xml
+share/mame/hash/electron_flop.xml
+share/mame/hash/electron_rom.xml
+share/mame/hash/entex_sag.xml
+share/mame/hash/ep64_cart.xml
+share/mame/hash/ep64_cass.xml
+share/mame/hash/ep64_flop.xml
+share/mame/hash/epson_cpm.xml
+share/mame/hash/eti660_quik.xml
+share/mame/hash/evio.xml
+share/mame/hash/ews286_flop.xml
+share/mame/hash/excalibur64.xml
+share/mame/hash/exl100.xml
+share/mame/hash/famibox.xml
+share/mame/hash/famicom_cass.xml
+share/mame/hash/famicom_flop.xml
+share/mame/hash/fidel_msc.xml
+share/mame/hash/fidel_sc6.xml
+share/mame/hash/fidel_scc.xml
+share/mame/hash/fm77av.xml
+share/mame/hash/fm7_cass.xml
+share/mame/hash/fm7_disk.xml
+share/mame/hash/fm8_cass.xml
+share/mame/hash/fmtowns_cd.xml
+share/mame/hash/fmtowns_flop_cracked.xml
+share/mame/hash/fmtowns_flop_misc.xml
+share/mame/hash/fmtowns_flop_orig.xml
+share/mame/hash/galaxy.xml
+share/mame/hash/gamate.xml
+share/mame/hash/gameboy.xml
+share/mame/hash/gamecom.xml
+share/mame/hash/gamegear.xml
+share/mame/hash/gameking.xml
+share/mame/hash/gameking3.xml
+share/mame/hash/gamepock.xml
+share/mame/hash/gba.xml
+share/mame/hash/gba_ereader.xml
+share/mame/hash/gbcolor.xml
+share/mame/hash/gcslottv.xml
+share/mame/hash/ggm.xml
+share/mame/hash/gimix.xml
+share/mame/hash/gj4000.xml
+share/mame/hash/gjmovie.xml
+share/mame/hash/gjrstar.xml
+share/mame/hash/gl2000.xml
+share/mame/hash/gl6000sl.xml
+share/mame/hash/glcolor.xml
+share/mame/hash/glcx.xml
+share/mame/hash/gln.xml
+share/mame/hash/gls.xml
+share/mame/hash/gmaster.xml
+share/mame/hash/gp32.xml
+share/mame/hash/gtfore.xml
+share/mame/hash/guab.xml
+share/mame/hash/gx4000.xml
+share/mame/hash/h21.xml
+share/mame/hash/horizon.xml
+share/mame/hash/hp85_rom.xml
+share/mame/hash/hp86_rom.xml
+share/mame/hash/hp9825_rom.xml
+share/mame/hash/hp9831_rom.xml
+share/mame/hash/hp9835a_rom.xml
+share/mame/hash/hp9845a_rom.xml
+share/mame/hash/hp9845b_rom.xml
+share/mame/hash/hp9k3xx_cdrom.xml
+share/mame/hash/hp9k3xx_flop.xml
+share/mame/hash/hp9k3xx_hdd.xml
+share/mame/hash/hp_ipc.xml
+share/mame/hash/hp_ipc_rom.xml
+share/mame/hash/ht68k.xml
+share/mame/hash/hx20_rom.xml
+share/mame/hash/hyperscan.xml
+share/mame/hash/hyperscan_card.xml
+share/mame/hash/i7000_card.xml
+share/mame/hash/ibm5140.xml
+share/mame/hash/ibm5150.xml
+share/mame/hash/ibm5150_cass.xml
+share/mame/hash/ibm5150_hdd.xml
+share/mame/hash/ibm5170.xml
+share/mame/hash/ibm5170_cdrom.xml
+share/mame/hash/ibm5170_hdd.xml
+share/mame/hash/ibm6580.xml
+share/mame/hash/ibmpcjr_cart.xml
+share/mame/hash/ibmpcjr_flop.xml
+share/mame/hash/icanguit.xml
+share/mame/hash/icanpian.xml
+share/mame/hash/intellect02.xml
+share/mame/hash/interact.xml
+share/mame/hash/interpro.xml
+share/mame/hash/intv.hsi
+share/mame/hash/intv.xml
+share/mame/hash/intvecs.xml
+share/mame/hash/iq128.xml
+share/mame/hash/iq151_cart.xml
+share/mame/hash/iq151_flop.xml
+share/mame/hash/ique.xml
+share/mame/hash/iqunlim_cart.xml
+share/mame/hash/itt3030.xml
+share/mame/hash/jaguar.xml
+share/mame/hash/jakks_gamekey_dp.xml
+share/mame/hash/jakks_gamekey_dy.xml
+share/mame/hash/jakks_gamekey_mv.xml
+share/mame/hash/jakks_gamekey_nk.xml
+share/mame/hash/jakks_gamekey_nm.xml
+share/mame/hash/jakks_gamekey_sw.xml
+share/mame/hash/jazz.xml
+share/mame/hash/jb3000_flop.xml
+share/mame/hash/jpopira_jp.xml
+share/mame/hash/juicebox.xml
+share/mame/hash/juku.xml
+share/mame/hash/jupace_cass.xml
+share/mame/hash/jupace_snap.xml
+share/mame/hash/k28m2.xml
+share/mame/hash/kaypro.xml
+share/mame/hash/kc_cart.xml
+share/mame/hash/kc_cass.xml
+share/mame/hash/kc_flop.xml
+share/mame/hash/kim1_cass.xml
+share/mame/hash/korvet_flop.xml
+share/mame/hash/kpython2.xml
+share/mame/hash/lanteach.xml
+share/mame/hash/lantrans.xml
+share/mame/hash/laser2001_cart.xml
+share/mame/hash/laser2001_flop.xml
+share/mame/hash/leapfrog_didj_cart.xml
+share/mame/hash/leapfrog_iquest_cart.xml
+share/mame/hash/leapfrog_leappad_cart.xml
+share/mame/hash/leapfrog_ltleappad_cart.xml
+share/mame/hash/leapfrog_mfleappad_cart.xml
+share/mame/hash/leapfrog_zippity_cart.xml
+share/mame/hash/leapster.xml
+share/mame/hash/leapster_explorer_cart.xml
+share/mame/hash/lisa.xml
+share/mame/hash/lisa2.xml
+share/mame/hash/lk3000.xml
+share/mame/hash/lviv.xml
+share/mame/hash/lynx.xml
+share/mame/hash/m20.xml
+share/mame/hash/m24.xml
+share/mame/hash/m5_cart.xml
+share/mame/hash/m5_cass.xml
+share/mame/hash/m5_flop.xml
+share/mame/hash/mac_flop.xml
+share/mame/hash/mac_hdd.xml
+share/mame/hash/mac_hdflop.xml
+share/mame/hash/mbc200.xml
+share/mame/hash/mbc55x.xml
+share/mame/hash/mbee_cart.xml
+share/mame/hash/mbee_cass.xml
+share/mame/hash/mbee_flop.xml
+share/mame/hash/mbee_quik.xml
+share/mame/hash/mc10.xml
+share/mame/hash/mc1000_cass.xml
+share/mame/hash/mc1502_flop.xml
+share/mame/hash/md2_flop.xml
+share/mame/hash/megacd.xml
+share/mame/hash/megacdj.xml
+share/mame/hash/megadriv.xml
+share/mame/hash/megaduck.xml
+share/mame/hash/megapc.xml
+share/mame/hash/megatech.xml
+share/mame/hash/mephisto_mm1.xml
+share/mame/hash/mephisto_mm2.xml
+share/mame/hash/mephisto_mm4.xml
+share/mame/hash/mephisto_mm5.xml
+share/mame/hash/mephisto_smondial2.xml
+share/mame/hash/microvision.xml
+share/mame/hash/midi_flop.xml
+share/mame/hash/mikro80.xml
+share/mame/hash/mikrosha_cart.xml
+share/mame/hash/mikrosha_cass.xml
+share/mame/hash/mindset_flop.xml
+share/mame/hash/misterx.xml
+share/mame/hash/mk14_quik.xml
+share/mame/hash/mm1_flop.xml
+share/mame/hash/mo5_cart.xml
+share/mame/hash/mo5_cass.xml
+share/mame/hash/mo5_flop.xml
+share/mame/hash/mo5_qd.xml
+share/mame/hash/mo6_cass.xml
+share/mame/hash/mo6_flop.xml
+share/mame/hash/mobigo_cart.xml
+share/mame/hash/monon_color.xml
+share/mame/hash/mpf1_rom.xml
+share/mame/hash/mpu1000.xml
+share/mame/hash/mpz80.xml
+share/mame/hash/msx.hsi
+share/mame/hash/msx1_bee_card.xml
+share/mame/hash/msx1_cart.xml
+share/mame/hash/msx1_cass.xml
+share/mame/hash/msx1_flop.xml
+share/mame/hash/msx1_flop_525.xml
+share/mame/hash/msx2.hsi
+share/mame/hash/msx2_cart.xml
+share/mame/hash/msx2_cass.xml
+share/mame/hash/msx2_flop.xml
+share/mame/hash/msx2p_flop.xml
+share/mame/hash/msx_softcard.xml
+share/mame/hash/msxr_flop.xml
+share/mame/hash/mt65_cass.xml
+share/mame/hash/mt65_rom.xml
+share/mame/hash/mt65_snap.xml
+share/mame/hash/mtu130_flop.xml
+share/mame/hash/mtx_cart.xml
+share/mame/hash/mtx_cass.xml
+share/mame/hash/mtx_flop.xml
+share/mame/hash/mtx_hdd.xml
+share/mame/hash/mtx_rom.xml
+share/mame/hash/myvision.xml
+share/mame/hash/mz2000_cass.xml
+share/mame/hash/mz2000_flop.xml
+share/mame/hash/mz2200_cass.xml
+share/mame/hash/mz2500.xml
+share/mame/hash/mz700_cass.xml
+share/mame/hash/mz800_cass.xml
+share/mame/hash/n64.xml
+share/mame/hash/n64dd.xml
+share/mame/hash/nascom_flop.xml
+share/mame/hash/nascom_snap.xml
+share/mame/hash/nascom_socket.xml
+share/mame/hash/neocd.xml
+share/mame/hash/neogeo.xml
+share/mame/hash/nes.hsi
+share/mame/hash/nes.xml
+share/mame/hash/nes_ade.xml
+share/mame/hash/nes_datach.xml
+share/mame/hash/nes_kstudio.xml
+share/mame/hash/nes_ntbrom.xml
+share/mame/hash/nes_vt_cart.xml
+share/mame/hash/next.xml
+share/mame/hash/next_cdrom.xml
+share/mame/hash/next_hdd.xml
+share/mame/hash/ngp.xml
+share/mame/hash/ngpc.xml
+share/mame/hash/nimbus.xml
+share/mame/hash/novag_ssensor4.xml
+share/mame/hash/nuon.xml
+share/mame/hash/octopus.xml
+share/mame/hash/ondra.xml
+share/mame/hash/orao.xml
+share/mame/hash/orion_cart.xml
+share/mame/hash/orion_cass.xml
+share/mame/hash/orion_flop.xml
+share/mame/hash/orionpro_flop.xml
+share/mame/hash/osborne1.xml
+share/mame/hash/osborne2.xml
+share/mame/hash/p500_flop.xml
+share/mame/hash/partner_cass.xml
+share/mame/hash/partner_flop.xml
+share/mame/hash/pasogo.xml
+share/mame/hash/pasopia_cass.xml
+share/mame/hash/pb2000c.xml
+share/mame/hash/pc1000.xml
+share/mame/hash/pc1512_flop.xml
+share/mame/hash/pc1512_hdd.xml
+share/mame/hash/pc1640_flop.xml
+share/mame/hash/pc1640_hdd.xml
+share/mame/hash/pc200.xml
+share/mame/hash/pc6001_cart.xml
+share/mame/hash/pc8001_flop.xml
+share/mame/hash/pc8001mk2_flop.xml
+share/mame/hash/pc8001mk2sr_flop.xml
+share/mame/hash/pc8201.xml
+share/mame/hash/pc8801_cass.xml
+share/mame/hash/pc8801_cdrom.xml
+share/mame/hash/pc8801_flop.xml
+share/mame/hash/pc88va.xml
+share/mame/hash/pc98.xml
+share/mame/hash/pc98_cd.xml
+share/mame/hash/pcd_flop.xml
+share/mame/hash/pce.xml
+share/mame/hash/pce_tourvision.xml
+share/mame/hash/pcecd.xml
+share/mame/hash/pcfx.xml
+share/mame/hash/pcw.xml
+share/mame/hash/pcw16.xml
+share/mame/hash/pcx_flop.xml
+share/mame/hash/pdp1_ptp.xml
+share/mame/hash/pecom_cass.xml
+share/mame/hash/pegasus_cart.xml
+share/mame/hash/pencil2.xml
+share/mame/hash/pentagon_cass.xml
+share/mame/hash/pet_cass.xml
+share/mame/hash/pet_flop.xml
+share/mame/hash/pet_hdd.xml
+share/mame/hash/pet_quik.xml
+share/mame/hash/pet_rom.xml
+share/mame/hash/phc25_cass.xml
+share/mame/hash/pi_storyreader_cart.xml
+share/mame/hash/pi_storyreader_v2_cart.xml
+share/mame/hash/picno.xml
+share/mame/hash/pico.xml
+share/mame/hash/pippin.xml
+share/mame/hash/pippin_flop.xml
+share/mame/hash/playmaker.xml
+share/mame/hash/plus4_cart.xml
+share/mame/hash/plus4_cass.xml
+share/mame/hash/plus4_flop.xml
+share/mame/hash/pmd85_cass.xml
+share/mame/hash/pockchalv2.xml
+share/mame/hash/pockchalw.xml
+share/mame/hash/pofo.xml
+share/mame/hash/poisk1_flop.xml
+share/mame/hash/pokemini.xml
+share/mame/hash/poly_flop.xml
+share/mame/hash/princ.xml
+share/mame/hash/pro128_cart.xml
+share/mame/hash/pro128_cass.xml
+share/mame/hash/pro128_flop.xml
+share/mame/hash/pro128s_flop.xml
+share/mame/hash/prof180.xml
+share/mame/hash/prof80.xml
+share/mame/hash/psi98.xml
+share/mame/hash/psion1.xml
+share/mame/hash/psion2.xml
+share/mame/hash/psx.xml
+share/mame/hash/pt68k2.xml
+share/mame/hash/pv1000.xml
+share/mame/hash/pv2000.xml
+share/mame/hash/px4_cart.xml
+share/mame/hash/px8_cart.xml
+share/mame/hash/pyl601.xml
+share/mame/hash/ql_cart.xml
+share/mame/hash/ql_cass.xml
+share/mame/hash/ql_flop.xml
+share/mame/hash/quizwiz.xml
+share/mame/hash/qx10_flop.xml
+share/mame/hash/r8_card.xml
+share/mame/hash/r9751.xml
+share/mame/hash/radio86_cart.xml
+share/mame/hash/radio86_cass.xml
+share/mame/hash/rainbow.xml
+share/mame/hash/roland_tnsc1.xml
+share/mame/hash/rwtrntcs.xml
+share/mame/hash/rx78_cart.xml
+share/mame/hash/rx78_cass.xml
+share/mame/hash/rz1_cass.xml
+share/mame/hash/sagafox.xml
+share/mame/hash/sage2.xml
+share/mame/hash/saitek_egr.xml
+share/mame/hash/saitek_kso.xml
+share/mame/hash/saitek_schess.xml
+share/mame/hash/samcoupe_cass.xml
+share/mame/hash/samcoupe_flop.xml
+share/mame/hash/sat_cart.xml
+share/mame/hash/sat_vccart.xml
+share/mame/hash/saturn.xml
+share/mame/hash/sawatte.xml
+share/mame/hash/sbrain.xml
+share/mame/hash/sc3000_cart.xml
+share/mame/hash/sc3000_cass.xml
+share/mame/hash/scv.xml
+share/mame/hash/sdk85.xml
+share/mame/hash/sega_beena_cart.xml
+share/mame/hash/segacd.xml
+share/mame/hash/sf7000.xml
+share/mame/hash/sg1000.xml
+share/mame/hash/sgi_mips.xml
+share/mame/hash/sgi_mips_hdd.xml
+share/mame/hash/sgx.xml
+share/mame/hash/singingstarkaraoke_cart.xml
+share/mame/hash/sitcom.xml
+share/mame/hash/smarttv_cart.xml
+share/mame/hash/smc777.xml
+share/mame/hash/sms.xml
+share/mame/hash/snes.xml
+share/mame/hash/snes_bspack.xml
+share/mame/hash/snes_strom.xml
+share/mame/hash/snes_vkun.xml
+share/mame/hash/snotec.xml
+share/mame/hash/snread.xml
+share/mame/hash/snspell.xml
+share/mame/hash/socrates.xml
+share/mame/hash/softbox.xml
+share/mame/hash/softwarelist.dtd
+share/mame/hash/sol20_cass.xml
+share/mame/hash/sorcerer_cart.xml
+share/mame/hash/sorcerer_cass.xml
+share/mame/hash/sorcerer_flop.xml
+share/mame/hash/spc1000_cass.xml
+share/mame/hash/spc1500_cass.xml
+share/mame/hash/special_cass.xml
+share/mame/hash/special_flop.xml
+share/mame/hash/specpls3_flop.xml
+share/mame/hash/spectrum_betadisc_flop.xml
+share/mame/hash/spectrum_cart.xml
+share/mame/hash/spectrum_cass.xml
+share/mame/hash/spectrum_flop_opus.xml
+share/mame/hash/spectrum_mgt_flop.xml
+share/mame/hash/spectrum_microdrive.xml
+share/mame/hash/spectrum_wafadrive.xml
+share/mame/hash/sprachmg.xml
+share/mame/hash/squale_cart.xml
+share/mame/hash/ssem_quik.xml
+share/mame/hash/st_cart.xml
+share/mame/hash/st_flop.xml
+share/mame/hash/stepone_flop.xml
+share/mame/hash/studio2.xml
+share/mame/hash/stv.xml
+share/mame/hash/super6.xml
+share/mame/hash/super80_cass.xml
+share/mame/hash/super80_flop.xml
+share/mame/hash/superpet_flop.xml
+share/mame/hash/supracan.xml
+share/mame/hash/sv8000.xml
+share/mame/hash/svi318_cart.xml
+share/mame/hash/svi318_cass.xml
+share/mame/hash/svi318_flop.xml
+share/mame/hash/svision.xml
+share/mame/hash/svmu.xml
+share/mame/hash/t1000.xml
+share/mame/hash/tandy200.xml
+share/mame/hash/tandy2k.xml
+share/mame/hash/tandy6k.xml
+share/mame/hash/tc4.xml
+share/mame/hash/tdv2324.xml
+share/mame/hash/tek4052_cart.xml
+share/mame/hash/telestory_cart.xml
+share/mame/hash/tg16.xml
+share/mame/hash/ti74_cart.xml
+share/mame/hash/ti95_cart.xml
+share/mame/hash/ti99_cart.xml
+share/mame/hash/tiki100.xml
+share/mame/hash/timex_cass.xml
+share/mame/hash/timex_dock.xml
+share/mame/hash/tntell.xml
+share/mame/hash/to770_cart.xml
+share/mame/hash/to770a_cart.xml
+share/mame/hash/to7_cart.xml
+share/mame/hash/to7_cass.xml
+share/mame/hash/to7_qd.xml
+share/mame/hash/to8_cass.xml
+share/mame/hash/to8_qd.xml
+share/mame/hash/to_flop.xml
+share/mame/hash/triton_rom.xml
+share/mame/hash/trs80_cass.xml
+share/mame/hash/trs80_flop.xml
+share/mame/hash/trs80_quik.xml
+share/mame/hash/trs80m2.xml
+share/mame/hash/trsm100.xml
+share/mame/hash/tsconf_betadisc_flop.xml
+share/mame/hash/ttwist_brainquest_cart.xml
+share/mame/hash/turboextreme_cart.xml
+share/mame/hash/tutor.xml
+share/mame/hash/tvc_cart.xml
+share/mame/hash/tvc_cass.xml
+share/mame/hash/tvc_flop.xml
+share/mame/hash/tvgogo.xml
+share/mame/hash/tx0_ptp.xml
+share/mame/hash/u110_card.xml
+share/mame/hash/unichamp.xml
+share/mame/hash/ut88.xml
+share/mame/hash/uzebox.xml
+share/mame/hash/v1050_flop.xml
+share/mame/hash/v1050_hdd.xml
+share/mame/hash/vbaby_cart.xml
+share/mame/hash/vboy.xml
+share/mame/hash/vc4000.xml
+share/mame/hash/vector06_cart.xml
+share/mame/hash/vector06_flop.xml
+share/mame/hash/vectrex.xml
+share/mame/hash/vg5k.xml
+share/mame/hash/vgmplay.xml
+share/mame/hash/vic10.xml
+share/mame/hash/vic1001_cart.xml
+share/mame/hash/vic1001_cass.xml
+share/mame/hash/vic1001_flop.xml
+share/mame/hash/victor9k_flop.xml
+share/mame/hash/vidbrain.xml
+share/mame/hash/videopac.xml
+share/mame/hash/vii.xml
+share/mame/hash/vip.xml
+share/mame/hash/vis.xml
+share/mame/hash/visicom.xml
+share/mame/hash/vixen.xml
+share/mame/hash/vsmile_cart.xml
+share/mame/hash/vsmile_cd.xml
+share/mame/hash/vsmileb_cart.xml
+share/mame/hash/vsmilem_cart.xml
+share/mame/hash/vtech2_cass.xml
+share/mame/hash/vtech_innotab_cart.xml
+share/mame/hash/vtech_innotv_cart.xml
+share/mame/hash/vtech_storio_cart.xml
+share/mame/hash/vz_cass.xml
+share/mame/hash/vz_snap.xml
+share/mame/hash/wangpc.xml
+share/mame/hash/waveterm.xml
+share/mame/hash/wicat.xml
+share/mame/hash/wizard_cart.xml
+share/mame/hash/wmbullet.xml
+share/mame/hash/wscolor.xml
+share/mame/hash/wswan.xml
+share/mame/hash/x07_card.xml
+share/mame/hash/x07_cass.xml
+share/mame/hash/x1_cass.xml
+share/mame/hash/x1_flop.xml
+share/mame/hash/x37_flop.xml
+share/mame/hash/x68k_flop.xml
+share/mame/hash/xegs.xml
+share/mame/hash/xerox820.xml
+share/mame/hash/xerox820ii.xml
+share/mame/hash/z80clock.xml
+share/mame/hash/z80ne_cass.xml
+share/mame/hash/z80ne_flop.xml
+share/mame/hash/z88_cart.xml
+share/mame/hash/zorba.xml
+share/mame/hash/zx80_cass.xml
+share/mame/hash/zx81_cass.xml
diff --git a/mame/TODO b/mame/TODO
new file mode 100644
index 0000000000..6872a6c93c
--- /dev/null
+++ b/mame/TODO
@@ -0,0 +1,15 @@
+https://github.com/mamedev/mame/issues/11049
+
+Compressing src/mame/layout/zodiac.lay...
+Compressing src/mame/layout/zoo.lay...
+.../emulators/mame/work/mame-mame0253/scripts/toolchain.lua:65: attempt to concatenate a nil value (field '?')
+stack traceback:
+ .../emulators/mame/work/mame-mame0253/scripts/toolchain.lua:65: in function 'androidToolchainRoot'
+ .../emulators/mame/work/mame-mame0253/scripts/toolchain.lua:494: in function 'toolchain'
+ ...atch/emulators/mame/work/mame-mame0253/scripts/genie.lua:1150: in main chunk
+ [C]: in upvalue 'builtin_dofile'
+ [string "premake = { }..."]:109: in function 'dofile'
+ [string "_WORKING_DIR = os.getcwd()..."]:46: in function '_premake_main'
+gmake: *** [makefile:1424: build/projects/sdl/mame/gmake-netbsd/Makefile] Error 1
+gmake: *** Waiting for unfinished jobs....
+*** Error code 2
diff --git a/mame/distinfo b/mame/distinfo
new file mode 100644
index 0000000000..54675ac505
--- /dev/null
+++ b/mame/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.129 2023/02/27 11:23:22 wiz Exp $
+
+BLAKE2s (mame-0.253.tar.gz) = a3775d177193d3584e297f162e8b67251203505380548aa1a472ad3d2517cc06
+SHA512 (mame-0.253.tar.gz) = 0cd9a95ef7e79a3d870ad7dc8d4d857e7001e067d10449c94f1ed4e83eb9e930343d4f2fa2a33ce3fd980f8202ffcac2a776c333b8db337120958da8eaeb5dc7
+Size (mame-0.253.tar.gz) = 203177249 bytes
+SHA1 (patch-3rdparty_bx_src_thread.cpp) = 91d7aa74dbe5e8e73594580ce0c16846f4a0d7b1
+SHA1 (patch-3rdparty_genie_build_gmake.darwin_genie.make) = bb2e8c06d4b5f5869fb48e06390d5ca94a190056
+SHA1 (patch-makefile) = 343fac4d165438a26e2e8077216db1c6c46a5d1e
diff --git a/mame/patches/patch-3rdparty_bx_src_thread.cpp b/mame/patches/patch-3rdparty_bx_src_thread.cpp
new file mode 100644
index 0000000000..f836e722c8
--- /dev/null
+++ b/mame/patches/patch-3rdparty_bx_src_thread.cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-3rdparty_bx_src_thread.cpp,v 1.5 2023/02/27 11:23:23 wiz Exp $
+
+NetBSD does not provide pthread_np.h.
+https://github.com/bkaradzic/bx/issues/295
+
+--- 3rdparty/bx/src/thread.cpp.orig 2023-02-21 17:59:53.000000000 +0000
++++ 3rdparty/bx/src/thread.cpp
+@@ -25,7 +25,9 @@
+ || BX_PLATFORM_NX
+ # include <pthread.h>
+ # if BX_PLATFORM_BSD
++#ifndef __NetBSD__
+ # include <pthread_np.h>
++#endif
+ # endif // BX_PLATFORM_BSD
+ # if BX_PLATFORM_LINUX && (BX_CRT_GLIBC < 21200)
+ # include <sys/prctl.h>
diff --git a/mame/patches/patch-3rdparty_genie_build_gmake.darwin_genie.make b/mame/patches/patch-3rdparty_genie_build_gmake.darwin_genie.make
new file mode 100644
index 0000000000..5880cc04db
--- /dev/null
+++ b/mame/patches/patch-3rdparty_genie_build_gmake.darwin_genie.make
@@ -0,0 +1,26 @@
+$NetBSD: patch-3rdparty_genie_build_gmake.darwin_genie.make,v 1.3 2019/11/08 09:44:17 wiz Exp $
+
+Do not set optimization level, nor minimal macOS version.
+
+--- 3rdparty/genie/build/gmake.darwin/genie.make.orig 2019-10-29 17:16:37.000000000 +0000
++++ 3rdparty/genie/build/gmake.darwin/genie.make
+@@ -49,13 +49,13 @@ ifeq ($(config),release)
+ DEFINES += -DNDEBUG -DLUA_COMPAT_MODULE -DLUA_USE_MACOSX
+ INCLUDES += -I"../../src/host/lua-5.3.0/src"
+ ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES)
+- ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM) -mmacosx-version-min=10.6
+- ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM) -mmacosx-version-min=10.6
+- ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM) -mmacosx-version-min=10.6
+- ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM) -mmacosx-version-min=10.6
+- ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM) -mmacosx-version-min=10.6
++ ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM)
++ ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM)
++ ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM)
++ ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM)
++ ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM)
+ ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
+- ALL_LDFLAGS += $(LDFLAGS) -L"." -mmacosx-version-min=10.6
++ ALL_LDFLAGS += $(LDFLAGS) -L"."
+ LIBDEPS +=
+ LDDEPS +=
+ LDRESP =
diff --git a/mame/patches/patch-makefile b/mame/patches/patch-makefile
new file mode 100644
index 0000000000..6ac1fd47b2
--- /dev/null
+++ b/mame/patches/patch-makefile
@@ -0,0 +1,38 @@
+$NetBSD: patch-makefile,v 1.24 2020/10/28 16:56:24 wiz Exp $
+
+Treat all BSDs the same.
+
+Do not set compiler optimization.
+
+--- makefile.orig 2020-10-27 01:00:36.000000000 +0000
++++ makefile
+@@ -200,15 +200,15 @@ GENIEOS := bsd
+ endif
+ ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD)
+ OS := freebsd
+-GENIEOS := freebsd
++GENIEOS := bsd
+ endif
+ ifeq ($(firstword $(filter NetBSD,$(UNAME))),NetBSD)
+ OS := netbsd
+-GENIEOS := freebsd
++GENIEOS := bsd
+ endif
+ ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD)
+ OS := openbsd
+-GENIEOS := freebsd
++GENIEOS := bsd
+ endif
+ ifeq ($(firstword $(filter Darwin,$(UNAME))),Darwin)
+ OS := macosx
+@@ -599,10 +599,6 @@ PROFILER =
+ SYMBOLS = 1
+ endif
+
+-# specify a default optimization level if none explicitly stated
+-ifndef OPTIMIZE
+-OPTIMIZE = 3
+-endif
+
+ # set the symbols level
+ ifdef SYMBOLS
Home |
Main Index |
Thread Index |
Old Index