1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

graphics/colmap: touch up

- document expected test suite failures
 - add missing TEST_DEPENDS
 - remove outdated commented out Makefile chunk

See also:	https://github.com/colmap/colmap/issues/3021
This commit is contained in:
Robert Clausecker 2024-12-11 17:50:32 +01:00
parent f068c332b0
commit 13b4aed19b

View File

@ -24,6 +24,7 @@ LIB_DEPENDS= libPoseLib.so:graphics/poselib \
libglog.so:devel/glog \
liblz4.so:archivers/liblz4 \
libmetis.so:math/metis
TEST_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gtest.pc:devel/googletest
USES= cmake:testing compiler:${OPENMP}c++11-lib desktop-file-utils eigen:3 gl \
localbase python:env qt:5 sqlite
@ -49,7 +50,7 @@ DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx
OPENMP_CMAKE_BOOL= OPENMP_ENABLED
.if !exists(/usr/include/omp.h)
# XXX ports/199603: LLVM openmp in base doesn't support armv6, armv7 yet
# XXX ports/199603: LLVM openmp in base doesn't support armv7 yet
OPENMP_VARS= OPENMP=gcc-
.endif
@ -57,15 +58,6 @@ SIMD_CMAKE_BOOL= SIMD_ENABLED
SIMD_CFLAGS_i386= -msse2
SIMD_CFLAGS= ${SIMD_CFLAGS_${ARCH}}
#post-patch:
# XXX math/flann has -DUSE_OPENMP=OFF and lacks tunning:
# https://github.com/colmap/colmap/commit/4b594eb85c13
# https://github.com/colmap/colmap/commit/1e9f1f3324cd
#.if !defined(DISPLAY) # QApplication
# @${REINPLACE_CMD} -e '/opengl_utils_test/d' \
# ${WRKSRC}/src/util/CMakeLists.txt
#.endif
post-build-DOCS-on:
${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} -C ${WRKSRC}/doc html
@ -77,4 +69,10 @@ post-install-DOCS-on:
. ${STAGEDIR}${DOCSDIR})
${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo
# https://github.com/colmap/colmap/issues/3021#issuecomment-2536520512
pre-test:
@${ECHO_MSG} Expected test suite failures on displayless machines:
@${ECHO_MSG} "24 - feature/colmap_feature_sift_test (Subprocess aborted)"
@${ECHO_MSG} "88 - util/colmap_util_opengl_utils_test (Subprocess aborted)"
.include <bsd.port.mk>