summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
Diffstat (limited to 'emulators')
-rw-r--r--emulators/openmsx/DESCR16
-rw-r--r--emulators/openmsx/Makefile40
-rw-r--r--emulators/openmsx/PLIST374
-rw-r--r--emulators/openmsx/distinfo6
-rw-r--r--emulators/openmsx/files/platform-netbsd.mk30
-rw-r--r--emulators/openmsx/patches/patch-aa13
-rw-r--r--emulators/openmsx/patches/patch-ab15
7 files changed, 494 insertions, 0 deletions
diff --git a/emulators/openmsx/DESCR b/emulators/openmsx/DESCR
new file mode 100644
index 00000000000..2465310a3b1
--- /dev/null
+++ b/emulators/openmsx/DESCR
@@ -0,0 +1,16 @@
+openMSX, the open source MSX emulator that tries to achieve near-perfect
+emulation by using a novel emulation model.
+
+Hardware emulated:
+
+ o almost all MSX systems, except for some details.
+ o Different CPU clock speeds, including those for the Panasonic
+ MSX2+ machines.
+ o Almost all known cartridge mapper types via autodetection or the
+ included ROM database.
+ o Many MSX storage (disk/SRAM) systems.
+ o kanji JIS ROM 1 and 2.
+ o Mouse and joystick (with option to use the keyboard as joystick).
+ o rensha turbo auto fire support.
+
+And more!
diff --git a/emulators/openmsx/Makefile b/emulators/openmsx/Makefile
new file mode 100644
index 00000000000..7123318d96f
--- /dev/null
+++ b/emulators/openmsx/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/05/29 11:28:43 xtraeme Exp $
+#
+
+DISTNAME= openmsx-0.4.0
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openmsx/}
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= http://openmsx.sourceforge.net/
+COMMENT= MSX emulator that aims for perfection
+
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+USE_LANGUAGES= c c++
+USE_X11= yes
+HAS_CONFIGURE= yes
+
+MAKEFILE= GNUmakefile
+CONFIGURE_ENV+= OPENMSX_FLAVOUR=pkgsrc
+MAKE_ENV+= OPENMSX_FLAVOUR=pkgsrc
+
+post-extract:
+ @${CP} ${FILESDIR}/platform-netbsd.mk ${WRKSRC}/build
+ @${ECHO_MSG} "OPENMSX_STRIP:=true" > \
+ ${WRKSRC}/build/flavour-pkgsrc.mk
+
+SUBST_CLASSES= prefix
+SUBST_STAGE.prefix= post-patch
+SUBST_FILES.prefix= build/custom.mk
+SUBST_SED.prefix= -e "s,/opt/openMSX,${PREFIX}/openmsx,"
+SUBST_MESSAGE.prefix= "Fixing installation directory."
+
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/SDL_image/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/openmsx/PLIST b/emulators/openmsx/PLIST
new file mode 100644
index 00000000000..482228ce54c
--- /dev/null
+++ b/emulators/openmsx/PLIST
@@ -0,0 +1,374 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/29 11:28:46 xtraeme Exp $
+openmsx/Contrib/README.cbios
+openmsx/Contrib/cbios/CB_MAIN.BIN
+openmsx/Contrib/cbios/CB_SH.BIN
+openmsx/Contrib/cbios/CB_SUB.BIN
+openmsx/Contrib/cbios/cbios.en.txt
+openmsx/Contrib/cbios/cbios.txt
+openmsx/bin/openmsx
+openmsx/doc/AUTHORS
+openmsx/doc/GPL
+openmsx/doc/README
+openmsx/doc/after-bussum-FAQ.txt
+openmsx/doc/commands.txt
+openmsx/doc/exampleconfigs.xml
+openmsx/doc/manual/compile.html
+openmsx/doc/manual/index.html
+openmsx/doc/manual/manual-minty.css
+openmsx/doc/manual/manual-purple.css
+openmsx/doc/manual/manual.css
+openmsx/doc/manual/setup.html
+openmsx/doc/manual/user.html
+openmsx/doc/release-history.txt
+openmsx/doc/release-notes.txt
+openmsx/share/extensions/Panasonic_FS-CA1/hardwareconfig.xml
+openmsx/share/extensions/Panasonic_FS-CA1/roms/SHA1SUMS
+openmsx/share/extensions/Philips_NMS_1205/hardwareconfig.xml
+openmsx/share/extensions/Philips_NMS_1205/roms/SHA1SUMS
+openmsx/share/extensions/Sony_HBD-F1/hardwareconfig.xml
+openmsx/share/extensions/Sony_HBD-F1/roms/SHA1SUMS
+openmsx/share/extensions/Sony_HBI-55/hardwareconfig.xml
+openmsx/share/extensions/Sony_HBK-30/hardwareconfig.xml
+openmsx/share/extensions/Sony_HBK-30/roms/SHA1SUMS
+openmsx/share/extensions/Toshiba_HX-MU900/hardwareconfig.xml
+openmsx/share/extensions/Toshiba_HX-MU900/roms/SHA1SUMS
+openmsx/share/extensions/audio/hardwareconfig.xml
+openmsx/share/extensions/debugdevice/hardwareconfig.xml
+openmsx/share/extensions/fmpac/hardwareconfig.xml
+openmsx/share/extensions/fmpac/roms/SHA1SUMS
+openmsx/share/extensions/gfx9000/hardwareconfig.xml
+openmsx/share/extensions/ide/hardwareconfig.xml
+openmsx/share/extensions/ide/roms/SHA1SUMS
+openmsx/share/extensions/mbstereo/hardwareconfig.xml
+openmsx/share/extensions/mbstereo/roms/SHA1SUMS
+openmsx/share/extensions/megaram/hardwareconfig.xml
+openmsx/share/extensions/moonsound/hardwareconfig.xml
+openmsx/share/extensions/moonsound/roms/SHA1SUMS
+openmsx/share/extensions/msxdos2/hardwareconfig.xml
+openmsx/share/extensions/msxdos2/roms/SHA1SUMS
+openmsx/share/extensions/pac/hardwareconfig.xml
+openmsx/share/extensions/ram1mb/hardwareconfig.xml
+openmsx/share/extensions/ram2mb/hardwareconfig.xml
+openmsx/share/extensions/ram4mb/hardwareconfig.xml
+openmsx/share/extensions/ram512k/hardwareconfig.xml
+openmsx/share/extensions/rs232/hardwareconfig.xml
+openmsx/share/extensions/rs232/roms/SHA1SUMS
+openmsx/share/extensions/scc+/hardwareconfig.xml
+openmsx/share/extensions/scc/hardwareconfig.xml
+openmsx/share/hardwareconfig.dtd
+openmsx/share/init.tcl
+openmsx/share/keymaps/keymap.default
+openmsx/share/keymaps/keymap.rus2eng
+openmsx/share/machines/Boosted_MSX2_EN/README
+openmsx/share/machines/Boosted_MSX2_EN/hardwareconfig.xml
+openmsx/share/machines/Boosted_MSX2_EN/roms/README
+openmsx/share/machines/Canon_V-20/hardwareconfig.xml
+openmsx/share/machines/Canon_V-20/roms/SHA1SUMS
+openmsx/share/machines/Daewoo_CPC-300/hardwareconfig.xml
+openmsx/share/machines/Daewoo_CPC-300/roms/SHA1SUMS
+openmsx/share/machines/Daewoo_CPC-400S/hardwareconfig.xml
+openmsx/share/machines/Daewoo_CPC-400S/roms/SHA1SUMS
+openmsx/share/machines/Daewoo_DPC-100/hardwareconfig.xml
+openmsx/share/machines/Daewoo_DPC-100/roms/SHA1SUMS
+openmsx/share/machines/Daewoo_DPC-180/hardwareconfig.xml
+openmsx/share/machines/Daewoo_DPC-180/roms/SHA1SUMS
+openmsx/share/machines/Daewoo_DPC-200/hardwareconfig.xml
+openmsx/share/machines/Daewoo_DPC-200/roms/SHA1SUMS
+openmsx/share/machines/Goldstar_FC-200/hardwareconfig.xml
+openmsx/share/machines/Goldstar_FC-200/roms/SHA1SUMS
+openmsx/share/machines/Gradiente_Expert_1.0/hardwareconfig.xml
+openmsx/share/machines/Gradiente_Expert_1.0/roms/SHA1SUMS
+openmsx/share/machines/Gradiente_Expert_1.1/hardwareconfig.xml
+openmsx/share/machines/Gradiente_Expert_1.1/roms/SHA1SUMS
+openmsx/share/machines/Gradiente_Expert_DDPlus/hardwareconfig.xml
+openmsx/share/machines/Gradiente_Expert_DDPlus/roms/SHA1SUMS
+openmsx/share/machines/Gradiente_Expert_Plus/hardwareconfig.xml
+openmsx/share/machines/Gradiente_Expert_Plus/roms/SHA1SUMS
+openmsx/share/machines/JVC_HC-7GB/hardwareconfig.xml
+openmsx/share/machines/JVC_HC-7GB/roms/SHA1SUMS
+openmsx/share/machines/Mitsubishi_ML-F80/hardwareconfig.xml
+openmsx/share/machines/Mitsubishi_ML-F80/roms/SHA1SUMS
+openmsx/share/machines/Mitsubishi_ML-FX1/hardwareconfig.xml
+openmsx/share/machines/Mitsubishi_ML-FX1/roms/SHA1SUMS
+openmsx/share/machines/National_CF-1200/hardwareconfig.xml
+openmsx/share/machines/National_CF-1200/roms/SHA1SUMS
+openmsx/share/machines/National_CF-2000/hardwareconfig.xml
+openmsx/share/machines/National_CF-2000/roms/SHA1SUMS
+openmsx/share/machines/National_CF-2700/hardwareconfig.xml
+openmsx/share/machines/National_CF-2700/roms/SHA1SUMS
+openmsx/share/machines/National_CF-3000/hardwareconfig.xml
+openmsx/share/machines/National_CF-3000/roms/SHA1SUMS
+openmsx/share/machines/National_CF-3300/hardwareconfig.xml
+openmsx/share/machines/National_CF-3300/roms/SHA1SUMS
+openmsx/share/machines/National_FS-1300/hardwareconfig.xml
+openmsx/share/machines/National_FS-1300/roms/SHA1SUMS
+openmsx/share/machines/National_FS-4000/hardwareconfig.xml
+openmsx/share/machines/National_FS-4000/roms/SHA1SUMS
+openmsx/share/machines/National_FS-4500/hardwareconfig.xml
+openmsx/share/machines/National_FS-4500/roms/SHA1SUMS
+openmsx/share/machines/National_FS-4600/hardwareconfig.xml
+openmsx/share/machines/National_FS-4600/roms/SHA1SUMS
+openmsx/share/machines/National_FS-4700/hardwareconfig.xml
+openmsx/share/machines/National_FS-4700/roms/SHA1SUMS
+openmsx/share/machines/National_FS-5000/hardwareconfig.xml
+openmsx/share/machines/National_FS-5000/roms/SHA1SUMS
+openmsx/share/machines/National_FS-5500F1/hardwareconfig.xml
+openmsx/share/machines/National_FS-5500F1/roms/SHA1SUMS
+openmsx/share/machines/National_FS-5500F2/hardwareconfig.xml
+openmsx/share/machines/National_FS-5500F2/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1F/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1F/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1FM/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1FM/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1FX/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1FX/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1GT/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1GT/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1MK2/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1MK2/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1ST/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1ST/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1WSX/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1WSX/roms/SHA1SUMS
+openmsx/share/machines/Panasonic_FS-A1WX/hardwareconfig.xml
+openmsx/share/machines/Panasonic_FS-A1WX/roms/SHA1SUMS
+openmsx/share/machines/Philips_NMS_8220/hardwareconfig.xml
+openmsx/share/machines/Philips_NMS_8220/roms/SHA1SUMS
+openmsx/share/machines/Philips_NMS_8245/hardwareconfig.xml
+openmsx/share/machines/Philips_NMS_8245/roms/SHA1SUMS
+openmsx/share/machines/Philips_NMS_8250/hardwareconfig.xml
+openmsx/share/machines/Philips_NMS_8250/roms/SHA1SUMS
+openmsx/share/machines/Philips_NMS_8255/hardwareconfig.xml
+openmsx/share/machines/Philips_NMS_8255/roms/SHA1SUMS
+openmsx/share/machines/Philips_VG_8020/hardwareconfig.xml
+openmsx/share/machines/Philips_VG_8020/roms/SHA1SUMS
+openmsx/share/machines/Philips_VG_8230/hardwareconfig.xml
+openmsx/share/machines/Philips_VG_8230/roms/SHA1SUMS
+openmsx/share/machines/Philips_VG_8235/hardwareconfig.xml
+openmsx/share/machines/Philips_VG_8235/roms/SHA1SUMS
+openmsx/share/machines/SHA1SUMS
+openmsx/share/machines/Sanyo_MPC100/hardwareconfig.xml
+openmsx/share/machines/Sanyo_MPC100/roms/SHA1SUMS
+openmsx/share/machines/Sanyo_PHC-35J/hardwareconfig.xml
+openmsx/share/machines/Sanyo_PHC-35J/roms/SHA1SUMS
+openmsx/share/machines/Sanyo_PHC-70FD/hardwareconfig.xml
+openmsx/share/machines/Sanyo_PHC-70FD/roms/SHA1SUMS
+openmsx/share/machines/Sanyo_PHC-70FD2/hardwareconfig.xml
+openmsx/share/machines/Sanyo_PHC-70FD2/roms/SHA1SUMS
+openmsx/share/machines/Sharp_Epcom_HotBit_1.1/hardwareconfig.xml
+openmsx/share/machines/Sharp_Epcom_HotBit_1.1/roms/SHA1SUMS
+openmsx/share/machines/Sharp_Epcom_HotBit_1.2/hardwareconfig.xml
+openmsx/share/machines/Sharp_Epcom_HotBit_1.2/roms/SHA1SUMS
+openmsx/share/machines/Sony_HB-101P/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-201P/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-201P/roms/SHA1SUMS
+openmsx/share/machines/Sony_HB-501P/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-501P/roms/SHA1SUMS
+openmsx/share/machines/Sony_HB-75P/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-75P/roms/SHA1SUMS
+openmsx/share/machines/Sony_HB-F1/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-F1/roms/SHA1SUMS
+openmsx/share/machines/Sony_HB-F1XD/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-F1XD/roms/SHA1SUMS
+openmsx/share/machines/Sony_HB-F500P/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-F500P/roms/SHA1SUMS
+openmsx/share/machines/Sony_HB-F900/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-F900/roms/SHA1SUMS
+openmsx/share/machines/Sony_HB-F9P/hardwareconfig.xml
+openmsx/share/machines/Sony_HB-F9P/roms/SHA1SUMS
+openmsx/share/machines/Spectravideo_SVI-728/hardwareconfig.xml
+openmsx/share/machines/Spectravideo_SVI-728/roms/SHA1SUMS
+openmsx/share/machines/Toshiba_HX-10/hardwareconfig.xml
+openmsx/share/machines/Toshiba_HX-10/roms/SHA1SUMS
+openmsx/share/machines/cbios-msx1/hardwareconfig.xml
+openmsx/share/machines/cbios-msx2/hardwareconfig.xml
+openmsx/share/machines/msx1
+openmsx/share/machines/msx2
+openmsx/share/machines/msx2plus
+openmsx/share/machines/turbor
+openmsx/share/romdb.dtd
+openmsx/share/romdb.xml
+openmsx/share/scripts/multi_screenshot.tcl
+openmsx/share/scripts/save_debuggable.tcl
+openmsx/share/settings.xml
+openmsx/share/skins/ConsoleBackground.png
+openmsx/share/skins/ConsoleBackground1.png
+openmsx/share/skins/ConsoleBackground2.png
+openmsx/share/skins/ConsoleBackground3.png
+openmsx/share/skins/ConsoleBackground4.png
+openmsx/share/skins/ConsoleBackground5.png
+openmsx/share/skins/ConsoleFont.png
+openmsx/share/skins/ConsoleFont1.png
+openmsx/share/skins/ConsoleFontRave.png
+openmsx/share/skins/ConsoleFontRaveL.png
+@dirrm openmsx/share/skins
+@dirrm openmsx/share/scripts
+@dirrm openmsx/share/machines/cbios-msx2
+@dirrm openmsx/share/machines/cbios-msx1
+@dirrm openmsx/share/machines/Toshiba_HX-10/roms
+@dirrm openmsx/share/machines/Toshiba_HX-10
+@dirrm openmsx/share/machines/Spectravideo_SVI-728/roms
+@dirrm openmsx/share/machines/Spectravideo_SVI-728
+@dirrm openmsx/share/machines/Sony_HB-F9P/roms
+@dirrm openmsx/share/machines/Sony_HB-F9P
+@dirrm openmsx/share/machines/Sony_HB-F900/roms
+@dirrm openmsx/share/machines/Sony_HB-F900
+@dirrm openmsx/share/machines/Sony_HB-F500P/roms
+@dirrm openmsx/share/machines/Sony_HB-F500P
+@dirrm openmsx/share/machines/Sony_HB-F1XD/roms
+@dirrm openmsx/share/machines/Sony_HB-F1XD
+@dirrm openmsx/share/machines/Sony_HB-F1/roms
+@dirrm openmsx/share/machines/Sony_HB-F1
+@dirrm openmsx/share/machines/Sony_HB-75P/roms
+@dirrm openmsx/share/machines/Sony_HB-75P
+@dirrm openmsx/share/machines/Sony_HB-501P/roms
+@dirrm openmsx/share/machines/Sony_HB-501P
+@dirrm openmsx/share/machines/Sony_HB-201P/roms
+@dirrm openmsx/share/machines/Sony_HB-201P
+@dirrm openmsx/share/machines/Sony_HB-101P
+@dirrm openmsx/share/machines/Sharp_Epcom_HotBit_1.2/roms
+@dirrm openmsx/share/machines/Sharp_Epcom_HotBit_1.2
+@dirrm openmsx/share/machines/Sharp_Epcom_HotBit_1.1/roms
+@dirrm openmsx/share/machines/Sharp_Epcom_HotBit_1.1
+@dirrm openmsx/share/machines/Sanyo_PHC-70FD2/roms
+@dirrm openmsx/share/machines/Sanyo_PHC-70FD2
+@dirrm openmsx/share/machines/Sanyo_PHC-70FD/roms
+@dirrm openmsx/share/machines/Sanyo_PHC-70FD
+@dirrm openmsx/share/machines/Sanyo_PHC-35J/roms
+@dirrm openmsx/share/machines/Sanyo_PHC-35J
+@dirrm openmsx/share/machines/Sanyo_MPC100/roms
+@dirrm openmsx/share/machines/Sanyo_MPC100
+@dirrm openmsx/share/machines/Philips_VG_8235/roms
+@dirrm openmsx/share/machines/Philips_VG_8235
+@dirrm openmsx/share/machines/Philips_VG_8230/roms
+@dirrm openmsx/share/machines/Philips_VG_8230
+@dirrm openmsx/share/machines/Philips_VG_8020/roms
+@dirrm openmsx/share/machines/Philips_VG_8020
+@dirrm openmsx/share/machines/Philips_NMS_8255/roms
+@dirrm openmsx/share/machines/Philips_NMS_8255
+@dirrm openmsx/share/machines/Philips_NMS_8250/roms
+@dirrm openmsx/share/machines/Philips_NMS_8250
+@dirrm openmsx/share/machines/Philips_NMS_8245/roms
+@dirrm openmsx/share/machines/Philips_NMS_8245
+@dirrm openmsx/share/machines/Philips_NMS_8220/roms
+@dirrm openmsx/share/machines/Philips_NMS_8220
+@dirrm openmsx/share/machines/Panasonic_FS-A1WX/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1WX
+@dirrm openmsx/share/machines/Panasonic_FS-A1WSX/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1WSX
+@dirrm openmsx/share/machines/Panasonic_FS-A1ST/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1ST
+@dirrm openmsx/share/machines/Panasonic_FS-A1MK2/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1MK2
+@dirrm openmsx/share/machines/Panasonic_FS-A1GT/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1GT
+@dirrm openmsx/share/machines/Panasonic_FS-A1FX/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1FX
+@dirrm openmsx/share/machines/Panasonic_FS-A1FM/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1FM
+@dirrm openmsx/share/machines/Panasonic_FS-A1F/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1F
+@dirrm openmsx/share/machines/Panasonic_FS-A1/roms
+@dirrm openmsx/share/machines/Panasonic_FS-A1
+@dirrm openmsx/share/machines/National_FS-5500F2/roms
+@dirrm openmsx/share/machines/National_FS-5500F2
+@dirrm openmsx/share/machines/National_FS-5500F1/roms
+@dirrm openmsx/share/machines/National_FS-5500F1
+@dirrm openmsx/share/machines/National_FS-5000/roms
+@dirrm openmsx/share/machines/National_FS-5000
+@dirrm openmsx/share/machines/National_FS-4700/roms
+@dirrm openmsx/share/machines/National_FS-4700
+@dirrm openmsx/share/machines/National_FS-4600/roms
+@dirrm openmsx/share/machines/National_FS-4600
+@dirrm openmsx/share/machines/National_FS-4500/roms
+@dirrm openmsx/share/machines/National_FS-4500
+@dirrm openmsx/share/machines/National_FS-4000/roms
+@dirrm openmsx/share/machines/National_FS-4000
+@dirrm openmsx/share/machines/National_FS-1300/roms
+@dirrm openmsx/share/machines/National_FS-1300
+@dirrm openmsx/share/machines/National_CF-3300/roms
+@dirrm openmsx/share/machines/National_CF-3300
+@dirrm openmsx/share/machines/National_CF-3000/roms
+@dirrm openmsx/share/machines/National_CF-3000
+@dirrm openmsx/share/machines/National_CF-2700/roms
+@dirrm openmsx/share/machines/National_CF-2700
+@dirrm openmsx/share/machines/National_CF-2000/roms
+@dirrm openmsx/share/machines/National_CF-2000
+@dirrm openmsx/share/machines/National_CF-1200/roms
+@dirrm openmsx/share/machines/National_CF-1200
+@dirrm openmsx/share/machines/Mitsubishi_ML-FX1/roms
+@dirrm openmsx/share/machines/Mitsubishi_ML-FX1
+@dirrm openmsx/share/machines/Mitsubishi_ML-F80/roms
+@dirrm openmsx/share/machines/Mitsubishi_ML-F80
+@dirrm openmsx/share/machines/JVC_HC-7GB/roms
+@dirrm openmsx/share/machines/JVC_HC-7GB
+@dirrm openmsx/share/machines/Gradiente_Expert_Plus/roms
+@dirrm openmsx/share/machines/Gradiente_Expert_Plus
+@dirrm openmsx/share/machines/Gradiente_Expert_DDPlus/roms
+@dirrm openmsx/share/machines/Gradiente_Expert_DDPlus
+@dirrm openmsx/share/machines/Gradiente_Expert_1.1/roms
+@dirrm openmsx/share/machines/Gradiente_Expert_1.1
+@dirrm openmsx/share/machines/Gradiente_Expert_1.0/roms
+@dirrm openmsx/share/machines/Gradiente_Expert_1.0
+@dirrm openmsx/share/machines/Goldstar_FC-200/roms
+@dirrm openmsx/share/machines/Goldstar_FC-200
+@dirrm openmsx/share/machines/Daewoo_DPC-200/roms
+@dirrm openmsx/share/machines/Daewoo_DPC-200
+@dirrm openmsx/share/machines/Daewoo_DPC-180/roms
+@dirrm openmsx/share/machines/Daewoo_DPC-180
+@dirrm openmsx/share/machines/Daewoo_DPC-100/roms
+@dirrm openmsx/share/machines/Daewoo_DPC-100
+@dirrm openmsx/share/machines/Daewoo_CPC-400S/roms
+@dirrm openmsx/share/machines/Daewoo_CPC-400S
+@dirrm openmsx/share/machines/Daewoo_CPC-300/roms
+@dirrm openmsx/share/machines/Daewoo_CPC-300
+@dirrm openmsx/share/machines/Canon_V-20/roms
+@dirrm openmsx/share/machines/Canon_V-20
+@dirrm openmsx/share/machines/Boosted_MSX2_EN/roms
+@dirrm openmsx/share/machines/Boosted_MSX2_EN
+@dirrm openmsx/share/machines
+@dirrm openmsx/share/keymaps
+@dirrm openmsx/share/extensions/scc+
+@dirrm openmsx/share/extensions/scc
+@dirrm openmsx/share/extensions/rs232/roms
+@dirrm openmsx/share/extensions/rs232
+@dirrm openmsx/share/extensions/ram512k
+@dirrm openmsx/share/extensions/ram4mb
+@dirrm openmsx/share/extensions/ram2mb
+@dirrm openmsx/share/extensions/ram1mb
+@dirrm openmsx/share/extensions/pac
+@dirrm openmsx/share/extensions/msxdos2/roms
+@dirrm openmsx/share/extensions/msxdos2
+@dirrm openmsx/share/extensions/moonsound/roms
+@dirrm openmsx/share/extensions/moonsound
+@dirrm openmsx/share/extensions/megaram
+@dirrm openmsx/share/extensions/mbstereo/roms
+@dirrm openmsx/share/extensions/mbstereo
+@dirrm openmsx/share/extensions/ide/roms
+@dirrm openmsx/share/extensions/ide
+@dirrm openmsx/share/extensions/gfx9000
+@dirrm openmsx/share/extensions/fmpac/roms
+@dirrm openmsx/share/extensions/fmpac
+@dirrm openmsx/share/extensions/debugdevice
+@dirrm openmsx/share/extensions/audio
+@dirrm openmsx/share/extensions/Toshiba_HX-MU900/roms
+@dirrm openmsx/share/extensions/Toshiba_HX-MU900
+@dirrm openmsx/share/extensions/Sony_HBK-30/roms
+@dirrm openmsx/share/extensions/Sony_HBK-30
+@dirrm openmsx/share/extensions/Sony_HBI-55
+@dirrm openmsx/share/extensions/Sony_HBD-F1/roms
+@dirrm openmsx/share/extensions/Sony_HBD-F1
+@dirrm openmsx/share/extensions/Philips_NMS_1205/roms
+@dirrm openmsx/share/extensions/Philips_NMS_1205
+@dirrm openmsx/share/extensions/Panasonic_FS-CA1/roms
+@dirrm openmsx/share/extensions/Panasonic_FS-CA1
+@dirrm openmsx/share/extensions
+@dirrm openmsx/share
+@dirrm openmsx/doc/manual
+@dirrm openmsx/doc
+@dirrm openmsx/bin
+@dirrm openmsx/Contrib/cbios
+@dirrm openmsx/Contrib
+@dirrm openmsx
diff --git a/emulators/openmsx/distinfo b/emulators/openmsx/distinfo
new file mode 100644
index 00000000000..4543f7b2870
--- /dev/null
+++ b/emulators/openmsx/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/05/29 11:28:46 xtraeme Exp $
+
+SHA1 (openmsx-0.4.0.tar.gz) = ed1f30b0d34581f6364a5e59a7a08bc5ae09255a
+Size (openmsx-0.4.0.tar.gz) = 853981 bytes
+SHA1 (patch-aa) = 9a418f63fef096b7a575a57a636b29538eb2bf82
+SHA1 (patch-ab) = 20173313a729bbdc978d7d8edfb642167a51ec16
diff --git a/emulators/openmsx/files/platform-netbsd.mk b/emulators/openmsx/files/platform-netbsd.mk
new file mode 100644
index 00000000000..b39f282c0af
--- /dev/null
+++ b/emulators/openmsx/files/platform-netbsd.mk
@@ -0,0 +1,30 @@
+# Configuration file for NetBSD.
+
+# Does platform support symlinks?
+USE_SYMLINK:=true
+
+# Default compiler.
+OPENMSX_CXX?=$(CXX)
+
+# File name extension of executables.
+EXEEXT:=
+
+CXXFLAGS+= -D_REENTRANT -D_THREAD_SAFE
+LINK_FLAGS+= -pthread
+
+# Probe Overrides
+# ===============
+
+MMAP_PREHEADER:=<sys/types.h>
+SYS_MMAN_PREHEADER:=<sys/types.h>
+SYS_SOCKET_PREHEADER:=<sys/types.h>
+
+SDL_CFLAGS:=`sdl-config --cflags 2>> $(LOG)`
+
+SDL_LDFLAGS:=`sdl-config --libs 2>> $(LOG)`
+SDL_RESULT:=`sdl-config --version`
+
+PNG_CFLAGS:=
+
+PNG_LDFLAGS:=-lpng
+PNG_RESULT:=yes
diff --git a/emulators/openmsx/patches/patch-aa b/emulators/openmsx/patches/patch-aa
new file mode 100644
index 00000000000..72b9474c911
--- /dev/null
+++ b/emulators/openmsx/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/05/29 11:28:46 xtraeme Exp $
+
+--- build/detectsys.sh.orig 2004-05-29 11:49:58.000000000 +0200
++++ build/detectsys.sh 2004-05-29 11:50:16.000000000 +0200
+@@ -49,6 +49,8 @@
+ OPENMSX_TARGET_OS=freebsd5;;
+ *mingw*)
+ OPENMSX_TARGET_OS=mingw32;;
++ *netbsd*)
++ OPENMSX_TARGET_OS=netbsd;;
+ *)
+ echo " Unknown OS \"$GUESSED_OS\"!" 1>&2
+ exit 1
diff --git a/emulators/openmsx/patches/patch-ab b/emulators/openmsx/patches/patch-ab
new file mode 100644
index 00000000000..d785e42c653
--- /dev/null
+++ b/emulators/openmsx/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/05/29 11:28:46 xtraeme Exp $
+
+--- build/main.mk.orig 2004-05-29 12:52:37.000000000 +0200
++++ build/main.mk 2004-05-29 12:53:36.000000000 +0200
+@@ -109,6 +109,10 @@
+ OPENMSX_PLATFORM:=$(OPENMSX_TARGET_CPU)-$(OPENMSX_TARGET_OS)
+ endif
+
++ifeq ($(OPENMSX_TARGET_OS), netbsd)
++OPENMSX_PLATFORM:=$(OPENMSX_TARGET_OS)
++endif
++
+ # Ignore rest of Makefile if autodetection was not performed yet.
+ # Note that the include above will force a reload of the Makefile.
+ ifneq ($(origin OPENMSX_PLATFORM),undefined)