diff options
author | wiz <wiz@pkgsrc.org> | 2004-07-19 20:29:37 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2004-07-19 20:29:37 +0000 |
commit | 71d65d44586e6f8d003d844bd541d86a3cdd0155 (patch) | |
tree | a9cb005506411f45fc811c9b4fbd33028e65b48c | |
parent | d32bcba4ceadeb69f839d489d80f645cbb7c1d99 (diff) | |
download | pkgsrc-71d65d44586e6f8d003d844bd541d86a3cdd0155.tar.gz |
Initial import of tuxnes, a NES emulator.
Features:
- open source
- dynamic recompilation from 6502 opcodes -> x86 native opcodes
- mappers: 0, 1, 2, 3, 4, 7, 9, 11, 32, 66, 99
- experimental mappers: 15, 22, 23, and 71
- gzip and zip file support
- game saving
- built-in disassembler
- joystick support (2- & 4-button)
- experimental sound support
- capture screenshots in X pixmap (xpm) or portable pixmap (ppm) format
- Game Genie code support
- trainer support
- alternate palette support
-rw-r--r-- | emulators/tuxnes/DESCR | 16 | ||||
-rw-r--r-- | emulators/tuxnes/Makefile | 34 | ||||
-rw-r--r-- | emulators/tuxnes/PLIST | 9 | ||||
-rw-r--r-- | emulators/tuxnes/distinfo | 8 | ||||
-rw-r--r-- | emulators/tuxnes/patches/patch-aa | 13 | ||||
-rw-r--r-- | emulators/tuxnes/patches/patch-ab | 12 | ||||
-rw-r--r-- | emulators/tuxnes/patches/patch-ac | 21 | ||||
-rw-r--r-- | emulators/tuxnes/patches/patch-ad | 15 |
8 files changed, 128 insertions, 0 deletions
diff --git a/emulators/tuxnes/DESCR b/emulators/tuxnes/DESCR new file mode 100644 index 00000000000..c0c7537bc2e --- /dev/null +++ b/emulators/tuxnes/DESCR @@ -0,0 +1,16 @@ +tuxnes is a NES emulator. + +Features: +- open source +- dynamic recompilation from 6502 opcodes -> x86 native opcodes +- mappers: 0, 1, 2, 3, 4, 7, 9, 11, 32, 66, 99 +- experimental mappers: 15, 22, 23, and 71 +- gzip and zip file support +- game saving +- built-in disassembler +- joystick support (2- & 4-button) +- experimental sound support +- capture screenshots in X pixmap (xpm) or portable pixmap (ppm) format +- Game Genie code support +- trainer support +- alternate palette support diff --git a/emulators/tuxnes/Makefile b/emulators/tuxnes/Makefile new file mode 100644 index 00000000000..5fb1fb44da8 --- /dev/null +++ b/emulators/tuxnes/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/07/19 20:29:37 wiz Exp $ +# + +DISTNAME= tuxnes-0.75 +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tuxnes/} + +MAINTAINER= wiz@NetBSD.org +HOMEPAGE= http://tuxnes.sourceforge.net/ +COMMENT= NES emulator + +ONLY_FOR_PLATFORM= *-*-i386 + +USE_BUILDLINK3= yes +USE_GNU_TOOLS+= make +USE_X11= yes +GNU_CONFIGURE= yes + +SUBST_CLASSES+= dsp +SUBST_STAGE.dsp= post-patch +SUBST_MESSAGE.dsp= Adjusting sound device path. +SUBST_FILES.dsp= consts.h +SUBST_SED.dsp= -e "s|/dev/dsp|${DEVOSSAUDIO}|" + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tuxnes +.for doc in AUTHORS BUGS COPYING README THANKS + ${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/tuxnes +.endfor + +.include "../../devel/zlib/buildlink3.mk" +.include "../../graphics/xpm/buildlink3.mk" +.include "../../mk/ossaudio.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/tuxnes/PLIST b/emulators/tuxnes/PLIST new file mode 100644 index 00000000000..df9f8d7fcaf --- /dev/null +++ b/emulators/tuxnes/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/19 20:29:37 wiz Exp $ +bin/tuxnes +bin/romfixer +share/doc/tuxnes/AUTHORS +share/doc/tuxnes/BUGS +share/doc/tuxnes/COPYING +share/doc/tuxnes/README +share/doc/tuxnes/THANKS +@dirrm share/doc/tuxnes diff --git a/emulators/tuxnes/distinfo b/emulators/tuxnes/distinfo new file mode 100644 index 00000000000..5fd82b254ef --- /dev/null +++ b/emulators/tuxnes/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/07/19 20:29:37 wiz Exp $ + +SHA1 (tuxnes-0.75.tar.gz) = 1729cb3a33a5a3e0c8fa81a1341f912cd0b8d18b +Size (tuxnes-0.75.tar.gz) = 198735 bytes +SHA1 (patch-aa) = d907d8c64ffec0977160f61bf70eb5223a6fc1d2 +SHA1 (patch-ab) = b2acfc6915f30f28aadc5a9ddf780596c8120f72 +SHA1 (patch-ac) = e4f82da5f6d4e4a15850c5ce14f8420a857a804b +SHA1 (patch-ad) = 25a937a0fcc0e52a42f8614656ca9e6eb08f02b9 diff --git a/emulators/tuxnes/patches/patch-aa b/emulators/tuxnes/patches/patch-aa new file mode 100644 index 00000000000..d7788251b2e --- /dev/null +++ b/emulators/tuxnes/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/07/19 20:29:37 wiz Exp $ + +--- Makefile.in.orig 2004-07-19 22:03:46.000000000 +0200 ++++ Makefile.in +@@ -99,7 +99,7 @@ tuxnes_OBJECTS = x86.o d6502.o dynrec.o + mapper.o sound.o ggi.o x11.o w.o renderer.o ntsc_pal.o unzip.o \ + ziploader.o + tuxnes_DEPENDENCIES = table.o +-tuxnes_LDFLAGS = ++tuxnes_LDFLAGS = ${LIBOSSAUDIO} + comptbl_OBJECTS = comptbl.o + comptbl_LDADD = $(LDADD) + comptbl_DEPENDENCIES = diff --git a/emulators/tuxnes/patches/patch-ab b/emulators/tuxnes/patches/patch-ab new file mode 100644 index 00000000000..9e10c546286 --- /dev/null +++ b/emulators/tuxnes/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/07/19 20:29:37 wiz Exp $ + +--- mapper.c.orig 2001-04-11 23:45:47.000000000 +0200 ++++ mapper.c +@@ -13,6 +13,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + + #include "consts.h" + #include "globals.h" diff --git a/emulators/tuxnes/patches/patch-ac b/emulators/tuxnes/patches/patch-ac new file mode 100644 index 00000000000..3f02f99dd3b --- /dev/null +++ b/emulators/tuxnes/patches/patch-ac @@ -0,0 +1,21 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/07/19 20:29:37 wiz Exp $ + +--- sound.c.orig 2001-04-11 23:45:47.000000000 +0200 ++++ sound.c +@@ -104,6 +104,7 @@ + #include <math.h> + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + #include <unistd.h> + #include <sys/ioctl.h> + #if defined(__FreeBSD__) +@@ -411,7 +412,7 @@ InitAudio(int argc, char **argv) + { + int desired_fragmentsize = 0; + #ifdef SNDCTL_DSP_RESET +- if (! ioctl (audiofd, SNDCTL_DSP_RESET)) { ++ if (! ioctl (audiofd, SNDCTL_DSP_RESET, 0)) { + int desired_audiorate; + int desired_audiostereo; + struct SampleFormat *desired_sample_format = sample_format; diff --git a/emulators/tuxnes/patches/patch-ad b/emulators/tuxnes/patches/patch-ad new file mode 100644 index 00000000000..8636e74944e --- /dev/null +++ b/emulators/tuxnes/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.1.1.1 2004/07/19 20:29:37 wiz Exp $ + +--- unzip.h.orig 2001-04-11 22:23:10.000000000 +0200 ++++ unzip.h +@@ -49,6 +49,10 @@ extern "C" { + #include "zlib.h" + #endif + ++#ifndef OF ++#define OF(a) a ++#endif ++ + #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) + /* like the STRICT of WIN32, we define a pointer that cannot be converted + from (void*) without cast */ |