summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-07-19 18:37:14 +0000
committerwiz <wiz@pkgsrc.org>2004-07-19 18:37:14 +0000
commitc2f557623f6e90afbbf474b2c49ea79e47bb737b (patch)
treea995f83b6e376ed501f9a155cce5b14285f4e165 /emulators
parenteb960e360add8db0b8ff916d424371f73be93d2a (diff)
downloadpkgsrc-c2f557623f6e90afbbf474b2c49ea79e47bb737b.tar.gz
Initial import of FCE Ultra, a Nintendo Entertainment System and
Famicom emulator. FCE Ultra is an NTSC and PAL Famicom/NES emulator for various platforms. It is based upon Bero's original FCE source code. Current features include good PPU, CPU, pAPU, expansion chip, and joystick emulation. Also a feature unique to this emulator (at the current time) is authentic Game Genie emulation. Save states and snapshot features also have been implemented.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/fceu/DESCR6
-rw-r--r--emulators/fceu/Makefile36
-rw-r--r--emulators/fceu/PLIST10
-rw-r--r--emulators/fceu/distinfo7
-rw-r--r--emulators/fceu/patches/patch-aa17
-rw-r--r--emulators/fceu/patches/patch-ab15
-rw-r--r--emulators/fceu/patches/patch-ac16
7 files changed, 107 insertions, 0 deletions
diff --git a/emulators/fceu/DESCR b/emulators/fceu/DESCR
new file mode 100644
index 00000000000..3046a1671c9
--- /dev/null
+++ b/emulators/fceu/DESCR
@@ -0,0 +1,6 @@
+FCE Ultra is an NTSC and PAL Famicom/NES emulator for various
+platforms. It is based upon Bero's original FCE source code. Current
+features include good PPU, CPU, pAPU, expansion chip, and joystick
+emulation. Also a feature unique to this emulator (at the current
+time) is authentic Game Genie emulation. Save states and snapshot
+features also have been implemented.
diff --git a/emulators/fceu/Makefile b/emulators/fceu/Makefile
new file mode 100644
index 00000000000..27e4cbd308b
--- /dev/null
+++ b/emulators/fceu/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/19 18:37:14 wiz Exp $
+#
+
+DISTNAME= fceu-0.98.10.src
+PKGNAME= ${DISTNAME:S/.src//}
+CATEGORIES= emulators
+MASTER_SITES= http://fceultra.sourceforge.net/releases/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= wiz@NetBSD.org
+HOMEPAGE= http://fceultra.sourceforge.net/
+COMMENT= Portable NES and Famicom emulator
+
+WRKSRC= ${WRKDIR}/fceu
+USE_BUILDLINK3= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+
+SUBST_CLASSES+= dsp
+SUBST_STAGE.dsp= post-patch
+SUBST_MESSAGE.dsp= Adjusting sound device path.
+SUBST_FILES.dsp= src/drivers/sexyal/drivers/oss.c
+SUBST_SED.dsp= -e "s|/dev/dsp|${DEVOSSAUDIO}|"
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/Documentation/fceu-sdl.6 \
+ ${PREFIX}/man/man6/fceu.6
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fceu
+ ${INSTALL_DATA} ${WRKSRC}/Documentation/*.html \
+ ${PREFIX}/share/doc/fceu
+ ${INSTALL_DATA} ${WRKSRC}/Documentation/*.txt \
+ ${PREFIX}/share/doc/fceu
+
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../mk/ossaudio.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/fceu/PLIST b/emulators/fceu/PLIST
new file mode 100644
index 00000000000..e064c3527ea
--- /dev/null
+++ b/emulators/fceu/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/19 18:37:14 wiz Exp $
+bin/fceu
+man/man6/fceu.6
+share/doc/fceu/cheat.html
+share/doc/fceu/faq.html
+share/doc/fceu/fceultra.html
+share/doc/fceu/fcm.txt
+share/doc/fceu/fcs.txt
+share/doc/fceu/protocol.txt
+@dirrm share/doc/fceu
diff --git a/emulators/fceu/distinfo b/emulators/fceu/distinfo
new file mode 100644
index 00000000000..2020b777513
--- /dev/null
+++ b/emulators/fceu/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/19 18:37:15 wiz Exp $
+
+SHA1 (fceu-0.98.10.src.tar.bz2) = 578e25792f42e8fd640f0bd070241c43a63bbda2
+Size (fceu-0.98.10.src.tar.bz2) = 559750 bytes
+SHA1 (patch-aa) = e2e32735e52963f456ae9f74ed94b30d22468394
+SHA1 (patch-ab) = 192e6c25fd63db9cea4975af515e6e831bc56040
+SHA1 (patch-ac) = 8a5297b11484c6eaf5d70a391bb486ff58475f35
diff --git a/emulators/fceu/patches/patch-aa b/emulators/fceu/patches/patch-aa
new file mode 100644
index 00000000000..12a6bbe1501
--- /dev/null
+++ b/emulators/fceu/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/07/19 18:37:15 wiz Exp $
+
+Make default keys match documentation.
+
+--- src/drivers/pc/input.c.orig 2004-05-17 01:48:26.000000000 +0200
++++ src/drivers/pc/input.c
+@@ -286,8 +286,8 @@ static void KeyboardCommands(void)
+ ButtConfig GamePadConfig[4][10]={
+ /* Gamepad 1 */
+ {
+- MK(KP3), MK(KP2), MK(TAB), MK(ENTER), MK(W),MK(Z),
+- MK(A), MK(S), MKZ(), MKZ()
++ MK(LEFTALT), MK(LEFTCONTROL), MK(TAB), MK(ENTER), MK(CURSORUP),
++ MK(CURSORDOWN), MK(CURSORLEFT), MK(CURSORRIGHT), MKZ(), MKZ()
+ },
+
+ /* Gamepad 2 */
diff --git a/emulators/fceu/patches/patch-ab b/emulators/fceu/patches/patch-ab
new file mode 100644
index 00000000000..e3550b82d32
--- /dev/null
+++ b/emulators/fceu/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/07/19 18:37:15 wiz Exp $
+
+SOL_TCP is 6, the same as IPPROTO_TCP and ISOPROTO_TCP on NetBSD.
+
+--- src/drivers/pc/unix-netplay.c.orig 2004-05-17 07:28:06.000000000 +0200
++++ src/drivers/pc/unix-netplay.c
+@@ -86,7 +86,7 @@ int FCEUD_NetworkConnect(void)
+ return(0);
+ }
+ int tcpopt = 1;
+- if(setsockopt(TSocket, SOL_TCP, TCP_NODELAY, &tcpopt, sizeof(int)))
++ if(setsockopt(TSocket, 6, TCP_NODELAY, &tcpopt, sizeof(int)))
+ puts("Nodelay fail");
+
+ memset(&sockin,0,sizeof(sockin));
diff --git a/emulators/fceu/patches/patch-ac b/emulators/fceu/patches/patch-ac
new file mode 100644
index 00000000000..293cc093bc8
--- /dev/null
+++ b/emulators/fceu/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/07/19 18:37:15 wiz Exp $
+
+NetBSD's zlib.h does not define OF().
+
+--- src/unzip.h.orig 2004-01-21 21:50:00.000000000 +0100
++++ src/unzip.h
+@@ -58,6 +58,9 @@ typedef unzFile__ *unzFile;
+ typedef voidp unzFile;
+ #endif
+
++#ifndef OF
++#define OF(a) a
++#endif
+
+ #define UNZ_OK (0)
+ #define UNZ_END_OF_LIST_OF_FILE (-100)