commit:     edbcfd76707583b9dcaf80086ad1f47772bc8989
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sun Jun 29 16:42:07 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 19 18:02:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edbcfd76

media-libs/x265: bump cmake_minimum_required to 3.28

Closes: https://bugs.gentoo.org/951836
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44229
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../x265/files/x265-cmake-min-version-3.28.patch   | 23 ++++++++++++++++++++++
 media-libs/x265/x265-3.6-r1.ebuild                 |  2 ++
 media-libs/x265/x265-4.1.ebuild                    |  2 ++
 media-libs/x265/x265-9999.ebuild                   |  2 ++
 4 files changed, 29 insertions(+)

diff --git a/media-libs/x265/files/x265-cmake-min-version-3.28.patch 
b/media-libs/x265/files/x265-cmake-min-version-3.28.patch
new file mode 100644
index 000000000000..ea59342c2143
--- /dev/null
+++ b/media-libs/x265/files/x265-cmake-min-version-3.28.patch
@@ -0,0 +1,23 @@
+From a6d121cbaf3f2cdcaf89b2188691a668a2803fd7 Mon Sep 17 00:00:00 2001
+From: Paul Zander <[email protected]>
+Date: Sun, 29 Jun 2025 18:38:36 +0200
+Subject: [PATCH] cmake min version 3.28
+
+Signed-off-by: Paul Zander <[email protected]>
+
+diff --git a/dynamicHDR10/CMakeLists.txt b/dynamicHDR10/CMakeLists.txt
+index 3639281..88171de 100644
+--- a/dynamicHDR10/CMakeLists.txt
++++ b/dynamicHDR10/CMakeLists.txt
+@@ -10,7 +10,7 @@ add_library(dynamicHDR10 OBJECT
+     hdr10plus.h
+     api.cpp )
+ 
+-cmake_minimum_required (VERSION 2.8.11)
++cmake_minimum_required (VERSION 3.28)
+ project(dynamicHDR10)
+ include(CheckIncludeFiles)
+ include(CheckFunctionExists)
+-- 
+2.50.0
+

diff --git a/media-libs/x265/x265-3.6-r1.ebuild 
b/media-libs/x265/x265-3.6-r1.ebuild
index 1654986fc417..85019f90db39 100644
--- a/media-libs/x265/x265-3.6-r1.ebuild
+++ b/media-libs/x265/x265-3.6-r1.ebuild
@@ -50,6 +50,8 @@ PATCHES=(
        "${FILESDIR}/${PN}-3.6-code-cleanup_2.patch"
        "${FILESDIR}/${PN}-3.6-code-cleanup_3.patch"
        "${FILESDIR}/${PN}-3.6-code-cleanup_4.patch"
+
+       "${FILESDIR}/${PN}-cmake-min-version-3.28.patch"
 )
 
 pkg_setup() {

diff --git a/media-libs/x265/x265-4.1.ebuild b/media-libs/x265/x265-4.1.ebuild
index 9973c026ac91..c2cf82c284f7 100644
--- a/media-libs/x265/x265-4.1.ebuild
+++ b/media-libs/x265/x265-4.1.ebuild
@@ -55,6 +55,8 @@ PATCHES=(
        "${FILESDIR}/${PN}-3.6-code-cleanup_4.patch"
 
        "${FILESDIR}/${PN}-4.1-vmaf.patch"
+
+       "${FILESDIR}/${PN}-cmake-min-version-3.28.patch"
 )
 
 pkg_setup() {

diff --git a/media-libs/x265/x265-9999.ebuild b/media-libs/x265/x265-9999.ebuild
index b72926030274..ad2f262dc07e 100644
--- a/media-libs/x265/x265-9999.ebuild
+++ b/media-libs/x265/x265-9999.ebuild
@@ -52,6 +52,8 @@ PATCHES=(
        "${FILESDIR}/${PN}-3.6-code-cleanup_3.patch"
 
        "${FILESDIR}/${PN}-4.1-vmaf.patch"
+
+       "${FILESDIR}/${PN}-cmake-min-version-3.28.patch"
 )
 
 pkg_setup() {

Reply via email to