DESCR

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.

Makefile

# $NetBSD: Makefile,v 1.22 2009/10/29 17:58:50 joerg Exp $
#

DISTNAME= generator-0.35
PKGREVISION= 4
CATEGORIES= emulators
MASTER_SITES= http://www.squish.net/generator/files/

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.squish.net/generator/
COMMENT= Sega Mega drive genesis emulator

PKG_DESTDIR_SUPPORT= user-destdir
MAKE_JOBS_SAFE= no

GNU_CONFIGURE= yes

.if (${MACHINE_ARCH} == "i386")
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
CONFIGURE_ARGS+= --with-gtk --with-raze
.else
CONFIGURE_ARGS+= --with-gtk --with-cmz80
.endif

.include "../../mk/endian.mk"

.if ${MACHINE_ENDIAN} == "big"
CFLAGS+= -DBYTES_HIGHFIRST
.endif

.include "../../devel/SDL/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.1 2002/05/09 19:08:39 agc Exp $
bin/generator-gtk

distinfo

$NetBSD: distinfo,v 1.9 2009/10/29 17:58:50 joerg Exp $

SHA1 (generator-0.35.tar.gz) = a61138579efd97028d3a69c54c3c6fcd0a3d74ab
RMD160 (generator-0.35.tar.gz) = 6b448018b8ed0fd9755ddb850f48892304d12e78
Size (generator-0.35.tar.gz) = 469541 bytes
SHA1 (patch-aa) = 5b971a07345bbd8e3d86284127829df5f4f5a541
SHA1 (patch-ab) = 487620ee83fc17119ad6b8ab3e9a19a1401a5c02
SHA1 (patch-ac) = 7467437c39f7df56a261a330d8f021c0d9c0381b
SHA1 (patch-ae) = 4e689421fe66aa7f635191e9f0100cd98daf8a76
SHA1 (patch-af) = ef1c72b6da1ae93209a13b6836d5a85f66ffa51c
SHA1 (patch-ag) = 2837e5f931326b1ac4fb7b045c05a81d809693e4
SHA1 (patch-ah) = 4e76b9cd2fd377dee83273bafe930bec77b9bef1