Created attachment 229158 [details] patch This patch uses the ASM option to simplify things, but actually assembly isn't used, just SIMD code in C/C++. Anyway, POWER8 intrinsics for x265 are available for HI8P, HI10P and HI12P, but additional AltiVec code is only available for HI8P. On top of that, using ENABLE_ASSEMBLY actually breaks build (because there's no assembly, but C/C++ code). Also, remove ASM_PREVENTS*. It doesn't work after including bsd.port.options.mk.
Created attachment 229159 [details] v2 Actually don't enable it by default, will break users of older POWER.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc29ad6598478ba1125b88114d88838f86a6b8be commit cc29ad6598478ba1125b88114d88838f86a6b8be Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-11-16 14:44:19 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-11-16 14:44:19 +0000 multimedia/x265: add option to use altivec on powerpc64 PR: 259564 Approved by: mi@ALDAN.algebra.com (maintainer timeout) multimedia/x265/Makefile | 42 +++++++++++++++++++++-- multimedia/x265/files/patch-source_CMakeLists.txt | 20 ++++++++--- 2 files changed, 55 insertions(+), 7 deletions(-)