summaryrefslogtreecommitdiff
path: root/graphics/open3d/Makefile
blob: db63518cac82a6112f81f52f19f3cda52867a859 (plain)
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
PORTNAME=	Open3D
DISTVERSIONPREFIX=	v
DISTVERSION=	0.2
PORTREVISION=	10
CATEGORIES=	graphics

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Modern library for 3D data processing
WWW=		http://www.open3d.org/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/../LICENSE

LIB_DEPENDS=	libglfw.so:graphics/glfw \
		libjsoncpp.so:devel/jsoncpp \
		libpng.so:graphics/png

USES=		cmake compiler:c++14-lang eigen:3 gl jpeg localbase:ldflags \
		pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	IntelVCL
USE_GL=		gl glew glu
USE_LDCONFIG=	yes

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_OFF=	BUILD_TESTS BUILD_PYBIND11 BUILD_PYTHON_MODULE BUILD_PYTHON_TUTORIALS

WRKSRC_SUBDIR=	src
LDFLAGS+=	-pthread # https://github.com/IntelVCL/Open3D/issues/510

post-install: # https://github.com/IntelVCL/Open3D/issues/509
.for d in include/Open3D/IO/FileFormat include/Open3D/Visualization/Shader/GLSL
	@${RMDIR} ${STAGEDIR}${PREFIX}/${d}
.endfor

.include <bsd.port.mk>