blob: 19e45175598c4bf4f3dd8471675750c1c0c5518a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
PORTNAME= pcl
DISTVERSION= 1.13.1
PORTREVISION= 2
CATEGORIES= graphics math
MASTER_SITES= https://github.com/PointCloudLibrary/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/
PKGNAMESUFFIX= -pointclouds
DISTNAME= source
DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX}/${DISTVERSION}
PATCH_SITES= https://github.com/PointCloudLibrary/pcl/commit/
PATCHFILES+= 69a2392e4c5976bd4dc1e33cc4659fa210f68485.patch:-p1 # https://github.com/PointCloudLibrary/pcl/pull/5903 fixing https://github.com/PointCloudLibrary/pcl/issues/5902
MAINTAINER= yuri@FreeBSD.org
COMMENT= Point Cloud Library
WWW= https://pointclouds.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BROKEN= fails to build with boost-1.85+
BROKEN_i386= undefined reference to `__atomic_load'
NOT_FOR_ARCHS= armv6 armv7
NOT_FOR_ARCHS_REASON= common/include/pcl/pcl_macros.h:420:4: error: aligned_malloc not supported on your platform
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libflann_cpp.so:math/flann \
libfreetype.so:print/freetype2 \
liblz4.so:archivers/liblz4 \
libpcap.so:net/libpcap
USES= cmake:testing compiler:c++14-lang eigen:3 localbase:ldflags python xorg
USE_XORG= x11 xext xt ice sm
USE_LDCONFIG= yes
USE_GITHUB= nodefault
GH_ACCOUNT= google:gtest
GH_PROJECT= googletest:gtest
GH_TAGNAME= release-1.11.0:gtest
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} # workaround, otherwise USE_GITHUB=nodefault doesn't work #'
CMAKE_TESTING_ON= BUILD_global_tests # 6 tests are known to fail: https://github.com/PointCloudLibrary/pcl/issues/5127
CMAKE_TESTING_TARGET= tests
CMAKE_ARGS= -DGTEST_SRC_DIR=${WRKSRC_gtest}/googletest -DGTEST_INCLUDE_DIR=${WRKSRC_gtest}/googletest/include
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= SHL3=${DISTVERSION} SHL2=${DISTVERSION:R}
DATADIR= ${PREFIX}/share/${PORTNAME}-${DISTVERSION:R} # match the directory where the project installs .cmake files
OPTIONS_DEFINE= OPENGL PNG QHULL QT5 VTK
OPTIONS_DEFAULT= PNG VTK # QHULL is disabled due to conflicts qhull8 vs. qhull
OPTIONS_SUB= yes
OPENGL_CMAKE_BOOL= WITH_OPENGL # it finds OpenGL, but no binaries are linked with it: https://github.com/PointCloudLibrary/pcl/issues/2641
OPENGL_USES= gl
OPENGL_USE= GL=gl,glu
PNG_CMAKE_BOOL= WITH_PNG
PNG_LIB_DEPENDS= libpng16.so:graphics/png
QHULL_DESC= Include convex-hull operations
QHULL_CMAKE_BOOL= WITH_QHULL
QHULL_LIB_DEPENDS= libqhull_r.so:math/qhull
QT5_CMAKE_ON= -DWITH_QT=QT5
QT5_CMAKE_OFF= -DWITH_QT=NO
QT5_BROKEN= WITH_QT doesn't do anything, should be used by apps, but apps is also broken: see https://github.com/PointCloudLibrary/pcl/issues/2642
VTK_DESC= Build VTK visualizations
VTK_USES= gl qt:5
VTK_USE= GL=gl,glu QT=core,gui,opengl,widgets,buildtools:build,qmake:build
VTK_CMAKE_BOOL= WITH_VTK
VTK_CMAKE_ON= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-${VTK_VER}
VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R}
.include <../../math/vtk9/Makefile.version>
.include <bsd.port.mk>
|