blob: eda453028e2079746f0048f7d49fe836b0f4a57e (
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
|
PORTNAME= openmvs
DISTVERSIONPREFIX= v
DISTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= yuri@FreeBSD.org
COMMENT= Open Multi-View Stereo reconstruction library
WWW= https://github.com/cdcseacave/openMVS
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_aarch64= use of undeclared identifier '__builtin_ia32_emms' # https://github.com/cdcseacave/openMVS/issues/847
BUILD_DEPENDS= cgal>0:math/cgal \
${LOCALBASE}/include/sys/sysinfo.h:devel/libsysinfo \
vcglib>0:devel/vcglib
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libceres.so:math/ceres-solver \
libgflags.so:devel/gflags \
libglog.so:devel/glog \
libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
libopencv_core.so:graphics/opencv \
libpng16.so:graphics/png \
libtiff.so:graphics/tiff
USES= cmake:testing compiler:c++17-lang eigen:3 jpeg
USE_GITHUB= yes
GH_ACCOUNT= cdcseacave
GH_PROJECT= openMVS
CMAKE_ON= BUILD_SHARED_LIBS OpenMVS_USE_CERES
CMAKE_OFF= OpenMVS_BUILD_TOOLS # tools can't be built because of https://github.com/cdcseacave/openMVS/issues/846
CMAKE_OFF+= OpenMVS_ENABLE_TESTS
CMAKE_ARGS= -DVCG_ROOT=${LOCALBASE}/include/vcglib
CMAKE_TESTING_ON= OpenMVS_ENABLE_TESTS # tests fail to configure, see https://github.com/cdcseacave/openMVS/issues/911
.include <bsd.port.options.mk>
.if ${ARCH} != amd64 && ${ARCH} != i386
CMAKE_ARGS+= -DOpenMVS_USE_SSE:BOOL=OFF
.endif
.include <bsd.port.mk>
|