lang/ptoc 3.58_1
ANSI/Turbo Pascal to C/C++ converter
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- lang
- Package size
- 179.0 KiB, 741.6 KiB installed
Description
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).
Install
As a binary package — by origin, or by package name:
pkg install lang/ptoc
pkg install ptoc
From the ports tree:
cd /usr/ports/lang/ptoc/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ptoc>0:lang/ptoc
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 3.58_1 | 3.58_1 | 3.58_1 | 3.58_1 | 3.58_1 |
| FreeBSD:14:quarterly | 3.58_1 | 3.58_1 | n/a | 3.58_1 | 3.58_1 |
| FreeBSD:15:latest | 3.58_1 | 3.58_1 | n/a | 3.58_1 | 3.58_1 |
| FreeBSD:15:quarterly | 3.58_1 | 3.58_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 3.58_1 | 3.58_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
All build dependencies 10
All run dependencies 5
No port depends on this one.
Configuration
Options name: lang_ptoc
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
| EXAMPLES | off | Build and/or install examples |
- USES
- bison xorg
- Service scripts
- none
Files
pkg-plist 49
- 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/libXbgi.a
- lib/libptoc.a
- share/doc/ptoc/Readme.htm
- share/examples/ptoc/arr.pas
- share/examples/ptoc/bgidemo.pas
- share/examples/ptoc/ccall.pas
- share/examples/ptoc/coord.txt
- share/examples/ptoc/dos.h
- share/examples/ptoc/dos.pas
- share/examples/ptoc/func.pas
- share/examples/ptoc/hello.pas
- share/examples/ptoc/impact.pas
- share/examples/ptoc/lister.pas
- share/examples/ptoc/makefile.bsd
- share/examples/ptoc/nested.pas
- share/examples/ptoc/objpas.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.cxx
- share/examples/ptoc/rename.pas
- share/examples/ptoc/set.pas
- share/examples/ptoc/str.pas
- share/examples/ptoc/test.c
- share/examples/ptoc/test.cxx
- share/examples/ptoc/test.pas
- share/examples/ptoc/test.txt
- 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/war2.txt
- share/examples/ptoc/xy2.txt
- share/examples/ptoc/xy2orig.txt
- share/ptoc/graph.pas
- share/ptoc/ptoc.pas
- share/ptoc/tptoc.pas
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ptoc-3.58.tar.gz | 270507 | 671d0a5e1a49aa3368bbfa8cb0de4bc52d7a0b804774571923f2b085c986d084 |
Master sites 1
- http://www.garret.ru/
Commit history 0
No commits in the history this site was built from.