math/cgal: Fix with boost > 1.67

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
This commit is contained in:
Fernando Apesteguía 2024-03-17 22:00:18 +01:00 committed by Thierry Thomas
parent 9f0167a70b
commit 3f70a5476f
2 changed files with 16 additions and 1 deletions

View file

@ -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}

View file

@ -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 <boost/version.hpp>
+#if BOOST_VERSION >= 106700
+#include <boost/next_prior.hpp>
+#else
+#include <boost/utility.hpp>
+#endif
#include <CGAL/Intersection_traits_3.h>
#include <CGAL/Intersections_3/internal/Line_3_Plane_3_intersection.h>