From c774e181e3a239ac47b9f471a6fe6fc8dc495a9d Mon Sep 17 00:00:00 2001 From: Masafumi Max NAKANE Date: Mon, 7 Jul 1997 11:22:08 +0000 Subject: [PATCH] New port, prodosemu: A text based Apple IIe ProDOS emulator. PR: 2817 Submitted by: Joel Sutton --- emulators/prodosemu/Makefile | 20 +++++++ emulators/prodosemu/distinfo | 1 + emulators/prodosemu/files/patch-aa | 71 +++++++++++++++++++++++ emulators/prodosemu/files/patch-ab | 21 +++++++ emulators/prodosemu/files/patch-ac | 27 +++++++++ emulators/prodosemu/pkg-comment | 1 + emulators/prodosemu/pkg-descr | 93 ++++++++++++++++++++++++++++++ emulators/prodosemu/pkg-plist | 3 + 8 files changed, 237 insertions(+) create mode 100644 emulators/prodosemu/Makefile create mode 100644 emulators/prodosemu/distinfo create mode 100644 emulators/prodosemu/files/patch-aa create mode 100644 emulators/prodosemu/files/patch-ab create mode 100644 emulators/prodosemu/files/patch-ac create mode 100644 emulators/prodosemu/pkg-comment create mode 100644 emulators/prodosemu/pkg-descr create mode 100644 emulators/prodosemu/pkg-plist diff --git a/emulators/prodosemu/Makefile b/emulators/prodosemu/Makefile new file mode 100644 index 000000000000..829a356cbc17 --- /dev/null +++ b/emulators/prodosemu/Makefile @@ -0,0 +1,20 @@ +# New ports collection makefile for: prodosemu +# Version required: 0.1 +# Date created: 18th February 1997 +# Whom: Joel Sutton +# +# $Id$ +# + +DISTNAME= prodosemu.v0.1 +PKGNAME= prodosemu-0.1 +CATEGORIES= emulators +MASTER_SITES= ftp://ftp.apple.asimov.net/pub/apple_II/emulators/prodosemu/ + +MAINTAINER= sutton@aardvark.apana.org.au + +NO_PACKAGE= yes +RESTRICTED= apple.rom copyright is owned by Apple and cannot be distributed. +WRKSRC= ${WRKDIR}/prodosemu-v0.1 + +.include diff --git a/emulators/prodosemu/distinfo b/emulators/prodosemu/distinfo new file mode 100644 index 000000000000..9f6d70de6daa --- /dev/null +++ b/emulators/prodosemu/distinfo @@ -0,0 +1 @@ +MD5 (prodosemu.v0.1.tar.gz) = 0d2669c945f991f2d18dfadba872bf75 diff --git a/emulators/prodosemu/files/patch-aa b/emulators/prodosemu/files/patch-aa new file mode 100644 index 000000000000..ca9580f48a54 --- /dev/null +++ b/emulators/prodosemu/files/patch-aa @@ -0,0 +1,71 @@ +diff -rc prodosemu-v0.1/Makefile prodosemu/Makefile +*** Makefile Tue Jan 9 15:00:03 1996 +--- Makefile Tue Feb 18 09:40:38 1997 +*************** +*** 1,12 **** + # +! #Makefile for ProDOS Emulator v0.1 +! # + + all : prodos + + # Linux doesn't seem to like Randy Frank's beep code, + # if you're compiling on something else, you could try not defining NOBEEP +! OPT = -O2 -DNOBEEP + + # Necessary libraries + LIB = -lcurses -ltermcap +--- 1,28 ---- + # +! # Makefile for ProDOS Emulator v0.1 +! # FreeBSD modifications by Joel Sutton 18th Feb, 1997 +! +! # Paths to various places +! PREFIX?= /usr/local +! BINDIR= ${PREFIX}/bin +! LIBDIR= ${PREFIX}/lib +! MANDIR= ${PREFIX}/man +! ROMDIR= ${LIBDIR}/apple2 +! ROM= prodos-2e.rom +! +! # Certain programs +! INSTALL= install -c +! INSTALL_BIN= ${INSTALL} -s -o bin -g bin +! INSTALL_DATA= ${INSTALL} -m 664 +! INSTALL_MAN= ${INSTALL} -m 444 +! CP?= /bin/cp +! MKDIR?= -/bin/mkdir + + all : prodos + + # Linux doesn't seem to like Randy Frank's beep code, + # if you're compiling on something else, you could try not defining NOBEEP +! OPT = -O2 -DNOBEEP -DROMFILE=\"${ROMDIR}/${ROM}\" + + # Necessary libraries + LIB = -lcurses -ltermcap +*************** +*** 30,35 **** + prodos : $(OBJ) + cc $(OPT) -o prodos $(OBJ) $(LIB) + + # Clean up + clean: +! rm *.o *~ +--- 46,61 ---- + prodos : $(OBJ) + cc $(OPT) -o prodos $(OBJ) $(LIB) + ++ # Install the program ++ install: all ++ ${MKDIR} ${BINDIR} ++ ${MKDIR} ${LIBDIR} ++ ${MKDIR} ${ROMDIR} ++ ++ ${INSTALL_BIN} prodos ${BINDIR}/ ++ ${CP} apple.rom ${ROM} ++ ${INSTALL_DATA} ${ROM} ${ROMDIR}/ ++ + # Clean up + clean: +! rm *.o diff --git a/emulators/prodosemu/files/patch-ab b/emulators/prodosemu/files/patch-ab new file mode 100644 index 000000000000..6ddbc455b235 --- /dev/null +++ b/emulators/prodosemu/files/patch-ab @@ -0,0 +1,21 @@ +diff -rc prodosemu-v0.1/apple.h prodosemu/apple.h +*** apple.h Tue Jan 9 15:00:03 1996 +--- apple.h Tue Feb 18 07:02:04 1997 +*************** +*** 18,25 **** + #endif + + #ifndef CBREAK +! /*#include */ +! #include + #endif + + #ifndef TIOCGETP +--- 18,24 ---- + #endif + + #ifndef CBREAK +! #include + #endif + + #ifndef TIOCGETP diff --git a/emulators/prodosemu/files/patch-ac b/emulators/prodosemu/files/patch-ac new file mode 100644 index 000000000000..27cc257b05b9 --- /dev/null +++ b/emulators/prodosemu/files/patch-ac @@ -0,0 +1,27 @@ +diff -rc prodosemu-v0.1/main.c prodosemu/main.c +*** main.c Tue Jan 9 15:00:03 1996 +--- main.c Tue Feb 18 09:43:54 1997 +*************** +*** 9,16 **** + + #include "apple.h" + #include + #define REF_DELAY 2000 +! #define ROMFILE "apple.rom" + + extern char prodosroot[]; + +--- 9,21 ---- + + #include "apple.h" + #include ++ + #define REF_DELAY 2000 +! +! /* Where is the default rom file?? */ +! #ifndef ROMFILE +! #define ROMFILE "/usr/local/lib/apple2/prodos-2e.rom" +! #endif + + extern char prodosroot[]; + diff --git a/emulators/prodosemu/pkg-comment b/emulators/prodosemu/pkg-comment new file mode 100644 index 000000000000..4e76b0bd6ca6 --- /dev/null +++ b/emulators/prodosemu/pkg-comment @@ -0,0 +1 @@ +A text based Apple IIe ProDOS emulator. diff --git a/emulators/prodosemu/pkg-descr b/emulators/prodosemu/pkg-descr new file mode 100644 index 000000000000..69102cb3ac21 --- /dev/null +++ b/emulators/prodosemu/pkg-descr @@ -0,0 +1,93 @@ +Prodosemu is a text based Apple IIe ProDOS emulator. Unlike most +popular Apple emulators it does not use disk images, instead it uses +the UNIX file-system. If you have an Apple IIe then you will need to +transfer your programs/files into a directory somewhere with your +favorite comm's program. Otherwise you will need to install the aftp +port to pull the files out from the Apple disk images that are widely +available on the net (eg the ProDOS system disk available from +asimov). + +The rom file (included) is stored in /usr/local/lib/apple2 (or similar +path on your system) under the name "prodos-2e.rom". I've adopted this +title so that Prodosemu can co-exist with the other apple emulators in +the ports collection. + +There is no man page for this program so I have included the slightly +modified README at the end of this document. + +Check out the following for all things Apple II: + +ftp://ftp.apple.asimov.net/ - Apple II archives +news://comp.emulators.apple2/ - Apple II news group + +Share and enjoy, +Joel... +sutton@aardvark.apana.org.au + +=========== +ProDOS Emulator by Matthew Ghio v0.1 of January 8, 1996 + +To use prodosemu you will need a copy of the Apple IIe ROM. To get the +ROM from an Apple IIe, boot into prodos/basic and do the following: + + ]CALL -151 + *C007:0 + *2100