summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjwise <jwise>1999-01-31 03:47:27 +0000
committerjwise <jwise>1999-01-31 03:47:27 +0000
commit50f95d9f98f01197b40922b15592fa504fcc1f75 (patch)
tree154949b3b1cd0ee3f66fe7437c945f4fcc949984 /lang
parent4d12f32c001a5d8b60467580e2301ac9a0e5aca9 (diff)
downloadpkgsrc-50f95d9f98f01197b40922b15592fa504fcc1f75.tar.gz
p2c, a Pascal-to-C translator
Diffstat (limited to 'lang')
-rw-r--r--lang/p2c/Makefile13
-rw-r--r--lang/p2c/files/md52
-rw-r--r--lang/p2c/patches/patch-aa102
-rw-r--r--lang/p2c/patches/patch-ab11
-rw-r--r--lang/p2c/pkg/COMMENT1
-rw-r--r--lang/p2c/pkg/DESCR4
-rw-r--r--lang/p2c/pkg/PLIST13
7 files changed, 146 insertions, 0 deletions
diff --git a/lang/p2c/Makefile b/lang/p2c/Makefile
new file mode 100644
index 00000000000..c6ba9fbb9d1
--- /dev/null
+++ b/lang/p2c/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/01/31 03:47:27 jwise Exp $
+
+DISTNAME= p2c-1.20
+WRKSRC= ${WRKDIR}/src
+CATEGORIES= lang
+MASTER_SITES= ftp://csvax.cs.caltech.edu/pub/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= jwise@unicast.com
+
+MAKE_FLAGS+= CFLAGS='-Dunix'
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/p2c/files/md5 b/lang/p2c/files/md5
new file mode 100644
index 00000000000..d20635f4212
--- /dev/null
+++ b/lang/p2c/files/md5
@@ -0,0 +1,2 @@
+$NetBSD: md5,v 1.1.1.1 1999/01/31 03:47:28 jwise Exp $
+MD5 (p2c-1.20.tar.Z) = f8b1a2b829f598d97b77fa728eaf654e
diff --git a/lang/p2c/patches/patch-aa b/lang/p2c/patches/patch-aa
new file mode 100644
index 00000000000..ba5e23c3cc1
--- /dev/null
+++ b/lang/p2c/patches/patch-aa
@@ -0,0 +1,102 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/01/31 03:47:27 jwise Exp $
+--- Makefile.orig Fri Jan 29 14:52:07 1999
++++ Makefile Fri Jan 29 15:15:47 1999
+@@ -18,13 +18,13 @@
+
+
+ # Directories (private version)
+-HOMEDIR = ../home
+-INCDIR = ../home/p2c
+-BINDIR = ..
+-LIBDIR = ../home
+-MANDIR = ../home
+-MANFILE = p2c.cat # human-readable manual (for cat.1)
+-#MANFILE = p2c.man.inst # uncompressed nroff source (for man.1)
++HOMEDIR = ${PREFIX}/libdata/p2c
++INCDIR = ${PREFIX}/include/p2c
++BINDIR = ${PREFIX}/bin
++LIBDIR = ${PREFIX}/lib
++MANDIR = ${PREFIX}/man/man1
++#MANFILE = p2c.cat # human-readable manual (for cat.1)
++MANFILE = p2c.man.inst # uncompressed nroff source (for man.1)
+ #MANFILE = p2c.man.Z # compressed nroff source (for man.1.Z)
+
+ # Directories (public version)
+@@ -39,7 +39,7 @@
+ CC = cc # you may wish to use gcc here instead
+ OPT = # -O # uncomment this for optimization
+ DEB = # -g # uncomment this for debugging
+-DEFS = # place other -D types of things here
++DEFS = -Dunix # place other -D types of things here
+ CFLAGS = $(OPT) $(DEB) $(DEFS)
+ LFLAGS =
+
+@@ -63,9 +63,9 @@
+ LIBOBJS = p2clib.o loc.p2clib.o
+ OTHERLIBOBJS =
+
+-ABSHOMEDIR = `cd $(HOMEDIR); pwd`
+-ABSINCDIR = `cd $(INCDIR); pwd`
+-ABSLIBDIR = `cd $(LIBDIR); pwd`
++ABSHOMEDIR = ${PREFIX}/libdata/p2c
++ABSINCDIR = ${PREFIX}/include/p2c
++ABSLIBDIR = ${PREFIX}/lib/p2c
+
+ MISCSRCS = makeproto.c
+ PROTOS = p2c.proto p2c.hdrs
+@@ -129,7 +129,8 @@
+ # Third, execute "make install" to compile and set things up.
+ # (You may need to have a system operator do these steps for you.)
+
+-COPY = cp
++COPYDATA = ${INSTALL} -c -m 644
++COPYBIN = ${INSTALL} -c -m 755
+
+ newhome:
+ rm -f trans.o # force trans.c to be recompiled (if HOMEDIR changes)
+@@ -156,35 +157,35 @@
+ if [ ! -d $(INCDIR) ]; then mkdir $(INCDIR); fi
+
+ $(BINDIR)/p2c: p2c
+- $(COPY) p2c $(BINDIR)/p2c
++ $(COPYBIN) p2c $(BINDIR)/p2c
+
+ $(LIBDIR)/libp2c.a: libp2c.a
+- $(COPY) libp2c.a $(LIBDIR)/libp2c.a
++ $(COPYDATA) libp2c.a $(LIBDIR)/libp2c.a
+ if [ -f /usr/bin/ranlib -o -f /bin/ranlib ]; then ranlib $(LIBDIR)/libp2c.a; fi
+
+ $(MANDIR)/p2c.1: $(MANFILE)
+- $(COPY) $(MANFILE) $(MANDIR)/p2c.1
++ $(COPYDATA) $(MANFILE) $(MANDIR)/p2c.1
+
+ $(INCDIR)/p2c.h: p2c.h
+- $(COPY) p2c.h $(INCDIR)/p2c.h
++ $(COPYDATA) p2c.h $(INCDIR)/p2c.h
+
+ $(HOMEDIR)/p2crc: sys.p2crc
+- $(COPY) sys.p2crc $(HOMEDIR)/p2crc
++ $(COPYDATA) sys.p2crc $(HOMEDIR)/p2crc
+
+ $(HOMEDIR)/loc.p2crc: loc.p2crc
+- $(COPY) loc.p2crc $(HOMEDIR)/loc.p2crc
++ $(COPYDATA) loc.p2crc $(HOMEDIR)/loc.p2crc
+
+ $(HOMEDIR)/system.imp: system.imp
+- $(COPY) system.imp $(HOMEDIR)/system.imp
++ $(COPYDATA) system.imp $(HOMEDIR)/system.imp
+
+ $(HOMEDIR)/system.m2: system.m2
+- $(COPY) system.m2 $(HOMEDIR)/system.m2
++ $(COPYDATA) system.m2 $(HOMEDIR)/system.m2
+
+ $(HOMEDIR)/turbo.imp: turbo.imp
+- $(COPY) turbo.imp $(HOMEDIR)/turbo.imp
++ $(COPYDATA) turbo.imp $(HOMEDIR)/turbo.imp
+
+ $(HOMEDIR)/string.pas: string.pas
+- $(COPY) string.pas $(HOMEDIR)/string.pas
++ $(COPYDATA) string.pas $(HOMEDIR)/string.pas
+
+
+
diff --git a/lang/p2c/patches/patch-ab b/lang/p2c/patches/patch-ab
new file mode 100644
index 00000000000..dce41e628bb
--- /dev/null
+++ b/lang/p2c/patches/patch-ab
@@ -0,0 +1,11 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/01/31 03:47:27 jwise Exp $
+--- p2clib.c.orig Fri Jan 29 15:12:01 1999
++++ p2clib.c Fri Jan 29 15:11:31 1999
+@@ -8,6 +8,7 @@
+ */
+
+
++#include <limits.h>
+ #include "p2c.h"
+
+
diff --git a/lang/p2c/pkg/COMMENT b/lang/p2c/pkg/COMMENT
new file mode 100644
index 00000000000..25337e8a843
--- /dev/null
+++ b/lang/p2c/pkg/COMMENT
@@ -0,0 +1 @@
+Pascal to C compiler (translates Pascal to C).
diff --git a/lang/p2c/pkg/DESCR b/lang/p2c/pkg/DESCR
new file mode 100644
index 00000000000..b787dd6fb3c
--- /dev/null
+++ b/lang/p2c/pkg/DESCR
@@ -0,0 +1,4 @@
+p2c is a Pascal to C compiler (translates Pascal to C).
+
+p2c includes limited support for translating Borland TurboPascal
+and modula-2 programs
diff --git a/lang/p2c/pkg/PLIST b/lang/p2c/pkg/PLIST
new file mode 100644
index 00000000000..a8374a99b7e
--- /dev/null
+++ b/lang/p2c/pkg/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/01/31 03:47:27 jwise Exp $
+bin/p2c
+lib/libp2c.a
+man/man1/p2c.1
+include/p2c/p2c.h
+libdata/p2c/p2crc
+libdata/p2c/loc.p2crc
+libdata/p2c/system.imp
+libdata/p2c/system.m2
+libdata/p2c/turbo.imp
+libdata/p2c/string.pas
+@dirrm include/p2c
+@dirrm libdata/p2c