diff --git a/graphics/openmvs/Makefile b/graphics/openmvs/Makefile index e54143024018..fa9ca9a2fbaf 100644 --- a/graphics/openmvs/Makefile +++ b/graphics/openmvs/Makefile @@ -1,35 +1,41 @@ PORTNAME= openmvs DISTVERSIONPREFIX= v DISTVERSION= 2.0.1 CATEGORIES= graphics MAINTAINER= yuri@FreeBSD.org COMMENT= Open Multi-View Stereo reconstruction library 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 \ libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libopencv_core.so:graphics/opencv \ libpng16.so:graphics/png \ libtiff.so:graphics/tiff USES= cmake 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_ARGS= -DVCG_ROOT=${LOCALBASE}/include/vcglib +.include + +.if ${ARCH} != amd64 && ${ARCH} != i386 +CMAKE_ARGS+= -DOpenMVS_USE_SSE:BOOL=OFF +.endif + .include diff --git a/graphics/openmvs/files/patch-libs_Common_Config.h b/graphics/openmvs/files/patch-libs_Common_Config.h new file mode 100644 index 000000000000..571b88947aad --- /dev/null +++ b/graphics/openmvs/files/patch-libs_Common_Config.h @@ -0,0 +1,13 @@ +--- libs/Common/Config.h.orig 2022-07-26 08:34:06 UTC ++++ libs/Common/Config.h +@@ -144,7 +144,9 @@ + #endif + + +-#if defined(__arm__) || defined (__arm64__) || defined(__aarch64__) || defined(_M_ARM) || defined(_M_ARMT) ++#if defined(__powerpc__) ++#define _PLATFFORM_PPC 1 ++#elif defined(__arm__) || defined (__arm64__) || defined(__aarch64__) || defined(_M_ARM) || defined(_M_ARMT) + #define _PLATFORM_ARM 1 + #else + #define _PLATFORM_X86 1