summaryrefslogtreecommitdiff
path: root/emulators/stella/patches
diff options
context:
space:
mode:
authortv <tv>1999-05-18 23:14:16 +0000
committertv <tv>1999-05-18 23:14:16 +0000
commitdb1596af4b3674eb0f9f16ab1c22e35c0696e652 (patch)
tree6c4fa9b93c4c471dc5b02e055bf26208fac3c4ff /emulators/stella/patches
parentc3df67ba4704adab2ab4c717fb7e930191a8f1bc (diff)
downloadpkgsrc-db1596af4b3674eb0f9f16ab1c22e35c0696e652.tar.gz
Import stella-1.1, an Atari 2600 VCS (and compatibles) emulator written in
C++. Took hints from the FreeBSD port, but rewrote this one from scratch.
Diffstat (limited to 'emulators/stella/patches')
-rw-r--r--emulators/stella/patches/patch-aa29
-rw-r--r--emulators/stella/patches/patch-ab24
-rw-r--r--emulators/stella/patches/patch-ac38
3 files changed, 91 insertions, 0 deletions
diff --git a/emulators/stella/patches/patch-aa b/emulators/stella/patches/patch-aa
new file mode 100644
index 00000000000..56161fecece
--- /dev/null
+++ b/emulators/stella/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/05/18 23:14:16 tv Exp $
+
+--- ../ui/sound/OSS.c.orig Tue May 18 10:19:45 1999
++++ ../ui/sound/OSS.c Tue May 18 10:24:03 1999
+@@ -32,11 +32,7 @@
+ #include <sys/types.h>
+ #include <unistd.h>
+
+-#ifdef __FreeBSD__
+- #include <machine/soundcard.h>
+-#else
+- #include <sys/soundcard.h>
+-#endif
++#include <soundcard.h>
+
+ #include "TIASound.h"
+
+@@ -61,9 +57,9 @@
+ int mute = 0;
+
+ /* Open the sound device for writing */
+- if((fd = open("/dev/dsp", O_WRONLY, 0)) == -1)
++ if((fd = open("/dev/mixer", O_WRONLY, 0)) == -1)
+ {
+- printf("stella-sound: Unable to open /dev/dsp device!\n");
++ printf("stella-sound: Unable to open /dev/mixer device!\n");
+ return 1;
+ }
+
diff --git a/emulators/stella/patches/patch-ab b/emulators/stella/patches/patch-ab
new file mode 100644
index 00000000000..0d9a9a7ecb7
--- /dev/null
+++ b/emulators/stella/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/05/18 23:14:16 tv Exp $
+
+--- ../ui/sound/makefile.orig Tue May 18 10:25:27 1999
++++ ../ui/sound/makefile Tue May 18 10:26:05 1999
+@@ -1,9 +1,8 @@
+ ###############################################################################
+ ## C compiler to use
+ ###############################################################################
+-CC = gcc
+
+-CFLAGS = -DWIN32 -O -ansi -Wall
++CPPFLAGS = -DWIN32
+
+ OBJS = TIASound.o
+
+@@ -29,7 +28,7 @@
+ uss: oss
+
+ oss: $(OBJS) OSS.o
+- $(CC) -o stella-sound OSS.o $(OBJS)
++ $(CC) -o stella-sound OSS.o $(OBJS) -lossaudio
+
+ clean:
+ rm -f *.o stella-sound
diff --git a/emulators/stella/patches/patch-ac b/emulators/stella/patches/patch-ac
new file mode 100644
index 00000000000..dc767e94a00
--- /dev/null
+++ b/emulators/stella/patches/patch-ac
@@ -0,0 +1,38 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/05/18 23:14:16 tv Exp $
+
+--- makefile.orig Sat Feb 27 09:29:46 1999
++++ makefile Tue May 18 10:37:57 1999
+@@ -34,10 +34,8 @@
+ ##
+ ##============================================================================
+
+-CXX = g++
+-LD = g++
++LD = ${CXX}
+
+-LDFLAGS =
+ LDLIBS =
+
+ SRC = ..
+@@ -46,7 +44,7 @@
+
+ INCLUDES = -I. -I$(CORE) -I$(CORE)/m6502/src -I$(CORE)/m6502/src/bspf/src
+
+-CXXFLAGS = -O -Wall $(INCLUDES) $(SYS_INCLUDES)
++CXXFLAGS += $(INCLUDES) $(SYS_INCLUDES)
+
+ default:
+ @echo ""
+@@ -78,10 +76,9 @@
+ unix-x:
+ make xstella \
+ INCLUDES="$(INCLUDES) -I$(UI)/x11 -I$(UI)/sound" \
+- SYS_INCLUDES="" \
++ SYS_INCLUDES="-I$(X11BASE)/include" \
+ OPTIONS="-DBSPF_UNIX" \
+- LDFLAGS="-L/usr/X11R6/lib" \
+- LDLIBS="-lX11 -lXext" \
++ LDLIBS="-L$(X11BASE)/lib -lX11 -lXext" \
+ OBJS="mainX11.o SndUnix.o"
+
+ linux-x: