mirror of https://git.freebsd.org/ports.git
graphics/openexr: Only build test suite when requested
In order to avoid ctest performance regressions, we also required
commit cbee39bcd1
from PR 278533.
PR: 278500
main
parent
cbee39bcd1
commit
2ce9c15f88
|
@ -40,13 +40,23 @@ BUILD_DEPENDS?= help2man:misc/help2man
|
|||
LIB_DEPENDS?= libImath-3_1.so.29:math/Imath \
|
||||
libdeflate.so:archivers/libdeflate
|
||||
|
||||
USES?= cmake compiler:c++14-lang cpe pathfix pkgconfig
|
||||
USES?= cmake:testing compiler:c++14-lang cpe pathfix pkgconfig
|
||||
|
||||
#USE_GITHUB= yes
|
||||
#GH_TUPLE= AcademySoftwareFoundation:openexr:v${PORTVERSION}
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CMAKE_TESTING_ON= BUILD_TESTING \
|
||||
OPENEXR_TEST_LIBRARIES \
|
||||
OPENEXR_TEST_PYTHON \
|
||||
OPENEXR_TEST_TOOLS
|
||||
|
||||
CMAKE_OFF= BUILD_TESTING \
|
||||
OPENEXR_TEST_LIBRARIES \
|
||||
OPENEXR_TEST_PYTHON \
|
||||
OPENEXR_TEST_TOOLS
|
||||
|
||||
CMAKE_ARGS?= -DCMAKE_DEBUG_POSTFIX=
|
||||
|
||||
CPPFLAGS+= -I.
|
||||
|
@ -104,8 +114,5 @@ post-install-EXAMPLES-off:
|
|||
${RM} -R ${STAGEDIR}${PREFIX}/share/doc/OpenEXR/examples/
|
||||
@${RMDIR} ${STAGEDIR}${PREFIX}/share/doc/OpenEXR 2>/dev/null || :
|
||||
|
||||
do-test:
|
||||
cd ${BUILD_WRKSRC} && ctest -j ${MAKE_JOBS_NUMBER}
|
||||
|
||||
.endif
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in New Issue