aboutsummaryrefslogtreecommitdiff
path: root/lang/ptoc
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1998-03-27 10:51:23 +0000
committerThomas Gellekum <tg@FreeBSD.org>1998-03-27 10:51:23 +0000
commite007443a4f0b804547b833899ff248f0caa49860 (patch)
treef0d6f04985116062410cd657d793922b4e1bf0c9 /lang/ptoc
parent7c89ee8453d1f827469ccda93b0a3e49eb00abaf (diff)
downloadports-e007443a4f0b804547b833899ff248f0caa49860.tar.gz
ports-e007443a4f0b804547b833899ff248f0caa49860.zip
Notes
Diffstat (limited to 'lang/ptoc')
-rw-r--r--lang/ptoc/Makefile48
-rw-r--r--lang/ptoc/distinfo1
-rw-r--r--lang/ptoc/files/patch-aa22
-rw-r--r--lang/ptoc/files/patch-ab17
-rw-r--r--lang/ptoc/files/patch-ac11
-rw-r--r--lang/ptoc/pkg-comment1
-rw-r--r--lang/ptoc/pkg-descr17
-rw-r--r--lang/ptoc/pkg-plist40
8 files changed, 157 insertions, 0 deletions
diff --git a/lang/ptoc/Makefile b/lang/ptoc/Makefile
new file mode 100644
index 000000000000..a968971b749d
--- /dev/null
+++ b/lang/ptoc/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: ptoc
+# Version required: 2.01
+# Date created: 10 December 1997
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= ptoc
+PKGNAME= ptoc-2.01
+CATEGORIES= devel converters x11
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= devel/lang/pascal
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= andy@icc.surw.chel.su
+
+WRKSRC= ${WRKDIR}/ptoc
+MAKEFILE= makefile
+
+pre-build:
+ @ ${RM} ${WRKSRC}/libXbgi.a
+ @ ${RM} ${WRKSRC}/libptoc.a
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/cganal ${PREFIX}/bin
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/ptoc ${PREFIX}/bin
+ @ ${INSTALL_DATA} ${WRKSRC}/ptoc.cfg ${PREFIX}/etc
+ @ ${INSTALL_DATA} ${WRKSRC}/libptoc.a ${PREFIX}/lib
+ @ ${INSTALL_DATA} ${WRKSRC}/libXbgi.a ${PREFIX}/lib
+ @ ${MKDIR} ${PREFIX}/include/ptoc
+.for file in array.h graph.h io.h paslib.h ptoc.h set.h
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/ptoc
+.endfor
+ @ ${MKDIR} ${PREFIX}/share/ptoc
+.for file in ptoc.pas tptoc.pas graph.pas
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/ptoc
+.endfor
+ @ ${MKDIR} ${PREFIX}/share/doc/ptoc
+ @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ptoc
+ @ ${INSTALL_DATA} ${WRKSRC}/paslib.doc ${PREFIX}/share/doc/ptoc
+ @ ${MKDIR} ${PREFIX}/share/examples/ptoc
+ @ ${INSTALL_DATA} ${FILESDIR}/Makefile ${PREFIX}/share/examples/ptoc
+.for file in bgidemo.pas coord.txt hello.pas impact.pas lister.pas polut2.pas printer.pas q2.txt random.txt rename.pas set.pas test.pas tpascal.pas trinor.pas vibrkinp.pas vibrkinp.txt vibrtabl.pas war2.pas xy2orig.txt
+ @ ${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/share/examples/ptoc
+.endfor
+
+.include <bsd.port.mk>
diff --git a/lang/ptoc/distinfo b/lang/ptoc/distinfo
new file mode 100644
index 000000000000..7c3574cdee25
--- /dev/null
+++ b/lang/ptoc/distinfo
@@ -0,0 +1 @@
+MD5 (ptoc.tgz) = 41115dc1b6e74ce8cd9048644c2ef41f
diff --git a/lang/ptoc/files/patch-aa b/lang/ptoc/files/patch-aa
new file mode 100644
index 000000000000..70f7f0227596
--- /dev/null
+++ b/lang/ptoc/files/patch-aa
@@ -0,0 +1,22 @@
+--- makefile Tue Sep 2 08:49:02 1997
++++ /home/andy/tmp/wrk/makefile Wed Dec 10 11:26:08 1997
+@@ -18,8 +18,8 @@
+ # Chose compiler You prefere.
+ #
+
+-CC = gcc -O5 -g -Wall -c
+-CFLAGS =
++CC = gcc
++CFLAGS+= -c
+
+ DEFINES =
+ INCLUDES = -I.
+@@ -31,7 +31,7 @@
+ # Chose linker You prefere.
+ #
+
+-LD = gcc -static
++LD = gcc
+ #LD = cxx -non_shared
+ LDFLAGS =
+
diff --git a/lang/ptoc/files/patch-ab b/lang/ptoc/files/patch-ab
new file mode 100644
index 000000000000..b710a851fc96
--- /dev/null
+++ b/lang/ptoc/files/patch-ab
@@ -0,0 +1,17 @@
+--- Xbgi/makefile Thu Jun 26 14:43:30 1997
++++ /home/andy/tmp/wrk/Xbgi/makefile Mon Dec 8 17:01:03 1997
+@@ -44,12 +44,12 @@
+ LIB = ../libXbgi.a
+
+ CC = gcc
+-CCFLAGS = -O2 -g
++CFLAGS+= -I/usr/X11R6/include
+ AR = ar
+ ARFLAGS = rc
+
+ .c.o:
+- $(CC) $(CCFLAGS) -c $<
++ $(CC) $(CFLAGS) -c $<
+
+ ../libXbgi.a: $(OBJ)
+ $(AR) $(ARFLAGS) $(LIB) $(OBJ)
diff --git a/lang/ptoc/files/patch-ac b/lang/ptoc/files/patch-ac
new file mode 100644
index 000000000000..5c213037e784
--- /dev/null
+++ b/lang/ptoc/files/patch-ac
@@ -0,0 +1,11 @@
+--- main.h Tue Aug 26 21:16:28 1997
++++ /home/andy/tmp/wrk/main.h Mon Dec 8 17:58:12 1997
+@@ -31,7 +31,7 @@
+
+ #define CALL_GRAPH_FILE "call.grp"
+ #define RECURSIVE_PROC_FILE "recur.prc"
+-#define CONFIG_FILE "ptoc.cfg"
++#define CONFIG_FILE "/usr/local/etc/ptoc.cfg"
+
+ extern bool use_call_graph;
+ extern bool pio_init;
diff --git a/lang/ptoc/pkg-comment b/lang/ptoc/pkg-comment
new file mode 100644
index 000000000000..f213122aab6d
--- /dev/null
+++ b/lang/ptoc/pkg-comment
@@ -0,0 +1 @@
+ANSI/Turbo Pascal to C/C++ converter
diff --git a/lang/ptoc/pkg-descr b/lang/ptoc/pkg-descr
new file mode 100644
index 000000000000..529bd379d698
--- /dev/null
+++ b/lang/ptoc/pkg-descr
@@ -0,0 +1,17 @@
+This is yet another ANSI/Turbo Pascal to C/C++ converter together
+with BGI graphics library emulation for X Window System.
+
+Converter recognizes Pascal dialects which are compatible with
+Turbo Pascal 4.0/5.0 and ISO Pascal standard - IEC 7185:1990(E)
+(including conformant arrays). Now it is tuned for Oregon Pascal-2
+V2.1 which has few extensions to standard Pascal.
+
+Converter can produce both C++ and C output.
+
+Now PTOC recognizes Turbo Pascal's extensions, such as units,
+strings, some special types and operations. Turbo Pascal
+extensions are supported only for C++ language.
+
+Also emulation libraries of Borland Graphics Interface (BGI) for
+X Window System included in this distribution (BGI emulators can
+be also used without converter for C programs using BGI).
diff --git a/lang/ptoc/pkg-plist b/lang/ptoc/pkg-plist
new file mode 100644
index 000000000000..dca2934a6be4
--- /dev/null
+++ b/lang/ptoc/pkg-plist
@@ -0,0 +1,40 @@
+bin/cganal
+bin/ptoc
+etc/ptoc.cfg
+include/ptoc/array.h
+include/ptoc/graph.h
+include/ptoc/io.h
+include/ptoc/paslib.h
+include/ptoc/ptoc.h
+include/ptoc/set.h
+lib/libptoc.a
+lib/libXbgi.a
+share/doc/ptoc/README
+share/doc/ptoc/paslib.doc
+share/ptoc/ptoc.pas
+share/ptoc/tptoc.pas
+share/ptoc/graph.pas
+share/examples/ptoc/Makefile
+share/examples/ptoc/bgidemo.pas
+share/examples/ptoc/coord.txt
+share/examples/ptoc/hello.pas
+share/examples/ptoc/impact.pas
+share/examples/ptoc/lister.pas
+share/examples/ptoc/polut2.pas
+share/examples/ptoc/printer.pas
+share/examples/ptoc/q2.txt
+share/examples/ptoc/random.txt
+share/examples/ptoc/rename.pas
+share/examples/ptoc/set.pas
+share/examples/ptoc/test.pas
+share/examples/ptoc/tpascal.pas
+share/examples/ptoc/trinor.pas
+share/examples/ptoc/vibrkinp.pas
+share/examples/ptoc/vibrkinp.txt
+share/examples/ptoc/vibrtabl.pas
+share/examples/ptoc/war2.pas
+share/examples/ptoc/xy2orig.txt
+@dirrm include/ptoc
+@dirrm share/doc/ptoc
+@dirrm share/examples/ptoc
+@dirrm share/ptoc