BSD Ports

cad/libopencad 0.2.0 MidnightBSD

Library which provides a way to read/write CAD (DWG/DXF/DXFB) files

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
cad, graphics, geography

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

Install

Binary package:

mport install libopencad

From mports:

cd /usr/mports/cad/libopencad && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libopencad>0:cad/libopencad

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
cmake cpe compiler:c++11-lib
Service scripts
none

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