aboutsummaryrefslogtreecommitdiff
path: root/misc/visp/Makefile
blob: a999e1f235402de3d8bdb2036611fa6f5debde21 (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
PORTNAME=	visp
DISTVERSION=	3.6.0
PORTREVISION=	1
CATEGORIES=	misc
MASTER_SITES=	https://visp-doc.inria.fr/download/releases/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Modular library for visual tracking and visual servoing
WWW=		https://visp.inria.fr/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BUILD_DEPENDS=	doxygen:devel/doxygen \
		latex:print/tex-formats \
		nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS=	libblas.so:math/blas \
		libboost_system.so:devel/boost-libs \
		libdmtx.so:graphics/libdmtx \
		libflann.so:math/flann \
		libgsl.so:math/gsl \
		liblapack.so:math/lapack \
		libopenblas.so:math/openblas \
		libopencv_core.so:graphics/opencv \
		libopencv_videoio.so:graphics/opencv \
		libpcap.so:net/libpcap \
		libpng.so:graphics/png \
		libv4l2.so:multimedia/libv4l \
		libdc1394.so:multimedia/libdc1394

USES=		cmake compiler:c++14-lang eigen:3 fortran gl gnome jpeg python:build qt:5 xorg zip
USE_QT=		opengl widgets
USE_GNOME=	libxml2
USE_XORG=	ice sm x11 xext
USE_GL=		gl glu opengl
USE_LDCONFIG=	yes

CMAKE_OFF=	WITH_QBDEVICE BUILD_EXAMPLES BUILD_TUTORIALS BUILD_TESTS BUILD_DEMOS

OPTIONS_DEFINE=		COIN OGRE PCL ZBAR
OPTIONS_DEFAULT=	COIN OGRE PCL ZBAR

COIN_DESC=		Use Coin3D for simulation or augmented reality capabilities
COIN_CMAKE_BOOL=	USE_COIN3D
COIN_LIB_DEPENDS=	libCoin.so:graphics/Coin

OGRE_DESC=		Include Ogre support for 3D Rendering
OGRE_CMAKE_BOOL=	USE_OGRE
OGRE_LIB_DEPENDS=	libOgreMain.so:graphics/ogre3d19

PCL_DESC=		Include Point Cloud Library support
PCL_CMAKE_BOOL=		USE_PCL
PCL_LIB_DEPENDS=	libpcl_common.so:graphics/pcl-pointclouds \
			libvtkCommonCore-9.2.so:math/vtk9 # vtk9 is incurred by pcl-pointclouds

ZBAR_DESC=		Use ZBAR to read bar codes and QR codes
ZBAR_CMAKE_BOOL=	USE_ZBAR
ZBAR_LIB_DEPENDS=	libzbar.so:graphics/zbar

.include <bsd.port.mk>