summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-02-15 15:19:23 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-02-15 15:19:23 +0000
commitdafebd823dca2906e4f0371a96a861df2c7a30fc (patch)
tree251283cd59eed38117705936fbcbd762c0f3af2d
parentsecurity/boringssl: update to the recent commit (diff)
multimedia/vvdec: enable on powerpc64, remove incorrect ONLY_FOR_ARCHS_REASON
Like other ports, powerpc64 needs to have LTO disabled.
-rw-r--r--multimedia/vvdec/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/multimedia/vvdec/Makefile b/multimedia/vvdec/Makefile
index 63e49bd9b7b6..023751befbdb 100644
--- a/multimedia/vvdec/Makefile
+++ b/multimedia/vvdec/Makefile
@@ -9,8 +9,7 @@ COMMENT= Versatile Video Coding (VVC) decoder
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-ONLY_FOR_ARCHS= amd64 powerpc64le
-ONLY_FOR_ARCHS_REASON= uses explicit SSE instructions without any way to turn them off, can be removed once this bug is fixed: https://github.com/fraunhoferhhi/vvdec/issues/9; also is for 64-bit systems
+ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le
USES= cmake compiler:c++14-lang
USE_LDCONFIG= yes
@@ -21,4 +20,10 @@ GH_ACCOUNT= fraunhoferhhi
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= FREEBSD_VVDEC_ENABLE_X86_SIMD
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+CMAKE_ARGS+= -DVVDEC_ENABLE_LINK_TIME_OPT:BOOL=OFF
+.endif
+
.include <bsd.port.mk>