Files
afresh1 ae87b426f6 Import cad/clipper2
The Clipper2 library performs intersection, union, difference and
XOR boolean operations on both simple and complex polygons. It also
performs polygon offsetting.

OK with many improvements sthen@ and jtt@
2025-11-29 23:34:46 +00:00

34 lines
651 B
Makefile

COMMENT = library to perform boolean operations on polygons
V = 1.5.4
PKGNAME = clipper2-${V}
GH_ACCOUNT = AngusJohnson
GH_PROJECT = Clipper2
GH_TAGNAME = Clipper2_${V}
SHARED_LIBS += Clipper2 0.0 # 0.0
SHARED_LIBS += Clipper2Z 0.0 # 0.0
CATEGORIES = cad
HOMEPAGE = https://www.angusj.com/clipper2
# Boost Software License 1.0
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} m
COMPILER = base-clang ports-gcc
MODULES = devel/cmake
WRKSRC = ${WRKDIST}/CPP
BUILD_DEPENDS = devel/gtest
CONFIGURE_ARGS = -DBUILD_SHARED_LIBS=ON \
-DUSE_EXTERNAL_GTEST=ON \
-DCLIPPER2_EXAMPLES=OFF
.include <bsd.port.mk>