BSD Ports

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

SystemPortVersion
FreeBSDcad/libopencad0.2.0_6
DragonFlycad/libopencad0.2.0_5
MidnightBSDcad/libopencad0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.2.0_60.2.0_6-0.2.0_50.2.0_6
FreeBSD:14:quarterly0.2.0_60.2.0_6n/a0.2.0_50.2.0_6
FreeBSD:15:latest0.2.0_60.2.0_6n/a0.2.0_50.2.0_5
FreeBSD:15:quarterly0.2.0_60.2.0_6n/an/an/a
FreeBSD:16:latest0.2.0_60.2.0_6n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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

===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Abandoned upstream, does not build with CMake 4.

It is scheduled to be removed on or after 2026-11-30.

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
FileSizeSHA256
sandyre-libopencad-0.2.0_GH0.tar.gz4.245877e+06181a33fd8bc6046366c9d5d3a22590817d8f4ab7b87efdeac9fecdc34fe94019

Commit history 1

DateCommitCreditsLog message
935c4ae414 Gleb Popov cad/libopencad: Mark deprecated
PR: 298564 Approved by: lbartoletti (maintainer)