diff options
author | agc <agc> | 2002-05-09 19:08:39 +0000 |
---|---|---|
committer | agc <agc> | 2002-05-09 19:08:39 +0000 |
commit | 99eea16aba25f7f1ecf5419a3a74764a50269e09 (patch) | |
tree | 9783dac11b81ebad9bffe68a15a953d934adeec9 /emulators/generator | |
parent | 65b384ce74e5a15798ae05f733ab9e1414e0cd3c (diff) | |
download | pkgsrc-99eea16aba25f7f1ecf5419a3a74764a50269e09.tar.gz |
Initial import of Generator-0.34 into the NetBSD Packages collection.
Generator is an open source emulator designed to emulate the Sega
Genesis / Mega Drive console, a popular games machine produced in the
early 1990s. It is a portable program written in C and has been
ported to the Amiga, Macintosh, Windows and even pocket PCs such as
the iPAQ and Cassiopeia. Natively it compiles under unix for X
Windows with either tcl/tk or gtk/SDL, for svgalib and even
cross-compiles to DOS with djgpp/allegro.
Generator uses its own custom 68000 processor emulation which is
designed for dynamic recompilation, and uses techniques from this such
as block-marking, flag calculation removal, operand pre-calculation,
endian pre-conversion etc. There are approximately 1600 C routines
generated by the first stage of compilation to cope with the 67
instruction families. These routines are used as a 'backup' when
dynamic recompilation isn't supported on your platform or the
recompiler doesn't support a particular instruction. The CPU engine
is by all accounts very fast, whatever the mode.
There is a 'test' recompiler written for the ARM processor, but it is
no longer supported. If someone with assembler knowledge wants to put
the effort into writing a recompiling back-end for a processor (and it
really is major effort), let me know - particularly if you know i386.
Diffstat (limited to 'emulators/generator')
-rw-r--r-- | emulators/generator/DESCR | 22 | ||||
-rw-r--r-- | emulators/generator/Makefile | 18 | ||||
-rw-r--r-- | emulators/generator/PLIST | 2 | ||||
-rw-r--r-- | emulators/generator/distinfo | 5 | ||||
-rw-r--r-- | emulators/generator/patches/patch-aa | 20 |
5 files changed, 67 insertions, 0 deletions
diff --git a/emulators/generator/DESCR b/emulators/generator/DESCR new file mode 100644 index 00000000000..7d4dc2f6e2b --- /dev/null +++ b/emulators/generator/DESCR @@ -0,0 +1,22 @@ +Generator is an open source emulator designed to emulate the Sega +Genesis / Mega Drive console, a popular games machine produced in the +early 1990s. It is a portable program written in C and has been +ported to the Amiga, Macintosh, Windows and even pocket PCs such as +the iPAQ and Cassiopeia. Natively it compiles under unix for X +Windows with either tcl/tk or gtk/SDL, for svgalib and even +cross-compiles to DOS with djgpp/allegro. + +Generator uses its own custom 68000 processor emulation which is +designed for dynamic recompilation, and uses techniques from this such +as block-marking, flag calculation removal, operand pre-calculation, +endian pre-conversion etc. There are approximately 1600 C routines +generated by the first stage of compilation to cope with the 67 +instruction families. These routines are used as a 'backup' when +dynamic recompilation isn't supported on your platform or the +recompiler doesn't support a particular instruction. The CPU engine +is by all accounts very fast, whatever the mode. + +There is a 'test' recompiler written for the ARM processor, but it is +no longer supported. If someone with assembler knowledge wants to put +the effort into writing a recompiling back-end for a processor (and it +really is major effort), let me know - particularly if you know i386. diff --git a/emulators/generator/Makefile b/emulators/generator/Makefile new file mode 100644 index 00000000000..d9f942442b3 --- /dev/null +++ b/emulators/generator/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/05/09 19:08:39 agc Exp $ +# + +DISTNAME= generator-0.34 +CATEGORIES= emulators +MASTER_SITES= http://www.squish.net/generator/files/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.sqish.net/generator/ +COMMENT= Sega Mega drive genesis emulator + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-gtk --with-raze + +.include "../../devel/SDL/buildlink.mk" +.include "../../x11/gtk/buildlink.mk" +.include "../../mk/x11.buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/generator/PLIST b/emulators/generator/PLIST new file mode 100644 index 00000000000..2125ec7ad69 --- /dev/null +++ b/emulators/generator/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/09 19:08:39 agc Exp $ +bin/generator-gtk diff --git a/emulators/generator/distinfo b/emulators/generator/distinfo new file mode 100644 index 00000000000..1b47da76666 --- /dev/null +++ b/emulators/generator/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/05/09 19:08:39 agc Exp $ + +SHA1 (generator-0.34.tar.gz) = abf57875c60f63c9ffb97894f4ce9c638f60054f +Size (generator-0.34.tar.gz) = 442852 bytes +SHA1 (patch-aa) = 0878709485d884c1e4956b5ac4659024e31ef3ac diff --git a/emulators/generator/patches/patch-aa b/emulators/generator/patches/patch-aa new file mode 100644 index 00000000000..8a49c098622 --- /dev/null +++ b/emulators/generator/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/05/09 19:08:39 agc Exp $ + +--- main/gensoundp-unix.c 2002/05/09 19:02:00 1.1 ++++ main/gensoundp-unix.c 2002/05/09 19:02:56 +@@ -22,9 +22,15 @@ + # include "fm.h" + #endif + ++#if defined(__NetBSD__) ++#include <soundcard.h> ++ ++#define SOUND_DEVICE "/dev/sound" ++#else + #include <sys/soundcard.h> + + #define SOUND_DEVICE "/dev/dsp" ++#endif + + /*** variables externed ***/ + |