Deprecated: Abandoned upstream, does not build with CMake 4
Expires: 2026-11-30
cad/libopencad 0.2.0_6 FreeBSD
Library which provides a way to read/write CAD (DWG/DXF/DXFB) files
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
935c4ae414- License
- MIT
- Categories
- cad, graphics, geography
- Package size
- 180.9 KiB, 1087.4 KiB installed
Description
Libopencad is a library written in C++11, which provides a way to read/write CAD (DWG/DXF/DXFB) files. It was designed to have a uniformal API to work with any CAD files.
It has a base class - CADFile.
Inheriting this class it's possible to create a driver for any CAD format, all you need to do - is to overwrite interface functions like GetGeometry(index), and others.
Now it has an implementation for DWG2000 (R15), but only for read.
Library comes with cadinfo utility, which prints out everything library can get from file - header variables, CAD custom classes, presented layers and geometries with their attributes.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | cad/libopencad | 0.2.0_6 |
| DragonFly | cad/libopencad | 0.2.0_5 |
| MidnightBSD | cad/libopencad | 0.2.0 |
Install
Binary package:
pkg install libopencad
From the ports tree:
cd /usr/ports/cad/libopencad/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= libopencad>0:cad/libopencad
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 | 0.2.0_6 | 0.2.0_6 | - | 0.2.0_5 | 0.2.0_6 |
| FreeBSD:14:quarterly | 0.2.0_6 | 0.2.0_6 | n/a | 0.2.0_5 | 0.2.0_6 |
| FreeBSD:15:latest | 0.2.0_6 | 0.2.0_6 | n/a | 0.2.0_5 | 0.2.0_5 |
| FreeBSD:15:quarterly | 0.2.0_6 | 0.2.0_6 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.2.0_6 | 0.2.0_6 | 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.
Build dependencies 15
No port depends on this one.
Configuration
No options to configure.
- USES
- cmake cpe compiler:c++11-lib
- Service scripts
- none
Message after installing
Files
pkg-plist 14
- bin/cadinfo
- include/opencad/cadclasses.h
- include/opencad/cadcolors.h
- include/opencad/caddictionary.h
- include/opencad/cadfile.h
- include/opencad/cadfileio.h
- include/opencad/cadgeometry.h
- include/opencad/cadheader.h
- include/opencad/cadlayer.h
- include/opencad/cadobjects.h
- include/opencad/cadtables.h
- include/opencad/opencad.h
- include/opencad/opencad_api.h
- lib/libopencadstatic.a
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| sandyre-libopencad-0.2.0_GH0.tar.gz | 4.245877e+06 | 181a33fd8bc6046366c9d5d3a22590817d8f4ab7b87efdeac9fecdc34fe94019 |