freebsd-ports/graphics/pcl-pointclouds/Makefile
Niclas Zeising 0fae2e9e0e Change x11/xorgproto to become a build dep
Change x11/xorgproto to become a build time dependency when added to
USE_XORG.  Change the dependency to be on the port, rather than a file the
port installs.
Fix fallout.
Bump portrevision on depending ports.

PR:		230909
Reviewed by:	eadler
Approved by:	portmgr (antoine)
Obtained from:	https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto
exp-run:	antoine
Differential Revision:	https://reviews.freebsd.org/D16906
2018-09-11 18:34:27 +00:00

43 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= pcl
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 1.8.1
PORTREVISION= 8
CATEGORIES= graphics math
PKGNAMESUFFIX= -pointclouds
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= 2309bdab20fb2a385d374db6a87349199279db18.patch:-p1
PATCHFILES+= 491b7c7e12ce39c59fb1f22718812a02e7f58065.patch:-p1 \
d96073d4d534af07f005cbe7889afdad34f39c76.patch:-p1
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
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>