aboutsummaryrefslogtreecommitdiff
path: root/emulators/p-interp
diff options
context:
space:
mode:
authorNick Sayer <nsayer@FreeBSD.org>2001-08-21 14:15:11 +0000
committerNick Sayer <nsayer@FreeBSD.org>2001-08-21 14:15:11 +0000
commit582554d310f45a39d8750a45b8ed860f02ad7df7 (patch)
treeafab834cf16d2b87df3cf7a795408e9a0e0e2aa4 /emulators/p-interp
parent730752364fe40fe0301814908403297c23305f30 (diff)
downloadports-582554d310f45a39d8750a45b8ed860f02ad7df7.tar.gz
ports-582554d310f45a39d8750a45b8ed860f02ad7df7.zip
Notes
Diffstat (limited to 'emulators/p-interp')
-rw-r--r--emulators/p-interp/Makefile36
-rw-r--r--emulators/p-interp/distinfo5
-rw-r--r--emulators/p-interp/files/patch-aa31
-rw-r--r--emulators/p-interp/files/patch-ab11
-rw-r--r--emulators/p-interp/files/patch-ac11
-rw-r--r--emulators/p-interp/files/patch-ad11
-rw-r--r--emulators/p-interp/pkg-comment1
-rw-r--r--emulators/p-interp/pkg-descr9
-rw-r--r--emulators/p-interp/pkg-plist6
9 files changed, 121 insertions, 0 deletions
diff --git a/emulators/p-interp/Makefile b/emulators/p-interp/Makefile
new file mode 100644
index 000000000000..39ba1e7f7c2f
--- /dev/null
+++ b/emulators/p-interp/Makefile
@@ -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>
diff --git a/emulators/p-interp/distinfo b/emulators/p-interp/distinfo
new file mode 100644
index 000000000000..38fc16af41df
--- /dev/null
+++ b/emulators/p-interp/distinfo
@@ -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
diff --git a/emulators/p-interp/files/patch-aa b/emulators/p-interp/files/patch-aa
new file mode 100644
index 000000000000..05659efbf057
--- /dev/null
+++ b/emulators/p-interp/files/patch-aa
@@ -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
diff --git a/emulators/p-interp/files/patch-ab b/emulators/p-interp/files/patch-ab
new file mode 100644
index 000000000000..93c332cd93aa
--- /dev/null
+++ b/emulators/p-interp/files/patch-ab
@@ -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"
diff --git a/emulators/p-interp/files/patch-ac b/emulators/p-interp/files/patch-ac
new file mode 100644
index 000000000000..e9fc7d714184
--- /dev/null
+++ b/emulators/p-interp/files/patch-ac
@@ -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"
diff --git a/emulators/p-interp/files/patch-ad b/emulators/p-interp/files/patch-ad
new file mode 100644
index 000000000000..523b5e173f61
--- /dev/null
+++ b/emulators/p-interp/files/patch-ad
@@ -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;
diff --git a/emulators/p-interp/pkg-comment b/emulators/p-interp/pkg-comment
new file mode 100644
index 000000000000..40abb649c147
--- /dev/null
+++ b/emulators/p-interp/pkg-comment
@@ -0,0 +1 @@
+A UCSD (Apple) Pascal p-code interpreter environment
diff --git a/emulators/p-interp/pkg-descr b/emulators/p-interp/pkg-descr
new file mode 100644
index 000000000000..1c71137f4e8e
--- /dev/null
+++ b/emulators/p-interp/pkg-descr
@@ -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/
diff --git a/emulators/p-interp/pkg-plist b/emulators/p-interp/pkg-plist
new file mode 100644
index 000000000000..43cf6a806cf9
--- /dev/null
+++ b/emulators/p-interp/pkg-plist
@@ -0,0 +1,6 @@
+bin/ucsd
+bin/svolio
+bin/svolcvt
+bin/xturtleserver
+share/doc/p-interp/README
+share/doc/p-interp/COPYING