From f4456da3779f6482ed880b4d99ded81b5678a471 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 17 May 2021 13:29:09 +0000 Subject: [PATCH] multimedia/intel-media-sdk: convert TEST option to USES=cmake:testing --- multimedia/intel-media-sdk/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/multimedia/intel-media-sdk/Makefile b/multimedia/intel-media-sdk/Makefile index 380500385798..270e77d20696 100644 --- a/multimedia/intel-media-sdk/Makefile +++ b/multimedia/intel-media-sdk/Makefile @@ -14,18 +14,20 @@ ONLY_FOR_ARCHS_REASON= Only Intel GPUs on x86 are supported LIB_DEPENDS= libva.so:multimedia/libva RUN_DEPENDS= cmrtlib>0:multimedia/cmrtlib +TEST_DEPENDS= googletest>0:devel/googletest -USES= cmake compiler:c++11-lib pkgconfig +USES= cmake:testing compiler:c++11-lib localbase:ldflags pkgconfig USE_GITHUB= yes USE_LDCONFIG= yes GH_ACCOUNT= Intel-Media-SDK GH_PROJECT= MediaSDK CMAKE_ON= BUILD_TOOLS +CMAKE_TESTING_ON= BUILD_TESTS USE_SYSTEM_GTEST PLIST_SUB= ARCH_SUFX=${ARCH:S/i386/32/:S/amd//:S/x86_//} # https://github.com/Intel-Media-SDK/MediaSDK/issues/1844 LLD_UNSAFE= yes -OPTIONS_DEFINE= OPENCL TEST WAYLAND X11 +OPTIONS_DEFINE= OPENCL WAYLAND X11 OPTIONS_DEFAULT=OPENCL WAYLAND X11 OPTIONS_SUB= yes @@ -41,11 +43,6 @@ WAYLAND_LIB_DEPENDS= libdrm_intel.so:graphics/libdrm \ libwayland-client.so:graphics/wayland WAYLAND_CMAKE_BOOL= ENABLE_WAYLAND -TEST_BUILD_DEPENDS= googletest>0:devel/googletest -TEST_USES= localbase:ldflags -TEST_CMAKE_BOOL= BUILD_TESTS USE_SYSTEM_GTEST -TEST_TEST_TARGET= test - post-patch: # Pick git commit from port and use reproducible time @${REINPLACE_CMD} -e "/COMMAND/s/date/& -r `${AWK} '/TIMESTAMP/ \ @@ -57,6 +54,4 @@ post-patch: @${REINPLACE_CMD} -e 's/ -lstdc++ -ldl//' \ ${WRKSRC}/api/mfx_dispatch/linux/pkg-config*.cmake -pre-install-TEST-on: do-test - .include