git: f4456da3779f - main - multimedia/intel-media-sdk: convert TEST option to USES=cmake:testing
Jan Beich
jbeich at FreeBSD.org
Tue May 18 00:55:08 UTC 2021
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f4456da3779f6482ed880b4d99ded81b5678a471
commit f4456da3779f6482ed880b4d99ded81b5678a471
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-05-17 13:29:09 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-05-18 00:47:16 +0000
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 <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list