pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/tuxnes Initial import of tuxnes, a NES emula...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f27e23b3caa
branches:  trunk
changeset: 478221:1f27e23b3caa
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jul 19 20:29:37 2004 +0000

description:
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

diffstat:

 emulators/tuxnes/DESCR            |  16 ++++++++++++++++
 emulators/tuxnes/Makefile         |  34 ++++++++++++++++++++++++++++++++++
 emulators/tuxnes/PLIST            |   9 +++++++++
 emulators/tuxnes/distinfo         |   8 ++++++++
 emulators/tuxnes/patches/patch-aa |  13 +++++++++++++
 emulators/tuxnes/patches/patch-ab |  12 ++++++++++++
 emulators/tuxnes/patches/patch-ac |  21 +++++++++++++++++++++
 emulators/tuxnes/patches/patch-ad |  15 +++++++++++++++
 8 files changed, 128 insertions(+), 0 deletions(-)

diffs (160 lines):

diff -r e05c6a150c20 -r 1f27e23b3caa emulators/tuxnes/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tuxnes/DESCR    Mon Jul 19 20:29:37 2004 +0000
@@ -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 -r e05c6a150c20 -r 1f27e23b3caa emulators/tuxnes/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tuxnes/Makefile Mon Jul 19 20:29:37 2004 +0000
@@ -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@localhost
+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 -r e05c6a150c20 -r 1f27e23b3caa emulators/tuxnes/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tuxnes/PLIST    Mon Jul 19 20:29:37 2004 +0000
@@ -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 -r e05c6a150c20 -r 1f27e23b3caa emulators/tuxnes/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tuxnes/distinfo Mon Jul 19 20:29:37 2004 +0000
@@ -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 -r e05c6a150c20 -r 1f27e23b3caa emulators/tuxnes/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tuxnes/patches/patch-aa Mon Jul 19 20:29:37 2004 +0000
@@ -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 -r e05c6a150c20 -r 1f27e23b3caa emulators/tuxnes/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tuxnes/patches/patch-ab Mon Jul 19 20:29:37 2004 +0000
@@ -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 -r e05c6a150c20 -r 1f27e23b3caa emulators/tuxnes/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tuxnes/patches/patch-ac Mon Jul 19 20:29:37 2004 +0000
@@ -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 -r e05c6a150c20 -r 1f27e23b3caa emulators/tuxnes/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tuxnes/patches/patch-ad Mon Jul 19 20:29:37 2004 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index