From: Johannes Thyssen Tishman Subject: Re: [NEW] cad/clipper2 1.5.4 (cad/openscad dependency 1/4) To: Andrew Hewus Fresh Cc: ports@openbsd.org Date: Tue, 25 Nov 2025 11:44:09 +0000 2025-10-01T20:07:53-0700 Andrew Hewus Fresh : > This is a requirement of OpenSCAD now, needed to update to a working nightly. > > * I can't seem to get tests to work, not a big deal, may try to fix later > * This is specifically the clipper2/CPP, should the port name reflect > that, with the opportunity to provide multi-packages in the future? > > You an also see it on my cvsweb or anoncvs checkout: > > https://cvs.afresh1.com/cgi-bin/cvsweb/mystuff-openscad/ > > $ cvs -d anoncvs@cvs.afresh1.com:/cvs co mystuff-openscad > > Comments, OK to import? > > > The Clipper2 library performs intersection, union, difference and > XOR boolean operations on both simple and complex polygons. It also > performs polygon offsetting. This is a major update of my original > Clipper library that was written over 10 years ago. That library > I'm now calling Clipper1, and while it still works very well, > Clipper2 is better in just about every way. Hi afresh1@, I've been wanting to look at your OpenSCAD+deps ports for a while now, but I hadn't found the time. Sorry. This port is ok jtt@ with the following changes (see diff below): 1. Reword COMMENT. This is just my preference, but feel free to keep it as it was if you prefer it. 2. Drop 'devel' from CATEGORIES as suggested by sthen@. 3. Disable building the examples since we dont't seem to be installing them anyway (this will save a little build time). Updated port attached. All tests are passing for me (amd64). I'll look at the other deps in a bit. Thanks for your work on OpenSCAD :) diff -rup /tmp/clipper2/Makefile clipper2/Makefile --- /tmp/clipper2/Makefile Thu Oct 2 09:37:31 2025 +++ clipper2/Makefile Tue Nov 25 12:26:36 2025 @@ -1,4 +1,4 @@ -COMMENT = library to carry out intersection/union etc on polygons +COMMENT = library to perform boolean operations on polygons V = 1.5.4 PKGNAME = clipper2-${V} @@ -9,7 +9,7 @@ GH_TAGNAME = Clipper2_${V} SHARED_LIBS += Clipper2 0.0 # 0.0 SHARED_LIBS += Clipper2Z 0.0 # 0.0 -CATEGORIES = cad devel +CATEGORIES = cad HOMEPAGE = https://www.angusj.com/clipper2 @@ -27,6 +27,7 @@ WRKSRC = ${WRKDIST}/CPP BUILD_DEPENDS = devel/gtest CONFIGURE_ARGS = -DBUILD_SHARED_LIBS=ON \ - -DUSE_EXTERNAL_GTEST=ON + -DUSE_EXTERNAL_GTEST=ON \ + -DCLIPPER2_EXAMPLES=OFF .include