git: 92c083249312 - main - multimedia/x265: fix HDR10+ support

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Wed, 10 Jul 2024 13:35:48 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=92c083249312380c8e3fb72279fb8e91a7d4b50c

commit 92c083249312380c8e3fb72279fb8e91a7d4b50c
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-07-10 13:15:23 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-07-10 13:33:31 +0000

    multimedia/x265: fix HDR10+ support
    
    Currently, the FreeBSD build of multimedia/x265 fails to include HDR10+
    (a.k.a. HDR10plus or "dynamic HDR") support. It only includes HDR10
    support (without "plus", sometimes referred to as "static HDR").
    That problem also affects the ffmpeg port because it uses the x265 port
    for encoding. And that, in turn, affects many other ports that use
    ffmpeg or its library for encoding. In other words, the problem renders
    several ports unable to produce HDR10+ video content.
    
    There is a non-default cmake build option ENABLE_HDR10_PLUS, but the
    port does not handle it correctly.
    
    PR:             280208
    Approved by:    Mikhail T. <freebsd-2024@virtual-estates.net> (maintainer)
---
 multimedia/x265/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/multimedia/x265/Makefile b/multimedia/x265/Makefile
index f32f53590021..8be7da1e5909 100644
--- a/multimedia/x265/Makefile
+++ b/multimedia/x265/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	x265
 PORTVERSION=	3.5
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	multimedia
 MASTER_SITES=	https://bitbucket.org/multicoreware/x265_git/get/${BB_TAG}.tar.gz?meow=/
 
@@ -55,7 +55,8 @@ SVTHEVC_DESC=	HEVC encoding via SVT-HEVC
 VMAF_DESC=	Per frame and aggregate VMAF score
 
 USE_LDCONFIG=	yes
-CMAKE_ARGS=	-DENABLE_TESTS=on -DENABLE_HDR10_PLUS:BOOL=true -DGIT_ARCHETYPE=1
+CMAKE_ARGS=	-DENABLE_TESTS=on -DGIT_ARCHETYPE=1
+CMAKE_ON=	ENABLE_HDR10_PLUS
 LDFLAGS_i386=	-Wl,-znotext
 EXTRACT_AFTER_ARGS+=	--exclude compat --exclude md5\.* --strip-components=1
 PATCH_WRKSRC=	${WRKSRC:H}