1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

New port for p-interp, a UCSD/Apple Pascal p-system interpreter.

This commit is contained in:
Nick Sayer 2001-08-21 14:15:11 +00:00
parent 730752364f
commit 582554d310
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46588
10 changed files with 122 additions and 0 deletions

View File

@ -33,6 +33,7 @@
SUBDIR += mastergear
SUBDIR += mtools
SUBDIR += osf1_base
SUBDIR += p-interp
SUBDIR += pcemu
SUBDIR += prodosemu
SUBDIR += qcl

View File

@ -0,0 +1,36 @@
# New ports collection makefile for: p-interp
# Date created: 21 Aug 2001
# Whom: Nick Sayer <nsayer@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= p-interp
PORTVERSION= 0.5
CATEGORIES= emulators
MASTER_SITES= http://www.klebsch.de/ \
ftp://ftp.apple.asimov.net/pub/apple_II/images/utility/programming/apple_pascal/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
apple_pascal_0.dsk.gz apple_pascal_1.dsk.gz \
apple_pascal_2.dsk.gz apple_pascal_3.dsk.gz
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= nsayer@FreeBSD.org
MAN1= ucsd.1 svolio.1 svolcvt.1
.include <bsd.port.pre.mk>
post-extract:
@cp ${DISTDIR}/apple_pascal_?.dsk.gz ${WRKDIR}/${DISTNAME}
@gunzip ${WRKDIR}/${DISTNAME}/apple_pascal_?.dsk.gz
post-patch:
cd ${WRKDIR}/${DISTNAME} && ${MAKE} depend
pre-install:
${MKDIR} ${PREFIX}/share/doc/p-interp
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README ${PREFIX}/share/doc/p-interp
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/COPYING ${PREFIX}/share/doc/p-interp
.include <bsd.port.post.mk>

View File

@ -0,0 +1,5 @@
MD5 (p-interp-0.5.tar.gz) = f202ba60c68076028e7a5bbdbf3fddc9
MD5 (apple_pascal_0.dsk.gz) = 16fdcd5303b23d5eff41f99489d5bdb0
MD5 (apple_pascal_1.dsk.gz) = f072e3e8d37b2a21f578ec9113541bee
MD5 (apple_pascal_2.dsk.gz) = f59249203cd4d62d9bcf4fe057a43b24
MD5 (apple_pascal_3.dsk.gz) = 457f1b9dc8edfc1856a7b4fff97298d6

View File

@ -0,0 +1,31 @@
--- Makefile.orig Sun Jun 10 13:40:04 2001
+++ Makefile Tue Aug 21 07:07:13 2001
@@ -61,13 +61,13 @@
#
#
-PREFIX=/usr/local
+#PREFIX=/usr/local
SRCS=interpreter.c Memory.c Stack.c Sets.c Array.c native6502.c Longint.c \
UnitIo.c Term.c Diskio.c Printer.c Search.c turtlegr.c ptrace.c
OBJS=$(SRCS:%.c=%.o)
-X11=/opt/X11
+X11=${X11BASE}
X11_INCLUDE=$(X11)/include
X11_LIB=$(X11)/lib
@@ -105,10 +105,10 @@
$(CC) -o $@ -g xturtleserver.c -I$(X11_INCLUDE) -L$(X11_LIB) -R$(X11_LIB) -lXt -lX11 -lm
ucsd: $(OBJS)
- $(CC) -o $@ $(OBJS) -lncurses_g -lm
+ $(CC) -o $@ $(OBJS) -lncurses -lm
svolio: svolio.o Diskio.o Memory.o
- $(CC) -o $@ $+ -lcurses
+ $(CC) -o $@ $> -lcurses
depend:
$(MAKEDEPEND) -DMAKEDEPEND $(INCLUDES) $(DEFINES) $(SRCS) svolio.c svolcvt.c xturtleserver.c

View File

@ -0,0 +1,11 @@
--- interpreter.c.orig Tue Aug 21 06:48:06 2001
+++ interpreter.c Tue Aug 21 06:48:30 2001
@@ -83,7 +83,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
-#include <getopt.h>
+/*#include <getopt.h>*/
#include "version.h"
#include "psystem.h"

View File

@ -0,0 +1,11 @@
--- svolio.c.orig Tue Aug 21 06:48:18 2001
+++ svolio.c Tue Aug 21 06:48:36 2001
@@ -44,7 +44,7 @@
#include <unistd.h>
#include <stdarg.h>
#include <ctype.h>
-#include <getopt.h>
+/*#include <getopt.h>*/
#include "psystem.h"
#include "Memory.h"

View File

@ -0,0 +1,11 @@
--- Term.c.orig Tue Aug 21 06:52:09 2001
+++ Term.c Tue Aug 21 06:52:18 2001
@@ -396,7 +396,7 @@
tcgetattr(TermOut, &OldTerm);
NewTerm=OldTerm;
NewTerm.c_iflag &= ~(PARMRK | ISTRIP | INLCR | IGNCR |
- ICRNL | IUCLC | IXOFF | IXON);
+ ICRNL | /*IUCLC |*/ IXOFF | IXON);
NewTerm.c_oflag &= ~OPOST;
NewTerm.c_lflag &= ~(ISIG | ICANON | ECHO | ECHONL | IEXTEN);
NewTerm.c_cc[VMIN]=1;

View File

@ -0,0 +1 @@
A UCSD (Apple) Pascal p-code interpreter environment

View File

@ -0,0 +1,9 @@
From the man page:
DESCRIPTION
This is the second public release of my P-code interpreter. It does allow
to run Apple Pascal (an ancient programming environment) on todays com-
puter systems. Although I did many improvements to this code after my
first release, it still is experimental code.
WWW: http://www.klebsch.de/

View File

@ -0,0 +1,6 @@
bin/ucsd
bin/svolio
bin/svolcvt
bin/xturtleserver
share/doc/p-interp/README
share/doc/p-interp/COPYING