Created attachment 174042 [details]
Libopencad is a MIT library for support DWG cad files. It will be a dependency for GDAL DWG driver.
It was started as a SoC.
Please confirm this port passes QA (at least portlint, poudriere). For more information and instructions see:
A shorter COMMENT may also be warranted, perhaps:
"Library to work with CAD (DWG/DXF/DXFB) files"
Created attachment 174118 [details]
Portlint -Nabt: ok
Poudriere 10, 11, 12 amd64 OK
Poudriere 10, 11, 12 i386 doesn't compile see my comment and then opened issue (https://github.com/sandyre/libopencad/issues/30).
It looks like issue was already fixed, could you try to compile libopencad again?
Created attachment 175039 [details]
libopencad remove i386 restriction
Committed with minor changes:
- Add LICENSE_FILE
- Fix compiler requirement
- Mark BROKEN on FreeBSD 9
- Reformat pkg-descr in more readable way
A commit references this bug:
Date: Mon Dec 26 14:29:07 UTC 2016
New revision: 429524
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.
Submitted by: email@example.com
There are many improvement happened in libopencad last month. Previously used repository (https://github.com/sandyre/libopencad) is not relevant now, all further development will be in https://github.com/nextgis-borsch/lib_opencad repository. Please take it into account.