aboutsummaryrefslogtreecommitdiff
path: root/ports/pcl
diff options
context:
space:
mode:
Diffstat (limited to 'ports/pcl')
-rw-r--r--ports/pcl/boost-1.73.patch50
-rw-r--r--ports/pcl/portfile.cmake1
2 files changed, 51 insertions, 0 deletions
diff --git a/ports/pcl/boost-1.73.patch b/ports/pcl/boost-1.73.patch
new file mode 100644
index 000000000..d634d84bb
--- /dev/null
+++ b/ports/pcl/boost-1.73.patch
@@ -0,0 +1,50 @@
+diff --git a/common/include/pcl/PCLPointCloud2.h b/common/include/pcl/PCLPointCloud2.h
+index 6a00c1f..5d4ac1c 100644
+--- a/common/include/pcl/PCLPointCloud2.h
++++ b/common/include/pcl/PCLPointCloud2.h
+@@ -8,7 +8,7 @@
+ #include <string>
+ #include <vector>
+ #include <ostream>
+-#include <boost/detail/endian.hpp>
++#include <boost/predef/other/endian.h>
+
+ // Include the correct Header path here
+ #include <pcl/PCLHeader.h>
+@@ -23,9 +23,9 @@ namespace pcl
+ is_bigendian (false), point_step (0), row_step (0),
+ data (), is_dense (false)
+ {
+-#if defined(BOOST_BIG_ENDIAN)
++#if BOOST_ENDIAN_BIG_BYTE
+ is_bigendian = true;
+-#elif defined(BOOST_LITTLE_ENDIAN)
++#elif BOOST_ENDIAN_LITTLE_BYTE
+ is_bigendian = false;
+ #else
+ #error "unable to determine system endianness"
+diff --git a/io/include/pcl/io/ply/byte_order.h b/io/include/pcl/io/ply/byte_order.h
+index 2af95d0..8328015 100644
+--- a/io/include/pcl/io/ply/byte_order.h
++++ b/io/include/pcl/io/ply/byte_order.h
+@@ -40,7 +40,7 @@
+ #ifndef PCL_IO_PLY_BYTE_ORDER_H
+ #define PCL_IO_PLY_BYTE_ORDER_H
+
+-#include <boost/detail/endian.hpp>
++#include <boost/predef/other/endian.h>
+
+ namespace pcl
+ {
+@@ -58,9 +58,9 @@ namespace pcl
+ {
+ little_endian_byte_order,
+ big_endian_byte_order,
+-#if defined(BOOST_BIG_ENDIAN)
++#if BOOST_ENDIAN_BIG_BYTE
+ host_byte_order = big_endian_byte_order,
+-#elif defined(BOOST_LITTLE_ENDIAN)
++#elif BOOST_ENDIAN_LITTLE_BYTE
+ host_byte_order = little_endian_byte_order,
+ #else
+ #error "unable to determine system endianness"
diff --git a/ports/pcl/portfile.cmake b/ports/pcl/portfile.cmake
index 0f4c30127..ef3cf959e 100644
--- a/ports/pcl/portfile.cmake
+++ b/ports/pcl/portfile.cmake
@@ -13,6 +13,7 @@ vcpkg_from_github(
# Patch for https://github.com/microsoft/vcpkg/issues/7660
use_target_link_libraries_in_pclconfig.patch
fix-link-libpng.patch
+ boost-1.73.patch
)
file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindFLANN.cmake)