BSD Ports

cad/libredwg 0.13.3_1 MidnightBSD

Library and command line tools to handle DWG files

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
2b33fb3909
License
gpl3+
Categories
cad, devel

Description

GNU LibreDWG is a C library to handle DWG files. It aims to be a free replacement for the OpenDWG libraries. DWG is the native file format of AutoCAD.

LibreDWG was based on LibDWG (http://libdwg.sourceforge.net), which is written with variable names, documentation, and comments in Esperanto.

There are also command line tools and libraries to read and write DWG files, with converters for various formats (DXF, DXFB, SVG, PS, JSON, XML, etc.) and a SaveAs functionality, to convert between the various DWG versions. It can read r13-r2018 DWG, write r13-r2000 DWG, write r11-r2018 DXF ASCII and binary. Much more object types than any other free DWG library.

In the other systems

The newest version among them is 0.13.3, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDcad/libredwg0.13.3_1 newestno data-[email protected]2026-08-16
FreeBSDcad/libredwg0.12.4none known-[email protected]-
NetBSDcad/libredwg0.12.4nb1317 known-[email protected]2026-09-29
GhostBSDcad/libredwg0.12.4no data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install libredwg

From mports:

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

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

RUN_DEPENDS=	libredwg>0:cad/libredwg
LIB_DEPENDS=	libredwg.so:cad/libredwg

Dependencies

No port depends on this one.

Configuration

Options name: cad_libredwg

OptionDefaultDescription
DOCSoff
EXAMPLESoff
PCREonRegular expressions support in dwggrep
PSLIBonPostScript export support (dwg2ps)
PYTHONoff
USES
cpe libtool tar:xz
Service scripts
none

Files

Manual pages 14
  • dwg2SVG(1)
  • dwg2dxf(1)
  • dwg2ps(1)
  • dwgadd(1)
  • dwgadd(5)
  • dwgbmp(1)
  • dwgfilter(1)
  • dwggrep(1)
  • dwglayers(1)
  • dwgread(1)
  • dwgrewrite(1)
  • dwgwrite(1)
  • dxf2dwg(1)
  • dxfwrite(1)
pkg-plist 41
  • bin/dwg2SVG
  • bin/dwg2dxf
  • bin/dwg2ps
  • bin/dwgadd
  • bin/dwgbmp
  • bin/dwgfilter
  • bin/dwggrep
  • bin/dwglayers
  • bin/dwgread
  • bin/dwgrewrite
  • bin/dwgwrite
  • bin/dxf2dwg
  • bin/dxfwrite
  • include/dwg.h
  • include/dwg_api.h
  • lib/libredwg.a
  • lib/libredwg.so
  • lib/libredwg.so.0
  • lib/libredwg.so.0.0.12
  • %%PYTHON_SITELIBDIR%%/LibreDWG.py
  • %%PYTHON_SITELIBDIR%%/_LibreDWG.a
  • %%PYTHON_SITELIBDIR%%/_LibreDWG.so
  • %%PYTHON_SITELIBDIR%%/_LibreDWG.so.0
  • %%PYTHON_SITELIBDIR%%/_LibreDWG.so.0.0.0
  • %%PYTHON_SITELIBDIR%%/__pycache__/LibreDWG.cpython-.opt-1.pyc
  • %%PYTHON_SITELIBDIR%%/__pycache__/LibreDWG.cpython-.pyc
  • libdata/pkgconfig/libredwg.pc
  • share/man/man1/dwg2SVG.1.gz
  • share/man/man1/dwg2dxf.1.gz
  • share/man/man1/dwg2ps.1.gz
  • share/man/man1/dwgadd.1.gz
  • share/man/man1/dwgbmp.1.gz
  • share/man/man1/dwgfilter.1.gz
  • share/man/man1/dwggrep.1.gz
  • share/man/man1/dwglayers.1.gz
  • share/man/man1/dwgread.1.gz
  • share/man/man1/dwgrewrite.1.gz
  • share/man/man1/dwgwrite.1.gz
  • share/man/man1/dxf2dwg.1.gz
  • share/man/man1/dxfwrite.1.gz
  • share/man/man5/dwgadd.5.gz
distinfo 1
FileSizeSHA256
libredwg-0.13.3.tar.xz1.0611736e+0783f1f6e78a744777a481ff4520e4cef3f8ac4b2c1c25671077ca12fe81e8816e
Master sites 1
  • GNU

Commit history 1

DateCommitCreditsLog message
2b33fb3909 Lucas Holt cad/libredwg: fix the staging path in the option install targets
The option helper targets (post-install-DOCS-on and friends) are entries in _FAKE_SEQ and run in the main make, not in the sub-make that fake-post-install starts with FAKE_SETUP. There PREFIX is not stage-prefixed and STAGEDIR is empty, so ${STAGEDIR}${DOCSDIR} resolved to the live /usr/local: the build wrote outside the stage directory and the file was then reported missing, e.g. install ... README.rst /usr/local/share/doc/py312-webcolors /usr/local/share/doc/py312-webcolors/README.rst not installed. Fake failed. Use ${FAKE_DESTDIR} in these targets, as x11-wm/icewm already does. AI-Assisted-by: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Holt <[email protected]>