summaryrefslogtreecommitdiff
path: root/emulators/atari800
diff options
context:
space:
mode:
authortv <tv>1999-05-23 05:17:04 +0000
committertv <tv>1999-05-23 05:17:04 +0000
commit65167e7520c6058cb57b389c38c9de5a4a4c6f89 (patch)
treecad054206b54c237feda7bf721d4dc90ae944898 /emulators/atari800
parent9932937e186316a52ea456fa375134e4a066a6d4 (diff)
downloadpkgsrc-65167e7520c6058cb57b389c38c9de5a4a4c6f89.tar.gz
An Atari 800/XL/5200 emulator for the X Window System.
Diffstat (limited to 'emulators/atari800')
-rw-r--r--emulators/atari800/Makefile52
-rw-r--r--emulators/atari800/files/atari800.cfg22
-rw-r--r--emulators/atari800/files/md54
-rw-r--r--emulators/atari800/patches/patch-aa25
-rw-r--r--emulators/atari800/patches/patch-ab13
-rw-r--r--emulators/atari800/patches/patch-ac15
-rw-r--r--emulators/atari800/pkg/COMMENT1
-rw-r--r--emulators/atari800/pkg/DESCR30
-rw-r--r--emulators/atari800/pkg/PLIST16
9 files changed, 178 insertions, 0 deletions
diff --git a/emulators/atari800/Makefile b/emulators/atari800/Makefile
new file mode 100644
index 00000000000..bdb8cb67763
--- /dev/null
+++ b/emulators/atari800/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/05/23 05:17:04 tv Exp $
+
+DISTNAME= Atari800-0.9.8
+PKGNAME= atari800-0.9.8
+CATEGORIES= emulators
+MASTER_SITES= http://cas3.zlin.vutbr.cz/~stehlik/a800/ \
+ http://www.signus.demon.co.uk/Software/Portable/Atari800e/
+DISTFILES= a800s098.zip xf25.zip
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://cas3.zlin.vutbr.cz/~stehlik/a800.htm
+
+BUILD_DEPENDS= unzip:../../archivers/unzip
+
+USE_X11= yes
+RESTRICTED= "copyrighted ROM images"
+MIRROR_DISTFILE=no
+
+EXTRACT_CMD= unzip -Loq ${DOWNLOADED_DISTFILE}
+MAKE_FLAGS= LDFLAGS="${LDFLAGS} -L${X11BASE}/lib" OBJ="atari_x11.o" \
+ CFLAGS="-c ${CFLAGS} -DPREFIX=\\\"${PREFIX}\\\""
+
+post-extract:
+ @find ${WRKDIR} -type f -print | xargs ${CHMOD} 0644
+ @${MV} ${WRKDIR}/atari800-0.9.8/* ${WRKSRC}/
+
+do-build:
+ @printf 'n\nn\ny\n' | (cd ${WRKSRC} && \
+ ${MAKE} ${MAKE_FLAGS} -f Makefile.unix config.h >/dev/null)
+ @${RM} -f ${WRKSRC}/atari_x11.o
+ @cd ${WRKSRC} && ${MAKE} CPPFLAGS="-I${X11BASE}/include -DSHM" \
+ LDLIBS="-lX11 -lXext -lm -lossaudio" ${MAKE_FLAGS} \
+ -f Makefile.unix atari800
+ ${MV} ${WRKSRC}/atari800 ${WRKSRC}/atari800-shm
+ @${RM} -f ${WRKSRC}/atari_x11.o
+ @cd ${WRKSRC} && ${MAKE} CPPFLAGS="-I${X11BASE}/include" \
+ LDLIBS="-lX11 -lm -lossaudio" ${MAKE_FLAGS} \
+ -f Makefile.unix atari800
+ ${SED} -e 's,@PREFIX@,${PREFIX},g' <${FILESDIR}/atari800.cfg \
+ >${WRKSRC}/atari800.cfg
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/atari800 ${PREFIX}/share/doc/atari800
+ ${INSTALL_PROGRAM} ${WRKSRC}/atari800-shm ${WRKSRC}/atari800 \
+ ${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKDIR}/*.rom ${WRKDIR}/*.xfd ${WRKDIR}/*.atr \
+ ${WRKSRC}/atari800.cfg ${PREFIX}/share/atari800/
+ ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/USAGE \
+ ${PREFIX}/share/doc/atari800
+ ${INSTALL_DATA} ${WRKSRC}/atari800.man ${PREFIX}/man/man1/atari800.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/atari800/files/atari800.cfg b/emulators/atari800/files/atari800.cfg
new file mode 100644
index 00000000000..414577e10e9
--- /dev/null
+++ b/emulators/atari800/files/atari800.cfg
@@ -0,0 +1,22 @@
+Atari 800 Emulator, Version 0.9.8
+OS/A_ROM=
+OS/B_ROM=@PREFIX@/share/atari800/atariosb.rom
+XL/XE_ROM=@PREFIX@/share/atari800/atarixl.rom
+BASIC_ROM=@PREFIX@/share/atari800/ataribas.rom
+5200_ROM=
+DISK_DIR=@PREFIX@/share/atari800/
+ROM_DIR=@PREFIX@/share/atari800/
+H1_DIR=
+H2_DIR=
+H3_DIR=
+H4_DIR=
+EXE_DIR=
+STATE_DIR=
+PRINT_COMMAND=lpr %s
+SCREEN_REFRESH_RATIO=1
+DEFAULT_SYSTEM=Atari XL
+DEFAULT_TV_MODE=PAL
+HOLD_OPTION=1
+ENABLE_C000_RAM=0
+ENABLE_ROM_PATCH=1
+ENABLE_SIO_PATCH=1
diff --git a/emulators/atari800/files/md5 b/emulators/atari800/files/md5
new file mode 100644
index 00000000000..42c9377d84d
--- /dev/null
+++ b/emulators/atari800/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 1999/05/23 05:17:04 tv Exp $
+
+MD5 (a800s098.zip) = a6b44bd582d6735808fba92b6a3802ff
+MD5 (xf25.zip) = 4dc3b6b4313e9596c4d474785a37b94d
diff --git a/emulators/atari800/patches/patch-aa b/emulators/atari800/patches/patch-aa
new file mode 100644
index 00000000000..dd4469b3829
--- /dev/null
+++ b/emulators/atari800/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/05/23 05:17:05 tv Exp $
+
+--- sound.c.orig Tue Dec 1 11:46:36 1998
++++ sound.c Sun May 23 00:35:02 1999
+@@ -5,7 +5,7 @@
+ #ifdef VOXWARE
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+-#include <sys/soundcard.h>
++#include <soundcard.h>
+
+ #include "pokeysnd.h"
+
+@@ -57,9 +57,9 @@
+ unsigned int formats;
+ int tmp;
+
+- dsp_fd = open("/dev/dsp", O_WRONLY, 0777);
++ dsp_fd = open("/dev/audio", O_WRONLY, 0777);
+ if (dsp_fd == -1) {
+- perror("/dev/dsp");
++ perror("/dev/audio");
+ exit(1);
+ }
+ /*
diff --git a/emulators/atari800/patches/patch-ab b/emulators/atari800/patches/patch-ab
new file mode 100644
index 00000000000..192977c8064
--- /dev/null
+++ b/emulators/atari800/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/05/23 05:17:05 tv Exp $
+
+--- rt-config.c.orig Sun May 23 00:57:27 1999
++++ rt-config.c Sun May 23 00:57:49 1999
+@@ -41,7 +41,7 @@
+ extern int Ram256;
+
+ static char *rtconfig_filename1 = "atari800.cfg";
+-static char *rtconfig_filename2 = "/etc/atari800.cfg";
++static char *rtconfig_filename2 = PREFIX "/share/atari800/atari800.cfg";
+
+ int RtConfigLoad(char *rtconfig_filename)
+ {
diff --git a/emulators/atari800/patches/patch-ac b/emulators/atari800/patches/patch-ac
new file mode 100644
index 00000000000..5d8d3417b55
--- /dev/null
+++ b/emulators/atari800/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/05/23 05:17:05 tv Exp $
+
+--- atari800.man.orig Sun May 23 01:07:10 1999
++++ atari800.man Sun May 23 01:15:31 1999
+@@ -117,8 +117,8 @@
+ Runs the emulator in a huge window where each Atari 800 pixel is
+ represented by a 3x3 X Window rectange.
+ .TP
+-\fB-sound
+-Enable sound using the Network Audio System.
++\fB-nosound
++Disable sound (necessary if no audio device is available).
+ .SS Amiga Options
+ .TP
+ \fB-ocs
diff --git a/emulators/atari800/pkg/COMMENT b/emulators/atari800/pkg/COMMENT
new file mode 100644
index 00000000000..e213d6e6c63
--- /dev/null
+++ b/emulators/atari800/pkg/COMMENT
@@ -0,0 +1 @@
+Atari 8-bit computer, 5200 console emulator
diff --git a/emulators/atari800/pkg/DESCR b/emulators/atari800/pkg/DESCR
new file mode 100644
index 00000000000..8abc7000817
--- /dev/null
+++ b/emulators/atari800/pkg/DESCR
@@ -0,0 +1,30 @@
+Please refer to /usr/pkg/share/doc/atari (or equivalent on your
+system) for the distribution documents. A man page has also been
+installed. The system wide configuration file can be found at
+/usr/pkg/lib/atari/atari800.cfg (or similar) which you will probably
+want to copy to your home directory, at some stage, to personalise the
+settings.
+
+If you're at all serious about your emulator then you SHOULD check out
+these URL's in the order they're written:
+
+ http://www.signus.demon.co.uk/david/
+ http://zippy.sonoma.edu/~kendrick/nbs/new_and_emu.html
+ ftp://ftp.hackerz.com/hackerz/atari/web/index.html
+ comp.sys.atari.8bit
+
+This should get you started and provide you with numerous links to
+other web sites.
+
+The ROM's for the Atari computers are, unfortunately, copyright. This
+port will attempt to down-load another freeware Atari emulator for DOS
+called PC Xformer 2.5 which contains copies of these ROM files. If you
+would like to take a further look at XF2.5 you should find it in your
+distfiles directory (if it successfully down-loaded :->). For more info
+on this emulator check out "http://www.halcyon.com/brasoft/".
+
+Share and enjoy,
+
+Joel...
+jsutton@webnet.com.au
+(from the FreeBSD port)
diff --git a/emulators/atari800/pkg/PLIST b/emulators/atari800/pkg/PLIST
new file mode 100644
index 00000000000..47be8f8f477
--- /dev/null
+++ b/emulators/atari800/pkg/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/05/23 05:17:04 tv Exp $
+bin/atari800
+bin/atari800-shm
+man/man1/atari800.1
+share/atari800/atari800.cfg
+share/atari800/ataribas.rom
+share/atari800/atariosb.rom
+share/atari800/atarixl.rom
+share/atari800/demos1.xfd
+share/atari800/demos2.xfd
+share/atari800/dos25.xfd
+share/atari800/mydos45d.atr
+share/doc/atari800/README
+share/doc/atari800/USAGE
+@dirrm share/doc/atari800
+@dirrm share/atari800