Index: head/lang/ptoc/Makefile =================================================================== --- head/lang/ptoc/Makefile (nonexistent) +++ head/lang/ptoc/Makefile (revision 10325) @@ -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 Property changes on: head/lang/ptoc/Makefile ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/lang/ptoc/distinfo =================================================================== --- head/lang/ptoc/distinfo (nonexistent) +++ head/lang/ptoc/distinfo (revision 10325) @@ -0,0 +1 @@ +MD5 (ptoc.tgz) = 41115dc1b6e74ce8cd9048644c2ef41f Property changes on: head/lang/ptoc/distinfo ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/lang/ptoc/files/patch-aa =================================================================== --- head/lang/ptoc/files/patch-aa (nonexistent) +++ head/lang/ptoc/files/patch-aa (revision 10325) @@ -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 = + Property changes on: head/lang/ptoc/files/patch-aa ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/lang/ptoc/files/patch-ab =================================================================== --- head/lang/ptoc/files/patch-ab (nonexistent) +++ head/lang/ptoc/files/patch-ab (revision 10325) @@ -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) Property changes on: head/lang/ptoc/files/patch-ab ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/lang/ptoc/files/patch-ac =================================================================== --- head/lang/ptoc/files/patch-ac (nonexistent) +++ head/lang/ptoc/files/patch-ac (revision 10325) @@ -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; Property changes on: head/lang/ptoc/files/patch-ac ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/lang/ptoc/pkg-comment =================================================================== --- head/lang/ptoc/pkg-comment (nonexistent) +++ head/lang/ptoc/pkg-comment (revision 10325) @@ -0,0 +1 @@ +ANSI/Turbo Pascal to C/C++ converter Property changes on: head/lang/ptoc/pkg-comment ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/lang/ptoc/pkg-descr =================================================================== --- head/lang/ptoc/pkg-descr (nonexistent) +++ head/lang/ptoc/pkg-descr (revision 10325) @@ -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). Property changes on: head/lang/ptoc/pkg-descr ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/lang/ptoc/pkg-plist =================================================================== --- head/lang/ptoc/pkg-plist (nonexistent) +++ head/lang/ptoc/pkg-plist (revision 10325) @@ -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 Property changes on: head/lang/ptoc/pkg-plist ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property