freebsd-ports/graphics/pcl-pointclouds/Makefile
Jan Beich a3d04c21b3 graphics/pcl-pointclouds: unbreak with boost 1.67
In file included from /wrkdirs/usr/ports/graphics/pcl-pointclouds/work/pcl-pcl-1.8.1/outofcore/tools/outofcore_process.cpp:53:
In file included from /wrkdirs/usr/ports/graphics/pcl-pointclouds/work/pcl-pcl-1.8.1/outofcore/include/pcl/outofcore/outofcore_impl.h:50:
/wrkdirs/usr/ports/graphics/pcl-pointclouds/work/pcl-pcl-1.8.1/outofcore/include/pcl/outofcore/impl/octree_disk_container.hpp:77:74: error: no matching constructor for initialization of 'boost::uuids::random_generator' (aka 'boost::uuids::random_generator_pure')
    boost::uuids::random_generator OutofcoreOctreeDiskContainer<PointT>::uuid_gen_ (&rand_gen_);
                                                                         ^          ~~~~~~~~~~
/usr/local/include/boost/uuid/random_generator.hpp:149:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'boost::mt19937 *' (aka 'mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615U, 11, 4294967295U, 7, 2636928640U, 15, 4022730752U, 18, 1812433253> *') to 'const boost::uuids::random_generator_pure' for 1st argument
class random_generator_pure
      ^
/usr/local/include/boost/uuid/random_generator.hpp:149:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided

PR:		227427
Reported by:	antoine (via exp-run)
Obtained from:	Homebrew
2018-04-20 02:31:21 +00:00

41 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= pcl
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 1.8.1
PORTREVISION= 3
CATEGORIES= graphics math
PKGNAMESUFFIX= -pointclouds
MAINTAINER= yuri@FreeBSD.org
COMMENT= Point Cloud Library
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libexpat.so:textproc/expat2 \
libflann_cpp.so:math/flann \
libfreetype.so:print/freetype2 \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libvtkCommonCore-6.2.so:math/vtk6
USES= cmake:outsource eigen:3,build jpeg python
USE_GITHUB= yes
GH_ACCOUNT= PointCloudLibrary
USE_GL= gl glu
USE_XORG= x11 xext xt ice sm
USE_LDCONFIG= yes
# https://github.com/PointCloudLibrary/pcl/issues/2284
CXXFLAGS+= -DBOOST_UUID_RANDOM_GENERATOR_COMPAT
PLIST_SUB= SHL3=${DISTVERSION} SHL2=${DISTVERSION:R}
DATADIR= ${PREFIX}/share/${PORTNAME}-${DISTVERSION:R} # match the directory where the project installs .cmake files
post-patch: # 10 doesn't have std::sqrt, switching to ::sqrt from math.h
@${GREP} -rl std::sqrt ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's|::std::sqrt|::sqrt|g ; s|std::sqrt|::sqrt|g'
.include <bsd.port.mk>