summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
Diffstat (limited to 'emulators')
-rw-r--r--emulators/sdlmess/DESCR4
-rw-r--r--emulators/sdlmess/Makefile32
-rw-r--r--emulators/sdlmess/PLIST377
-rw-r--r--emulators/sdlmess/distinfo8
-rw-r--r--emulators/sdlmess/patches/patch-aa120
-rw-r--r--emulators/sdlmess/patches/patch-ab50
-rw-r--r--emulators/sdlmess/patches/patch-ah13
7 files changed, 604 insertions, 0 deletions
diff --git a/emulators/sdlmess/DESCR b/emulators/sdlmess/DESCR
new file mode 100644
index 00000000000..0be75382110
--- /dev/null
+++ b/emulators/sdlmess/DESCR
@@ -0,0 +1,4 @@
+MESS is a free emulator which emulates a large variety of different
+systems.
+
+This package contains the SDL port of MESS.
diff --git a/emulators/sdlmess/Makefile b/emulators/sdlmess/Makefile
new file mode 100644
index 00000000000..bd51a55c319
--- /dev/null
+++ b/emulators/sdlmess/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/18 16:02:57 wiz Exp $
+#
+
+DISTNAME= sdlmess0129
+PKGNAME= sdlmess-0.129
+
+COMMENT= Multi Emulator Super System, SDL port
+
+CONFLICTS= xmess-[0-9]*
+
+MAKE_FILE= makefile.sdl
+
+DOCDIR= share/doc/mess
+SHAREDIR= share/mess
+INSTALLATION_DIRS= bin ${DOCDIR}/sysinfo ${SHAREDIR}/artwork \
+ ${SHAREDIR}/hash
+
+post-build:
+ cd ${WRKSRC} && ./dat2html
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/imgtool ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mess ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/artwork/* \
+ ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork
+ ${INSTALL_DATA} ${WRKSRC}/hash/* \
+ ${DESTDIR}${PREFIX}/${SHAREDIR}/hash
+ ${INSTALL_DATA} ${WRKSRC}/sysinfo.htm ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/sysinfo/* \
+ ${DESTDIR}${PREFIX}/${DOCDIR}/sysinfo
+
+.include "../../emulators/sdlmame/Makefile.common"
diff --git a/emulators/sdlmess/PLIST b/emulators/sdlmess/PLIST
new file mode 100644
index 00000000000..291914f8b97
--- /dev/null
+++ b/emulators/sdlmess/PLIST
@@ -0,0 +1,377 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/18 16:02:57 wiz Exp $
+bin/imgtool
+bin/mess
+share/doc/mess/sysinfo.htm
+share/doc/mess/sysinfo/3do.htm
+share/doc/mess/sysinfo/990189.htm
+share/doc/mess/sysinfo/990189v.htm
+share/doc/mess/sysinfo/a1000n.htm
+share/doc/mess/sysinfo/a2600.htm
+share/doc/mess/sysinfo/a310.htm
+share/doc/mess/sysinfo/a400.htm
+share/doc/mess/sysinfo/a500n.htm
+share/doc/mess/sysinfo/a5200.htm
+share/doc/mess/sysinfo/a7800.htm
+share/doc/mess/sysinfo/a800.htm
+share/doc/mess/sysinfo/a800xl.htm
+share/doc/mess/sysinfo/abc80.htm
+share/doc/mess/sysinfo/abc800c.htm
+share/doc/mess/sysinfo/acrnsys1.htm
+share/doc/mess/sysinfo/adam.htm
+share/doc/mess/sysinfo/advision.htm
+share/doc/mess/sysinfo/aim65.htm
+share/doc/mess/sysinfo/al520ex.htm
+share/doc/mess/sysinfo/alice.htm
+share/doc/mess/sysinfo/amsterd.htm
+share/doc/mess/sysinfo/apexc.htm
+share/doc/mess/sysinfo/apfimag.htm
+share/doc/mess/sysinfo/apfm1000.htm
+share/doc/mess/sysinfo/apple1.htm
+share/doc/mess/sysinfo/apple2.htm
+share/doc/mess/sysinfo/apple2c.htm
+share/doc/mess/sysinfo/apple2cp.htm
+share/doc/mess/sysinfo/apple2e.htm
+share/doc/mess/sysinfo/apple2gs.htm
+share/doc/mess/sysinfo/apple2p.htm
+share/doc/mess/sysinfo/apple3.htm
+share/doc/mess/sysinfo/aquarius.htm
+share/doc/mess/sysinfo/arcadia.htm
+share/doc/mess/sysinfo/astrocde.htm
+share/doc/mess/sysinfo/at.htm
+share/doc/mess/sysinfo/atarist.htm
+share/doc/mess/sysinfo/atariste.htm
+share/doc/mess/sysinfo/atom.htm
+share/doc/mess/sysinfo/atvga.htm
+share/doc/mess/sysinfo/avigo.htm
+share/doc/mess/sysinfo/b2m.htm
+share/doc/mess/sysinfo/bbca.htm
+share/doc/mess/sysinfo/bbcbc.htm
+share/doc/mess/sysinfo/bbcm.htm
+share/doc/mess/sysinfo/bebox.htm
+share/doc/mess/sysinfo/bk0010.htm
+share/doc/mess/sysinfo/bondwell.htm
+share/doc/mess/sysinfo/bw2.htm
+share/doc/mess/sysinfo/c128.htm
+share/doc/mess/sysinfo/c16.htm
+share/doc/mess/sysinfo/c64.htm
+share/doc/mess/sysinfo/c64gs.htm
+share/doc/mess/sysinfo/c65.htm
+share/doc/mess/sysinfo/cbm30.htm
+share/doc/mess/sysinfo/cbm40.htm
+share/doc/mess/sysinfo/cbm500.htm
+share/doc/mess/sysinfo/cbm610.htm
+share/doc/mess/sysinfo/cbm710.htm
+share/doc/mess/sysinfo/cbm80.htm
+share/doc/mess/sysinfo/cdtv.htm
+share/doc/mess/sysinfo/cgenie.htm
+share/doc/mess/sysinfo/channelf.htm
+share/doc/mess/sysinfo/coco.htm
+share/doc/mess/sysinfo/coco3.htm
+share/doc/mess/sysinfo/coco3h.htm
+share/doc/mess/sysinfo/coleco.htm
+share/doc/mess/sysinfo/compis.htm
+share/doc/mess/sysinfo/comquest.htm
+share/doc/mess/sysinfo/concept.htm
+share/doc/mess/sysinfo/coupe.htm
+share/doc/mess/sysinfo/cpc464.htm
+share/doc/mess/sysinfo/cpc464p.htm
+share/doc/mess/sysinfo/cpc6128.htm
+share/doc/mess/sysinfo/cpc6128p.htm
+share/doc/mess/sysinfo/cpc664.htm
+share/doc/mess/sysinfo/crvision.htm
+share/doc/mess/sysinfo/dai.htm
+share/doc/mess/sysinfo/dallas.htm
+share/doc/mess/sysinfo/dc.htm
+share/doc/mess/sysinfo/dgone.htm
+share/doc/mess/sysinfo/einstein.htm
+share/doc/mess/sysinfo/electron.htm
+share/doc/mess/sysinfo/ep128.htm
+share/doc/mess/sysinfo/europc.htm
+share/doc/mess/sysinfo/exidy.htm
+share/doc/mess/sysinfo/famicom.htm
+share/doc/mess/sysinfo/famitwin.htm
+share/doc/mess/sysinfo/fellow.htm
+share/doc/mess/sysinfo/g7400.htm
+share/doc/mess/sysinfo/galaxy.htm
+share/doc/mess/sysinfo/galeb.htm
+share/doc/mess/sysinfo/gameboy.htm
+share/doc/mess/sysinfo/gamecom.htm
+share/doc/mess/sysinfo/gamegear.htm
+share/doc/mess/sysinfo/gamepock.htm
+share/doc/mess/sysinfo/gbcolor.htm
+share/doc/mess/sysinfo/genesis.htm
+share/doc/mess/sysinfo/geneve.htm
+share/doc/mess/sysinfo/glasgow.htm
+share/doc/mess/sysinfo/gmaster.htm
+share/doc/mess/sysinfo/gx4000.htm
+share/doc/mess/sysinfo/hp48s.htm
+share/doc/mess/sysinfo/i8530286.htm
+share/doc/mess/sysinfo/ibm5150.htm
+share/doc/mess/sysinfo/ibm5160.htm
+share/doc/mess/sysinfo/ibmat.htm
+share/doc/mess/sysinfo/ibmpcjr.htm
+share/doc/mess/sysinfo/intv.htm
+share/doc/mess/sysinfo/intvkbd.htm
+share/doc/mess/sysinfo/intvsrs.htm
+share/doc/mess/sysinfo/jaguar.htm
+share/doc/mess/sysinfo/jupiter.htm
+share/doc/mess/sysinfo/kaypro.htm
+share/doc/mess/sysinfo/kc85_3.htm
+share/doc/mess/sysinfo/kc85_4.htm
+share/doc/mess/sysinfo/kccomp.htm
+share/doc/mess/sysinfo/kim1.htm
+share/doc/mess/sysinfo/laser110.htm
+share/doc/mess/sysinfo/laser200.htm
+share/doc/mess/sysinfo/laser210.htm
+share/doc/mess/sysinfo/laser310.htm
+share/doc/mess/sysinfo/laser350.htm
+share/doc/mess/sysinfo/lisa2.htm
+share/doc/mess/sysinfo/lviv.htm
+share/doc/mess/sysinfo/lynx.htm
+share/doc/mess/sysinfo/mac128k.htm
+share/doc/mess/sysinfo/mac512ke.htm
+share/doc/mess/sysinfo/macclasc.htm
+share/doc/mess/sysinfo/macplus.htm
+share/doc/mess/sysinfo/macse.htm
+share/doc/mess/sysinfo/max.htm
+share/doc/mess/sysinfo/mbee.htm
+share/doc/mess/sysinfo/mc10.htm
+share/doc/mess/sysinfo/megaduck.htm
+share/doc/mess/sysinfo/megast.htm
+share/doc/mess/sysinfo/megaste.htm
+share/doc/mess/sysinfo/microtan.htm
+share/doc/mess/sysinfo/mikro80.htm
+share/doc/mess/sysinfo/mk1.htm
+share/doc/mess/sysinfo/mk2.htm
+share/doc/mess/sysinfo/mm4.htm
+share/doc/mess/sysinfo/mm5.htm
+share/doc/mess/sysinfo/mo5.htm
+share/doc/mess/sysinfo/mo5e.htm
+share/doc/mess/sysinfo/mo5nr.htm
+share/doc/mess/sysinfo/mo6.htm
+share/doc/mess/sysinfo/mpf1.htm
+share/doc/mess/sysinfo/msx.htm
+share/doc/mess/sysinfo/msx2.htm
+share/doc/mess/sysinfo/msx2p.htm
+share/doc/mess/sysinfo/mtx512.htm
+share/doc/mess/sysinfo/mz700.htm
+share/doc/mess/sysinfo/mz800.htm
+share/doc/mess/sysinfo/n64.htm
+share/doc/mess/sysinfo/nascom1.htm
+share/doc/mess/sysinfo/nascom2.htm
+share/doc/mess/sysinfo/nc100.htm
+share/doc/mess/sysinfo/nc200.htm
+share/doc/mess/sysinfo/neat.htm
+share/doc/mess/sysinfo/nes.htm
+share/doc/mess/sysinfo/odyssey2.htm
+share/doc/mess/sysinfo/orao.htm
+share/doc/mess/sysinfo/oric1.htm
+share/doc/mess/sysinfo/orica.htm
+share/doc/mess/sysinfo/orion128.htm
+share/doc/mess/sysinfo/orionpro.htm
+share/doc/mess/sysinfo/osborne1.htm
+share/doc/mess/sysinfo/p2000t.htm
+share/doc/mess/sysinfo/pasogo.htm
+share/doc/mess/sysinfo/pc1251.htm
+share/doc/mess/sysinfo/pc1350.htm
+share/doc/mess/sysinfo/pc1401.htm
+share/doc/mess/sysinfo/pc1403.htm
+share/doc/mess/sysinfo/pc1512.htm
+share/doc/mess/sysinfo/pc1640.htm
+share/doc/mess/sysinfo/pc200.htm
+share/doc/mess/sysinfo/pc88srl.htm
+share/doc/mess/sysinfo/pce.htm
+share/doc/mess/sysinfo/pcw16.htm
+share/doc/mess/sysinfo/pcw8256.htm
+share/doc/mess/sysinfo/pdp1.htm
+share/doc/mess/sysinfo/pet.htm
+share/doc/mess/sysinfo/pmd851.htm
+share/doc/mess/sysinfo/pokemini.htm
+share/doc/mess/sysinfo/ppc512.htm
+share/doc/mess/sysinfo/prav8d.htm
+share/doc/mess/sysinfo/primoa32.htm
+share/doc/mess/sysinfo/pro128.htm
+share/doc/mess/sysinfo/psj.htm
+share/doc/mess/sysinfo/ql.htm
+share/doc/mess/sysinfo/raaspec.htm
+share/doc/mess/sysinfo/rebel5.htm
+share/doc/mess/sysinfo/roma.htm
+share/doc/mess/sysinfo/saturn.htm
+share/doc/mess/sysinfo/sb2m600b.htm
+share/doc/mess/sysinfo/sc3000.htm
+share/doc/mess/sysinfo/sf7000.htm
+share/doc/mess/sysinfo/sfzch.htm
+share/doc/mess/sysinfo/sg1000.htm
+share/doc/mess/sysinfo/sg1000m2.htm
+share/doc/mess/sysinfo/sgx.htm
+share/doc/mess/sysinfo/sms.htm
+share/doc/mess/sysinfo/snes.htm
+share/doc/mess/sysinfo/sordm5.htm
+share/doc/mess/sysinfo/spec128.htm
+share/doc/mess/sysinfo/special.htm
+share/doc/mess/sysinfo/specpls4.htm
+share/doc/mess/sysinfo/spectrum.htm
+share/doc/mess/sysinfo/srdm5fd5.htm
+share/doc/mess/sysinfo/ssystem3.htm
+share/doc/mess/sysinfo/stbook.htm
+share/doc/mess/sysinfo/studio2.htm
+share/doc/mess/sysinfo/super80.htm
+share/doc/mess/sysinfo/supergb.htm
+share/doc/mess/sysinfo/svi318.htm
+share/doc/mess/sysinfo/svi328.htm
+share/doc/mess/sysinfo/svision.htm
+share/doc/mess/sysinfo/sx64.htm
+share/doc/mess/sysinfo/sym1.htm
+share/doc/mess/sysinfo/t1000hx.htm
+share/doc/mess/sysinfo/t1000sx.htm
+share/doc/mess/sysinfo/t9000.htm
+share/doc/mess/sysinfo/telstrat.htm
+share/doc/mess/sysinfo/ti81.htm
+share/doc/mess/sysinfo/ti82.htm
+share/doc/mess/sysinfo/ti83.htm
+share/doc/mess/sysinfo/ti83p.htm
+share/doc/mess/sysinfo/ti85.htm
+share/doc/mess/sysinfo/ti86.htm
+share/doc/mess/sysinfo/ti990_10.htm
+share/doc/mess/sysinfo/ti990_4.htm
+share/doc/mess/sysinfo/ti99_224.htm
+share/doc/mess/sysinfo/ti99_4.htm
+share/doc/mess/sysinfo/ti99_4a.htm
+share/doc/mess/sysinfo/ti99_4ev.htm
+share/doc/mess/sysinfo/ti99_8.htm
+share/doc/mess/sysinfo/tmc600s2.htm
+share/doc/mess/sysinfo/to7.htm
+share/doc/mess/sysinfo/to770.htm
+share/doc/mess/sysinfo/to770a.htm
+share/doc/mess/sysinfo/to8.htm
+share/doc/mess/sysinfo/to8d.htm
+share/doc/mess/sysinfo/to9.htm
+share/doc/mess/sysinfo/to9p.htm
+share/doc/mess/sysinfo/trs80.htm
+share/doc/mess/sysinfo/trs80m3.htm
+share/doc/mess/sysinfo/trs80m4.htm
+share/doc/mess/sysinfo/tutor.htm
+share/doc/mess/sysinfo/tx0_64kw.htm
+share/doc/mess/sysinfo/tx0_8kw.htm
+share/doc/mess/sysinfo/uk101.htm
+share/doc/mess/sysinfo/ut88mini.htm
+share/doc/mess/sysinfo/vc4000.htm
+share/doc/mess/sysinfo/vcg.htm
+share/doc/mess/sysinfo/vectrex.htm
+share/doc/mess/sysinfo/vic20.htm
+share/doc/mess/sysinfo/vip.htm
+share/doc/mess/sysinfo/wscolor.htm
+share/doc/mess/sysinfo/wswan.htm
+share/doc/mess/sysinfo/x68000.htm
+share/doc/mess/sysinfo/z88.htm
+share/doc/mess/sysinfo/zx80.htm
+share/doc/mess/sysinfo/zx81.htm
+share/mess/artwork/aim65.zip
+share/mess/artwork/amsterd.zip
+share/mess/artwork/avigo.zip
+share/mess/artwork/dallas.zip
+share/mess/artwork/dallas16.zip
+share/mess/artwork/dallas32.zip
+share/mess/artwork/dir.txt
+share/mess/artwork/floppyr.png
+share/mess/artwork/floppyw.png
+share/mess/artwork/glasgow.zip
+share/mess/artwork/kim1.zip
+share/mess/artwork/ledoff.png
+share/mess/artwork/ledon.png
+share/mess/artwork/mk1.zip
+share/mess/artwork/mk2.zip
+share/mess/artwork/mm4.zip
+share/mess/artwork/mm5.zip
+share/mess/artwork/mpf1.zip
+share/mess/artwork/nes.zip
+share/mess/artwork/pc1401.zip
+share/mess/artwork/pc1402.zip
+share/mess/artwork/pc1403.zip
+share/mess/artwork/rebel5.zip
+share/mess/artwork/roma32.zip
+share/mess/artwork/ssystem3.zip
+share/mess/artwork/thomson.lay
+share/mess/hash/a2600.hsi
+share/mess/hash/a5200.hsi
+share/mess/hash/a7800.hsi
+share/mess/hash/a800.hsi
+share/mess/hash/a800xl.hsi
+share/mess/hash/advision.hsi
+share/mess/hash/aim65.hsi
+share/mess/hash/apexc.hsi
+share/mess/hash/apfm1000.hsi
+share/mess/hash/apple1.hsi
+share/mess/hash/apple2.hsi
+share/mess/hash/aquarius.hsi
+share/mess/hash/arcadia.hsi
+share/mess/hash/astrocde.hsi
+share/mess/hash/bbca.hsi
+share/mess/hash/c128.hsi
+share/mess/hash/c16.hsi
+share/mess/hash/c64.hsi
+share/mess/hash/cbm30.hsi
+share/mess/hash/cbm40.hsi
+share/mess/hash/cbm610.hsi
+share/mess/hash/cbm80.hsi
+share/mess/hash/cgenie.hsi
+share/mess/hash/channelf.hsi
+share/mess/hash/coco.hsi
+share/mess/hash/coleco.hsi
+share/mess/hash/coupe.hsi
+share/mess/hash/cpc464.hsi
+share/mess/hash/cpc6128.hsi
+share/mess/hash/dragon64.hsi
+share/mess/hash/ep128.hsi
+share/mess/hash/exidy.hsi
+share/mess/hash/gameboy.hsi
+share/mess/hash/gamecom.hsi
+share/mess/hash/gamegear.hsi
+share/mess/hash/genesis.hsi
+share/mess/hash/ibmpc.hsi
+share/mess/hash/ibmpcjr.hsi
+share/mess/hash/intv.hsi
+share/mess/hash/jaguar.hsi
+share/mess/hash/jupiter.hsi
+share/mess/hash/laser210.hsi
+share/mess/hash/lisa2.hsi
+share/mess/hash/lviv.hsi
+share/mess/hash/lynx.hsi
+share/mess/hash/max.hsi
+share/mess/hash/mc10.hsi
+share/mess/hash/megaduck.hsi
+share/mess/hash/microtan.hsi
+share/mess/hash/msx.hsi
+share/mess/hash/msx2.hsi
+share/mess/hash/mtx512.hsi
+share/mess/hash/n64.hsi
+share/mess/hash/nascom1.hsi
+share/mess/hash/nes.hsi
+share/mess/hash/odyssey2.hsi
+share/mess/hash/oric.hsi
+share/mess/hash/p2000t.hsi
+share/mess/hash/pce.hsi
+share/mess/hash/pdp1.hsi
+share/mess/hash/pet.hsi
+share/mess/hash/pico.hsi
+share/mess/hash/pokemini.hsi
+share/mess/hash/psx.hsi
+share/mess/hash/samcoupe.hsi
+share/mess/hash/sms.hsi
+share/mess/hash/snes.hsi
+share/mess/hash/sordm5.hsi
+share/mess/hash/spectrum.hsi
+share/mess/hash/studio2.hsi
+share/mess/hash/svi318.hsi
+share/mess/hash/svision.hsi
+share/mess/hash/ti99_4a.hsi
+share/mess/hash/ts2068.hsi
+share/mess/hash/vc4000.hsi
+share/mess/hash/vectrex.hsi
+share/mess/hash/vic20.hsi
+share/mess/hash/wswan.hsi
+@dirrm share/mess/hash
+@dirrm share/mess/artwork
+@dirrm share/mess
+@dirrm share/doc/mess/sysinfo
+@dirrm share/doc/mess
diff --git a/emulators/sdlmess/distinfo b/emulators/sdlmess/distinfo
new file mode 100644
index 00000000000..c067f6c5760
--- /dev/null
+++ b/emulators/sdlmess/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/18 16:02:57 wiz Exp $
+
+SHA1 (sdlmess0129.zip) = 5b48a5922647b51a96f1b302691d843b8153483d
+RMD160 (sdlmess0129.zip) = e6785a3f5a932187075fdf963200b7d9ac02614f
+Size (sdlmess0129.zip) = 31176249 bytes
+SHA1 (patch-aa) = 0b752651da139512c0dac7541f003805b805c140
+SHA1 (patch-ab) = 9854400aadac7848531ed242a03ae05d5747bb5f
+SHA1 (patch-ah) = 6a8e0307a58114cfe59d066a4e5e6210895dcc9a
diff --git a/emulators/sdlmess/patches/patch-aa b/emulators/sdlmess/patches/patch-aa
new file mode 100644
index 00000000000..7426d48c5dc
--- /dev/null
+++ b/emulators/sdlmess/patches/patch-aa
@@ -0,0 +1,120 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/01/18 16:02:57 wiz Exp $
+
+--- makefile.sdl.orig 2009-01-07 05:41:45.000000000 +0100
++++ makefile.sdl
+@@ -125,10 +125,10 @@ endif
+ # BIGENDIAN = 1
+
+ # uncomment next line to build expat as part of MAME build
+-BUILD_EXPAT = 1
++# BUILD_EXPAT = 1
+
+ # uncomment next line to build zlib as part of MAME build
+-BUILD_ZLIB = 1
++# BUILD_ZLIB = 1
+
+ # uncomment next line to include the symbols
+ # SYMBOLS = 1
+@@ -193,9 +193,9 @@ BUILD_EXE = $(EXE)
+ endif
+
+ # compiler, linker and utilities
+-AR = @ar
+-CC = @gcc
+-LD = @gcc
++#AR = @ar
++#CC = @gcc
++#LD = @gcc
+ MD = -mkdir$(EXE)
+ RM = @rm -f
+
+@@ -219,7 +219,8 @@ NAME = $(TARGET)$(SUBTARGET)
+ endif
+
+ # fullname is prefix+name+suffix+debugsuffix
+-FULLNAME = $(PREFIX)$(NAME)$(SUFFIX)$(DEBUGSUFFIX)
++#FULLNAME = $(PREFIX)$(NAME)$(SUFFIX)$(DEBUGSUFFIX)
++FULLNAME = $(NAME)$(SUFFIX)$(DEBUGSUFFIX)
+
+ # add an EXE suffix to get the final emulator name
+ EMULATOR = $(FULLNAME)$(EXE)
+@@ -284,10 +285,10 @@ endif
+ #-------------------------------------------------
+
+ # we compile to C89 standard with GNU extensions
+-CFLAGS = -std=gnu89
++#CFLAGS = -std=gnu89
+
+ # this speeds it up a bit by piping between the preprocessor/compiler/assembler
+-CFLAGS += -pipe
++#CFLAGS += -pipe
+
+ # add -g if we need symbols
+ ifdef SYMBOLS
+@@ -321,14 +322,14 @@ CFLAGS += -Wdeclaration-after-statement
+ endif
+
+ # add the optimization flag
+-CFLAGS += -O$(OPTIMIZE)
++#CFLAGS += -O$(OPTIMIZE)
+
+ # if we are optimizing, include optimization options
+ # and make all errors into warnings
+ ifneq ($(OPTIMIZE),0)
+ CFLAGS += $(ARCHOPTS) -fno-strict-aliasing
+ ifneq ($(TARGETOS),os2)
+-CFLAGS += -Werror
++#CFLAGS += -Werror
+ endif
+ endif
+
+@@ -344,7 +345,7 @@ endif
+ #-------------------------------------------------
+
+ # add core include paths
+-CFLAGS += \
++CFLAGS := \
+ -I$(SRC)/$(TARGET) \
+ -I$(SRC)/$(TARGET)/includes \
+ -I$(OBJ)/$(TARGET)/layout \
+@@ -354,7 +355,7 @@ CFLAGS += \
+ -I$(SRC)/lib/util \
+ -I$(SRC)/osd \
+ -I$(SRC)/osd/$(OSD) \
+-
++ $(CFLAGS)
+
+
+ #-------------------------------------------------
+@@ -363,11 +364,11 @@ CFLAGS += \
+
+ # LDFLAGS are used generally; LDFLAGSEMULATOR are additional
+ # flags only used when linking the core emulator
+-LDFLAGS =
++#LDFLAGS =
+ ifneq ($(TARGETOS),macosx)
+ ifneq ($(TARGETOS),os2)
+ ifneq ($(TARGETOS),solaris)
+-LDFLAGS = -Wl,--warn-common
++#LDFLAGS = -Wl,--warn-common
+ endif
+ endif
+ endif
+@@ -382,7 +383,7 @@ endif
+ ifndef SYMBOLS
+ ifndef PROFILE
+ ifneq ($(TARGETOS),macosx)
+-LDFLAGS += -s
++#LDFLAGS += -s
+ endif
+ endif
+ endif
+@@ -535,7 +536,7 @@ $(VERSIONOBJ): $(DRVLIBS) $(LIBOSD) $(LI
+
+ $(EMULATOR): $(VERSIONOBJ) $(DRVLIBS) $(LIBOSD) $(LIBEMU) $(LIBCPU) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(ZLIB) $(LIBOCORE) $(RESFILE)
+ @echo Linking $@...
+- $(LD) $(LDFLAGS) $(LDFLAGSEMULATOR) $^ $(LIBS) -o $@
++ $(CC) $(LDFLAGS) $(LDFLAGSEMULATOR) $^ $(LIBS) -o $@
+
+ endif
+
diff --git a/emulators/sdlmess/patches/patch-ab b/emulators/sdlmess/patches/patch-ab
new file mode 100644
index 00000000000..c226a8d82ea
--- /dev/null
+++ b/emulators/sdlmess/patches/patch-ab
@@ -0,0 +1,50 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/01/18 16:02:57 wiz Exp $
+
+--- src/osd/sdl/sdlsync.c.orig 2008-12-12 04:55:30.000000000 +0100
++++ src/osd/sdl/sdlsync.c
+@@ -587,14 +587,27 @@ int osd_thread_adjust_priority(osd_threa
+ int osd_thread_cpu_affinity(osd_thread *thread, UINT32 mask)
+ {
+ #if !defined(NO_THREAD_COOPERATIVE) && !defined(NO_AFFINITY_NP)
++#if defined(__NetBSD__)
++ cpuset_t *cmask;
++#else
+ cpu_set_t cmask;
++#endif
+ pthread_t lthread;
+ int bitnum;
++ int ret;
+
++#if defined(__NetBSD__)
++ cmask = cpuset_create(); /* initializes set as well */
++#else
+ CPU_ZERO(&cmask);
++#endif
+ for (bitnum=0; bitnum<32; bitnum++)
+ if (mask & (1<<bitnum))
++#if defined(__NetBSD__)
++ cpuset_set(bitnum, cmask);
++#else
+ CPU_SET(bitnum, &cmask);
++#endif
+
+ if (thread == NULL)
+ lthread = pthread_self();
+@@ -605,10 +618,15 @@ int osd_thread_cpu_affinity(osd_thread *
+ {
+ /* Not available during link in all targets */
+ fprintf(stderr, "error %d setting cpu affinity to mask %08x", errno, mask);
+- return FALSE;
++ ret = FALSE;
+ }
+ else
+- return TRUE;
++ ret = TRUE;
++
++#if defined(__NetBSD__)
++ cpuset_destroy(cmask);
++#endif
++ return ret;
+ #else
+ return TRUE;
+ #endif
diff --git a/emulators/sdlmess/patches/patch-ah b/emulators/sdlmess/patches/patch-ah
new file mode 100644
index 00000000000..978b3226313
--- /dev/null
+++ b/emulators/sdlmess/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.1.1.1 2009/01/18 16:02:57 wiz Exp $
+
+--- src/osd/sdl/sdlprefix.h.orig 2008-02-05 21:09:55.000000000 +0000
++++ src/osd/sdl/sdlprefix.h
+@@ -30,7 +30,7 @@
+ #elif defined(__linux__)
+ #define SDLMAME_LINUX 1
+
+-#elif defined(__FreeBSD__) || defined(__DragonFly__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
+ #define SDLMAME_FREEBSD 1
+ #endif
+