From 3f70a5476f29fe50b105884151d36c49c0e157ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Apestegu=C3=ADa?= Date: Sun, 17 Mar 2024 22:00:18 +0100 Subject: [PATCH] math/cgal: Fix with boost > 1.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit prior() and next() have been moved to its own header. cad/PrusaSlicer fails to build when including Plane_3_Triangle_3_intersection.h PR: 277480 Approved by: maintainer’s time-out --- math/cgal/Makefile | 2 +- ...internal_Plane__3__Triangle__3__intersection.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 math/cgal/files/patch-include_CGAL_Intersections__3_internal_Plane__3__Triangle__3__intersection.h diff --git a/math/cgal/Makefile b/math/cgal/Makefile index 83cd81f02a16..f514d6fccb89 100644 --- a/math/cgal/Makefile +++ b/math/cgal/Makefile @@ -1,6 +1,6 @@ PORTNAME= cgal PORTVERSION= 5.5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= https://github.com/${PORTNAME:tu}/${PORTNAME}/releases/download/v${PORTVERSION}/ DISTNAME= ${PORTNAME:tu}-${PORTVERSION} diff --git a/math/cgal/files/patch-include_CGAL_Intersections__3_internal_Plane__3__Triangle__3__intersection.h b/math/cgal/files/patch-include_CGAL_Intersections__3_internal_Plane__3__Triangle__3__intersection.h new file mode 100644 index 000000000000..b0edfb582abb --- /dev/null +++ b/math/cgal/files/patch-include_CGAL_Intersections__3_internal_Plane__3__Triangle__3__intersection.h @@ -0,0 +1,15 @@ +--- include/CGAL/Intersections_3/internal/Plane_3_Triangle_3_intersection.h.orig 2024-03-04 16:56:49 UTC ++++ include/CGAL/Intersections_3/internal/Plane_3_Triangle_3_intersection.h +@@ -13,6 +13,12 @@ + #ifndef CGAL_INTERNAL_INTERSECTIONS_PLANE_3_TRIANGLE_3_INTERSECTION_H + #define CGAL_INTERNAL_INTERSECTIONS_PLANE_3_TRIANGLE_3_INTERSECTION_H + ++#include ++#if BOOST_VERSION >= 106700 ++#include ++#else ++#include ++#endif + #include + #include +