head 1.8; access; symbols pkgsrc-2026Q1:1.8.0.8 pkgsrc-2026Q1-base:1.8 pkgsrc-2025Q4:1.8.0.6 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.4 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.8.0.2 pkgsrc-2025Q2-base:1.8 pkgsrc-2025Q1:1.6.0.12 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.10 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.8 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.6 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.4 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.2 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.5.0.2 pkgsrc-2023Q3-base:1.5 pkgsrc-2016Q1:1.3.0.2 pkgsrc-2016Q1-base:1.3; locks; strict; comment @# @; 1.8 date 2025.04.30.15.50.53; author wiz; state Exp; branches; next 1.7; commitid vnQEtpM71KvEH5TF; 1.7 date 2025.04.02.12.20.11; author wiz; state Exp; branches; next 1.6; commitid enFnrDhu3frbrtPF; 1.6 date 2023.11.02.01.51.58; author wiz; state Exp; branches; next 1.5; commitid P9ucTrqm5OFRzYKE; 1.5 date 2023.09.05.12.15.57; author nia; state Exp; branches; next 1.4; commitid vvrcqNBzeJXDTzDE; 1.4 date 2016.05.26.09.02.16; author wiz; state dead; branches; next 1.3; commitid 4z0eCRLos8yigY7z; 1.3 date 2016.03.04.12.47.13; author wiz; state Exp; branches; next 1.2; commitid 8hLgmYYUwztrakXy; 1.2 date 2015.07.29.12.03.40; author wiz; state dead; branches; next 1.1; commitid nIPRht7ee4ZpYavy; 1.1 date 2015.07.14.20.14.49; author wiz; state Exp; branches; next ; commitid PBwTPrWRQ8yGaity; desc @@ 1.8 log @mame: update to 0.277. Have you been wondering what MAME 0.277 will bring? Well, now you can find out! First of all, we've added support for compiling on 64-bit ARM-based systems running Windows 11 using the MSYS2 CLANGARM64 environment. Updates to included third-party libraries should resolve some issues people were having with new compilers and development environments. In improvements that you can see, Konami GX blending effects are now looking much nicer, Sega Model 2 3D geometry is behaving better, and some remaining issues with Philips CD-i graphics decoding have been fixed. You may be able to hear improved sound emulation in some Famicom, WonderSwan, and Game Boy games, too. If that's too subtle, you should be able to hear the difference in the DMX and LinnDrum percussion synthesisers. There's a big update for the Apple II and Macintosh floppy disk software lists this month. A lot of Macintosh NuBus cards have been overhauled as well, so let us know if we've inadvertently broken your virtual Macintosh setup. There are plenty of other software list additions, including a batch of tapes for Sinclair computers. @ text @$NetBSD: patch-scripts_src_3rdparty.lua,v 1.7 2025/04/02 12:20:11 wiz Exp $ NetBSD has arc4random too. Disable SSE usage in bimg - it seems to assume availability of AVX2 intrinsics? Compiling 3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_decompress_symbolic.cpp... In file included from /usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.5.0/include/immintrin.h:35, from ../../../../../3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_mathlib.h:85, from ../../../../../3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_internal.h:34, from ../../../../../3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_decompress_symbolic.cpp:22: /usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.5.0/include/tmmintrin.h: In function 'vint4 vtable_8bt_32bi(vint4, vint4, vint4)': /usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.5.0/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch --- scripts/src/3rdparty.lua.orig 2025-04-29 07:11:59.000000000 +0000 +++ scripts/src/3rdparty.lua @@@@ -57,7 +57,7 @@@@ if _OPTIONS["targetos"]=="windows" then "__USE_MINGW_ANSI_STDIO=0", } end -if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="freebsd" then +if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="freebsd" or _OPTIONS["targetos"]=="netbsd" then defines { "HAVE_ARC4RANDOM", } @@@@ -1410,7 +1410,7 @@@@ project "bimg" configuration { "x64", "mingw*", "not arm64" } defines { "ASTCENC_AVX=0", - "ASTCENC_SSE=" .. ssever, + "ASTCENC_SSE=0" } configuration { } end @ 1.7 log @mame: update to 0.276. MAME 0.276 has arrived just in time for the end of March, and it’s full of emulation goodness! Remember that 64-bit ARMv8 recompiler we added a few months ago? Well now it’s even faster! This release fixes graphical issues in Konami GX arcade games and Philips CD-i software. We’ve added several IGS gambling games, as well as Chinese versions of some Dynax mahjong games. The LinnDrum percussion synthesiser is now working with interactive controls and sound output. And speaking of sound, audio emulation issues in several arcade games have been fixed. PC-88VA emulation is progressing, with fixes for multiple graphics modes. A few more peripherals for the TI-99 computer family are now supported. There have been a few CPU/DSP fixes that should improve Sega 3D arcade game emulation. Psion hand-helds now correctly detect more memory configurations and give better-looking video output. We’ve also fixed some issues with CHD creation, floppy disk image handling, and XML system information output. Windows users now get an option to have debugger windows appear in the taskbar and window switcher. @ text @d1 1 a1 1 $NetBSD: patch-scripts_src_3rdparty.lua,v 1.6 2023/11/02 01:51:58 wiz Exp $ d16 1 a16 1 --- scripts/src/3rdparty.lua.orig 2025-03-29 23:51:08.000000000 +0000 d27 9 a35 9 @@@@ -1398,7 +1398,7 @@@@ project "bimg" configuration { "x64", "mingw*", "not arm64" } defines { "ASTCENC_AVX=0", - "ASTCENC_SSE=20", + "ASTCENC_SSE=0", } configuration { } @ 1.6 log @mame: update to 0.260. MAME 0.260 Some long-anticipated updates landed in October, making MAME 0.260 a very exciting release! Firstly, there are some general updates to MAME itself. After a few false starts, MAME now supports bgfx video output with Wayland on Linux. As requested by users, you can finally use delta CHD files for clone systems and software items. This allows for major disk space savings in some cases when you have multiple versions of a system or software item. There’s also an updated version of PortAudio included. Two very different systems from Casio have been promoted to working this month. The first is the CZ-101 compact keyboard synthesiser. It used Phase Distortion Synthesis, which was Casio’s patent-avoiding answer to Yamaha’s DX series. To help you load patches, MAME can now feed SysEx files to emulated MIDI input ports. The other is the Loopy, a game console released exclusively in Japan and marketed primarily to girls. While sound output, the sticker printer, and the frame grabber accessory are not emulated (yet), you can try out the system’s entire library of eleven software titles. Several Korean arcade games were added this month, including a Solitaire card game from F2 System that uses a dedicated control panel and features some rather disturbing pre-rendered 3D animations. A few Merit games were added as well. Other improvements include more emulated NuBus and PDS cards for Macs, Cumana DFS disk image support for the Acorn Electron, and support for an MSX Flash cartridge. MAME 0.259 It looks like MAME 0.259 just squeaked in before the end of September! As usual, it’s packed with exciting stuff. One thing we know some of you have been patiently waiting for is emulation of Namco System 12 games using the CDXA board and CD-ROM storage: Truck Kyosokyoku and the interesting but unsuccessful Um Jammer Lammy NOW! The work to support these games also puts us in a better position to support systems that use SH-2 CPUs with different combinations of onboard peripherals. Also added this month are two Konami LCD games, Bandai’s two-player tabletop U-Boat game, and three arcade games on dgPix hardware. On a completely different front, VME-based systems in MAME have had a major overhaul. The system of backplanes and cards is more faithfully reproduced. Speaking of cards, another ZXBUS storage interface card has been emulated for enhanced ZX Spectrum derivatives with a suitable slot. In other card-related news, work on PC video cards is still progressing, with the added benefit of fixing MegaTouch XL 6000 graphics this month. While we’re talking about graphics, the Sharp X68000 had a few glitches fixed, too. Initial support for built-in Ethernet has been implemented for several Macintosh Quadra systems, and some bugs in the onboard video emulation for MC68040-based Macs were fixed. Also in Apple news, the Apple III now runs at a more realistic speed, and there’s been a little progress on the first-generation PowerMac family. MAME now has support for hard-sectored floppy formats, which were a thing back in the days of big 8" drives, and a few issues with how TD0 format disk images are handled were fixed. Also related to floppy disks, the poorly-received TIB Disc Drive DD-001 that attached to the Commodore 64’s cartridge port is now emulated. Finally, players curious about CPS-2 games can now twiddle the debugging DIP switches that were apparently present on development systems. @ text @d1 1 a1 1 $NetBSD: patch-scripts_src_3rdparty.lua,v 1.5 2023/09/05 12:15:57 nia Exp $ d16 1 a16 1 --- scripts/src/3rdparty.lua.orig 2023-10-23 15:53:41.000000000 +0000 d18 2 a19 2 @@@@ -49,7 +49,7 @@@@ else "BYTEORDER=1234", d27 1 a27 1 @@@@ -1288,7 +1288,7 @@@@ project "bimg" @ 1.5 log @mame: Couple of little fixes for NetBSD @ text @d1 1 a1 1 $NetBSD$ d16 1 a16 1 --- scripts/src/3rdparty.lua.orig 2023-07-27 16:00:24.000000000 +0000 d27 2 a28 2 @@@@ -1280,7 +1280,7 @@@@ project "bimg" configuration { "x64", "mingw*" } @ 1.4 log @Update mame to 0.174. Remove merged patches. We're pleased to announce the release of MAME 0.174! This new release includes some exciting newly-playable machines, including the Tiger Game.com handheld and the ultra-rare Seibu Kaihatsu title, Metal Freezer. Meanwhile, the Apple 2 driver now supports the Mockingboard 4C card, and the regressions in the IT Eagle (Golden Tee Fore) driver's colors from the previous release have been fixed. Last but not least, there should be better support for DirectInput 8 on Windows, including supporting older game controllers which previously only worked using the DirectInput 7 module. If you still have a controller which DirectInput 8 does not support that you regularly use, please contact us so that we know what controllers still do not work. @ text @d1 1 a1 1 $NetBSD: patch-scripts_src_3rdparty.lua,v 1.3 2016/03/04 12:47:13 wiz Exp $ d3 14 a16 1 --- scripts/src/3rdparty.lua.orig 2016-02-24 07:02:17.000000000 +0000 d18 15 a32 2 @@@@ -1153,6 +1153,15 @@@@ project "uv" MAME_DIR .. "3rdparty/libuv/src/unix/kqueue.c", d34 1 a34 10 end + if _OPTIONS["targetos"]=="netbsd" then + files { + MAME_DIR .. "3rdparty/libuv/src/unix/netbsd.c", + MAME_DIR .. "3rdparty/libuv/src/unix/kqueue.c", + } + links { + "kvm", + } + end a35 2 if (_OPTIONS["SHADOW_CHECK"]=="1") then removebuildoptions { @ 1.3 log @Update mame to 0.171. 0.171 ------- MAMETesters Bugs Fixed ---------------------- - 06137: [Crash/Freeze] (maygay1bsw.c) Many sets in maygay1bsw.cpp: Several games are crashing while "initializing.." (Osso) - 06135: [Interface] ROM-less games cannot be started from internal UI - 02327: [Graphics] (megasys1.c) chimerab: Priorty PROM is missing. (David Haywood) - 06134: [Misc.] all games with LED outputs: ledutil no longer works (micko) - 06139: [Color/Palette] (x68k.c) x68k [akumajo]: Some elements turn blue (crazyc) Source Changes -------------- -New video chip support : Thomson EF9364 / Sescosem SFF96364 [Jean-Francois DEL NERO] -Pyon Pyon Jump: [Roberto Fresca] Create derivative machine driver. Hooked the V9938 Yamaha VDP. Added the DIP switches bank #1 Hooked the system input ports. Added support for Yamaha YM2149. Decoupled the YM2149 data read. Correct bankswitching. Added sound latch & output port. Version added to the game description. Proper inputs + DIP switches support. Second CPU IRQ ack. Promoted to working. OKI M5205 ADPCM samples support. -pulsarlb: Added extra bios [Robbbert] -Modernized sound volume setting code in various Atari drivers [AJR] -Fixed F3 soft-reset on Arkanoid sets with MCU [Lord Nightmare] -osdmini: Fixes build issues [Stuart Carnie] -Replaced osd_lock with std::mutex [Miodrag Milanovic] -Software list entries can now supply slot option defaults [AJR] -i8271: Unload head after programmed revolutions [Nigel Barnes] -apple2: Fix parallel card ACK handling, Print Shop almost works with the lx810l now. [R. Belmont] -Nibble driver: Rewrote the whole driver. Added video hardware, preliminary machine driver and memory map. Decoded the graphics. [Roberto Fresca] -Made anonymous timer non-anonymous in arkanoid.cpp, fixes savestates for the sets using the original Taito MCU code [Lord Nightmare] -Allow load/saved state slots to be bound to joystick buttons [Victor Vasiliev] -Dumped "Dead or Alive 2 (Rev A)", match existent set, fix game and EPRROM names [Smitdogg, The Dumping Union] -Dumped "King of Fighters XI" EN, match JP one, add notes [Brizzo] -Substantial improvements to Web Audio sound backend for Emscripten port. [Grant Galitz] -disound: Don't crash on state load when the mixer is disabled by lack of inputs (misconfiguration or missing samples) [O. Galibert] -Initial import of MEWUI to MAME [Maurizio Petrarota] -External DATs grouped into a single view. [Maurizio Petrarota] -New video chip support: Thomson EF9364 / Sescosem SFF96364 [Jean-Francois DEL NERO] -z80.cpp: Added a debug mechanism for /WAIT pin assertion mechanism (enable with STALLS_ON_WAIT_ASSERT in CPU core), and hooked it up to Night Gal driver as a quick example. [Angelo Salese] -Make octal flag part of address_space/address_space_config [AJR] -Added unknown NAOMI development(?) board BOOT ROM [coolmod] -Initial support for BGFX [Ryan Holtz, Dario Manesku, Branimir Karadic, Miodrag Milanovic] -Significant speed improvements to the BGFX renderer. [Ryan Holtz] -Added basic JSON-based single-pass shader effect support to BGFX renderer. [Ryan Holtz] -Added hat trick hero 93 PALs [Alex Cmaylo] -catnmous: graphical improvements [Vernimark, Vas Crabb] * Redumped Cat and Mouse colour sprite ROM as the correct size * Implement sprite ROM banking * Improve colour palette using resistor values from board photographs -laserbat: fix inadvertently swapped TMS organ chip clocks (fixes music) [Vas Crabb] -Make Zaccaria 1B11107 and 1B11142 boards devices and share common parts [Vas Crabb] -apple1: Completely rewrote the driver in modern idioms. All functionality should be the same. [R. Belmont] -Descrambled the ROM on the Xerox NoteTaker, and mapped it in the correct areas to make it start to boot. [Lord Nightmare] -Xerox NoteTaker: Corrected CPU Clock speed, and map at least some of RAM [Lord Nightmare] -electron: Added cassette softlist and implemented BREAK key [Nigel Barnes] -Xerox NoteTaker: Corrected RAM amount. Attached the pic8259 interrupt controller, though no interrupts are attached to that yet. Added documentation of i/o writes during the boot process. [Lord Nightmare] -vigilant.cpp: Added video timing PROM. [Pasky, caius] -Videosnaps patch (additional file to write: gamename.inp.timecode) [Michele Fochi] Added new options: * [no]exit_after_playback (default=no) * [no]record_input (default=no) Added new UI shortcut to save current timecode (default F12) Translated variable names and comments to english language -Sord m5 driver update [Ales Dlabac] added support for RAM expansions EM-5,64KBI,64KBF,64KRX added m5p_brno mod Sord m5+1024kB ramdisk+cp/m 2 cart slots -Moon Light (Set 2): Fix the program ROM addressing. This fix the corrupt graphics in the double-Up feature. [Roberto Fresca] -Moved JANGOU_BLITTER into a device [Angelo Salese] -NCS8105 ADCX opcode is actually an ADDX, fixes gfx garbage in nightgal.cpp [Angelo Salese] -Corrected ROM labels and removed endian-swap during descramble for notetaker in favor of loading ROMs the other way round. Add ROM locations. [Lord Nightmare] -Xerox NoteTaker: Implement ROM/RAM overlay as per schematics. Documented Address map and part of I/O map. [Lord Nightmare] -Note that one of the buccaneers proms matches the vigilante video sync prom [caius, David Haywood] -Moon Light: Rearranged and split by program. This generated new sets due to the hidden extra programs in the program ROMs. [Roberto Fresca] -Xerox NoteTaker: Added the IO Processor firmware v1.50 as an alt bios after typing it from the assembly source listing on bitsavers. Added two PROMs as NO_DUMP. Updated comments and history a bit, but needs further improvement. [Lord Nightmare] -Updated Xerox NoteTaker documentation and history section, with cited sources. [Lord Nightmare] -Cherry Master v1.10: Fixed inputs / DIP switches. [Roberto Fresca] -Xerox NoteTaker: Finished documenting the I/O CPU's I/O ports, updated history documentation a bit more [Lord Nightmare] -Figured out algorithm and replaced SnowBoard Championship lookup table with proper emulation of device [Samuel Neves & Peter Wilhelmsen] -chihiro.c: Redumped "Sega Network Taisen Mahjong MJ 2 (Rev G)" [ANY] Re-parented set -mitchell.cpp: Dumped a blockjoy board and noted a rom label difference [Andrea Palazzetti] -snotec.xml: Added 3 new cart dumps. [TeamEurope] -Extended LUA API [Jeffrey Clark] -Support for the AMPAL18P8 to the jedutil tool. [Kevin Eshbach] -Improved cross compile support [Jeffrey Clark] -Hp9845: Added tape driver [F. Ulivi] -r9751: Add more DMA registers for serial and floppy [Brandon Munger] -slapstic: One small step toward slapstic modernization [AJR] * Make chip number part of device configuration, not init param * Correct mainpcb slapstic number in racedrivpan * Remove many unused slapstics -c64_cart.xml, c128_cart.xml: Added some diagnostic carts. [World of Jani] -COM5016/COM8116 Baud Generator: Added a bunch more divisor tables and notes [Lord Nightmare] -Apollo changes: [Hans Ostermeyer] * Unified logging format in associated devices * Use correct raw video modes -Xerox NoteTaker: Finished IOCPU memory map documentation. Hooked up the two UARTS. Begin hookup of the screen/CRTC. Fixed an issue with writes to ROM-mapped areas shadowing to RAM. Added 960KHz xtal for the keyboard UART. [Lord Nightmare] -AY-3-1015 UART: Fixed two swapped pin functions. [Lord Nightmare] -Added multi-language support for MAME [Miodrag Milanovic] -sq1: Much-improved LCD and front panel button support. [Parduz, R. Belmont] -weddingr: better input port descriptions [Vas Crabb] -Added Chinese Simplified and Chinese Traditional translation [YuiFAN] -Added German translation [Raf Tacker] -Added Japanese translation [Fujix] -Added Italian translation [Angelo Salese,Antonio Paradossi,Fabio Priuli] -Added Portuguese (Brazil) translation [Ashura-X] -pacman.cpp, meadwttl.cpp: small fix of game years for Novomatic's Cannon Ball and Meadows' Meadows 4 in 1, respectively, to synchronize with history.dat [Antonio Paradossi] @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to 0.164. The usual changes. @ text @d1 1 a1 1 $NetBSD: patch-scripts_src_3rdparty.lua,v 1.1 2015/07/14 20:14:49 wiz Exp $ d3 1 a3 3 Add NetBSD "support" for portmidi. --- scripts/src/3rdparty.lua.orig 2015-06-24 09:53:30.000000000 +0000 d5 2 a6 2 @@@@ -534,6 +534,13 @@@@ project "portmidi" MAME_DIR .. "3rdparty/portmidi/porttime/ptlinux.c", d11 5 a15 3 + MAME_DIR .. "3rdparty/portmidi/pm_linux/pmlinux.c", + MAME_DIR .. "3rdparty/portmidi/pm_linux/finddefault.c", + MAME_DIR .. "3rdparty/portmidi/porttime/ptlinux.c", a17 6 if _OPTIONS["targetos"]=="macosx" then files { MAME_DIR .. "3rdparty/portmidi/pm_mac/pmmac.c", @@@@ -591,6 +598,11 @@@@ project "bgfx" MAME_DIR .. "3rdparty/bx/include/compat/freebsd", } d19 2 a20 8 + configuration { "netbsd" } + includedirs { + MAME_DIR .. "3rdparty/bx/include/compat/freebsd", + } + configuration { "gmake" } buildoptions { "-Wno-uninitialized", @ 1.1 log @Update to 0.163. Major change compared to previous 0.159: MESS is now part of MAME. Otherwise, the usual improvements and new drivers. @ text @d1 1 a1 1 $NetBSD$ @