From fbe9d42ecb3c82ca72d32a6f2eda2efcdf42a580 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 18 May 1999 23:14:16 +0000 Subject: 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. --- emulators/stella/Makefile | 29 +++++++++++++++++++++++++++++ emulators/stella/files/md5 | 3 +++ emulators/stella/patches/patch-aa | 29 +++++++++++++++++++++++++++++ emulators/stella/patches/patch-ab | 24 ++++++++++++++++++++++++ emulators/stella/patches/patch-ac | 38 ++++++++++++++++++++++++++++++++++++++ emulators/stella/pkg/COMMENT | 1 + emulators/stella/pkg/DESCR | 7 +++++++ emulators/stella/pkg/PLIST | 15 +++++++++++++++ 8 files changed, 146 insertions(+) create mode 100644 emulators/stella/Makefile create mode 100644 emulators/stella/files/md5 create mode 100644 emulators/stella/patches/patch-aa create mode 100644 emulators/stella/patches/patch-ab create mode 100644 emulators/stella/patches/patch-ac create mode 100644 emulators/stella/pkg/COMMENT create mode 100644 emulators/stella/pkg/DESCR create mode 100644 emulators/stella/pkg/PLIST (limited to 'emulators') diff --git a/emulators/stella/Makefile b/emulators/stella/Makefile new file mode 100644 index 00000000000..237e800d141 --- /dev/null +++ b/emulators/stella/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/05/18 23:14:16 tv Exp $ + +DISTNAME= stella-1.1-src +PKGNAME= stella-1.1 +CATEGORIES= emulators +MASTER_SITES= ftp://ftp.eos.ncsu.edu/pub/bsvc/stella/1.1/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://stellar.atari.org/ + +USE_X11= yes + +WRKSRC= ${WRKDIR}/${PKGNAME}/src/build +MAKEFILE= makefile +ALL_TARGET= unix-x +MAKE_ENV= CXXFLAGS="${CXXFLAGS} -fno-rtti" + +post-build: + @cd ${WRKSRC}/../ui/sound && ${MAKE} oss + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/xstella ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/../ui/sound/stella-sound ${PREFIX}/bin/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/stella ${PREFIX}/share/doc/stella + ${INSTALL_DATA} ${WRKSRC}/../../games/ROMS/* ${PREFIX}/share/stella/ + ${INSTALL_DATA} ${WRKSRC}/../../games/docs/* ${PREFIX}/share/doc/stella/ + ${INSTALL_DATA} ${WRKSRC}/../../docs/Stella.pdf ${PREFIX}/share/doc/stella/stella.pdf + +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/stella/files/md5 b/emulators/stella/files/md5 new file mode 100644 index 00000000000..b5eda6d8ead --- /dev/null +++ b/emulators/stella/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/05/18 23:14:16 tv Exp $ + +MD5 (stella-1.1-src.tar.gz) = 6e2e5336f2789654ddd822d82a4c7b8e 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 + #include + +-#ifdef __FreeBSD__ +- #include +-#else +- #include +-#endif ++#include + + #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: diff --git a/emulators/stella/pkg/COMMENT b/emulators/stella/pkg/COMMENT new file mode 100644 index 00000000000..441f4a2eaef --- /dev/null +++ b/emulators/stella/pkg/COMMENT @@ -0,0 +1 @@ +A multi-platform Atari 2600 VCS emulator. diff --git a/emulators/stella/pkg/DESCR b/emulators/stella/pkg/DESCR new file mode 100644 index 00000000000..f964907a60c --- /dev/null +++ b/emulators/stella/pkg/DESCR @@ -0,0 +1,7 @@ +Stella is a freely distributed multi-platform Atari 2600 VCS emulator; +originally developed for Linux by Bradford W. Mott. Stella allows you to +enjoy all of your favorite 2600 games once again by emulating the 2600's +hardware with software. Stella is written in C++, which allows it to be +ported to other operating systems and architectures. Since its original +release Stella has been ported to AcornOS, AmigaOS, DOS, FreeBSD, IRIX, +Linux, MacOS, OpenStep, OS/2, Unix, and Windows. diff --git a/emulators/stella/pkg/PLIST b/emulators/stella/pkg/PLIST new file mode 100644 index 00000000000..c616c3f018f --- /dev/null +++ b/emulators/stella/pkg/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/05/18 23:14:16 tv Exp $ +bin/xstella +bin/stella-sound +share/doc/stella/elk.doc +share/doc/stella/okiedoke.doc +share/doc/stella/oystron.doc +share/doc/stella/stella.pdf +share/doc/stella/tps.doc +share/stella/ELK.BIN +share/stella/OKIEDOKE.BIN +share/stella/OYSTR29.BIN +share/stella/TEST.BIN +share/stella/TPS.BIN +@dirrm share/doc/stella +@dirrm share/stella -- cgit v1.2.3