1 |
commit: b8835ecf125cbe045fe4a13e1969a0a1f0885cc6 |
2 |
Author: Karlson2k (Evgeny Grin) <k2k <AT> narod <DOT> ru> |
3 |
AuthorDate: Thu Jul 1 08:18:40 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 08:54:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8835ecf |
7 |
|
8 |
x11-libs/libva-intel-media-driver: new version 21.2.3 |
9 |
|
10 |
Signed-off-by: Karlson2k (Evgeny Grin) <k2k <AT> narod.ru> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/21496 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
x11-libs/libva-intel-media-driver/Manifest | 1 + |
15 |
.../libva-intel-media-driver-21.2.3.ebuild | 62 ++++++++++++++++++++++ |
16 |
2 files changed, 63 insertions(+) |
17 |
|
18 |
diff --git a/x11-libs/libva-intel-media-driver/Manifest b/x11-libs/libva-intel-media-driver/Manifest |
19 |
index bedf5dcb761..58c9e525ce4 100644 |
20 |
--- a/x11-libs/libva-intel-media-driver/Manifest |
21 |
+++ b/x11-libs/libva-intel-media-driver/Manifest |
22 |
@@ -4,3 +4,4 @@ DIST intel-media-20.4.5.tar.gz 22437981 BLAKE2B 136be5280b463879e47ce8a1dae1befb |
23 |
DIST intel-media-21.1.2.tar.gz 22487027 BLAKE2B 819b7c4a4fc9295034af77f1e95d4b23ca974629f0ff70f14d84c881fa8ae2558708878e045b700fef30bb28a1af9ec61306854e91d0df4881e7d9dc229715b2 SHA512 046942ebedad2e40de3c592ed92bd7d266402f1f94d30ee7674adcb147774f6d90af18c56a19a8d16465144a7bded9cc7b6eeefdeb50f349c7d3ef6840c30ea4 |
24 |
DIST intel-media-21.1.3.tar.gz 22507169 BLAKE2B 68962db57d6f4c11e50b5d44584adf0458d08a118234a091aa55734885ee9fab6449658a8736c4a23233be38b58311953492482c3d9b258dd2cf8008cf363f20 SHA512 a5a4c26d86191138245e0cc62304aeeccfb6627b04310e4b1d35cc2050b909d9b856b6176d868562336dd6342f93b1909b46fb481eb353ef02cc188eea5da121 |
25 |
DIST intel-media-21.2.2.tar.gz 23021952 BLAKE2B 0173eb8fb81c3012af30bb755b87e5f4ad8e0ea1d7fd4c844dda8d08d72968e3080f320384dcc50caf0ad4f013eec69fe4e8d1444fac665623e6f72521fc3a95 SHA512 f88fd02af55538045e01982e7bda8a7e781ad7fa57a8e60e61681a705a87a402ceab433a5362fe0f6269366ea54b60f91ffd2689641370f20c66dc10d26d1c4a |
26 |
+DIST intel-media-21.2.3.tar.gz 23025524 BLAKE2B 0652563f8e8494c9fa181822a7af348cc5ce1e2446063c743fa89072ae46c6a4af0c71001fb8249b0306d67a220312f883a8f54dde1981078e6ee8fad71eaaa1 SHA512 b12ff5b3afbc4d4f34353c7a4ea50b1c66746b33920e450d7d17cffdc234921e82fc4c1afb025274caf2a5efbe87e577b6790d0648a52de08ea19b11a103ac81 |
27 |
|
28 |
diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.2.3.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.2.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..fc67874d04c |
31 |
--- /dev/null |
32 |
+++ b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.2.3.ebuild |
33 |
@@ -0,0 +1,62 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit cmake |
40 |
+ |
41 |
+if [[ ${PV} == *9999 ]] ; then |
42 |
+ : ${EGIT_REPO_URI:="https://github.com/intel/media-driver"} |
43 |
+ if [[ ${PV%9999} != "" ]] ; then |
44 |
+ : ${EGIT_BRANCH:="release/${PV%.9999}"} |
45 |
+ fi |
46 |
+ inherit git-r3 |
47 |
+else |
48 |
+ MY_PV="${PV%_pre}" |
49 |
+ SRC_URI="https://github.com/intel/media-driver/archive/intel-media-${MY_PV}.tar.gz" |
50 |
+ S="${WORKDIR}/media-driver-intel-media-${MY_PV}" |
51 |
+ KEYWORDS="~amd64" |
52 |
+fi |
53 |
+ |
54 |
+DESCRIPTION="Intel Media Driver for VAAPI (iHD)" |
55 |
+HOMEPAGE="https://github.com/intel/media-driver" |
56 |
+ |
57 |
+LICENSE="MIT BSD" |
58 |
+SLOT="0" |
59 |
+IUSE="+custom-cflags set-as-default test X" |
60 |
+ |
61 |
+RESTRICT="!test? ( test )" |
62 |
+ |
63 |
+DEPEND=">=media-libs/gmmlib-21.2.1 |
64 |
+ >=x11-libs/libva-2.12.0[X?] |
65 |
+" |
66 |
+RDEPEND="${DEPEND}" |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch |
70 |
+ "${FILESDIR}"/${PN}-21.2.2_custom_cflags.patch |
71 |
+ "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch |
72 |
+) |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ -DMEDIA_BUILD_FATAL_WARNINGS=OFF |
77 |
+ -DMEDIA_RUN_TEST_SUITE=$(usex test) |
78 |
+ -DBUILD_TYPE=Release |
79 |
+ -DPLATFORM=linux |
80 |
+ -DUSE_X11=$(usex X) |
81 |
+ -DLATEST_CPP_NEEDED=ON # Seems to be the best option for now |
82 |
+ -DOVERRIDE_COMPILER_FLAGS=$(usex !custom-cflags) |
83 |
+ ) |
84 |
+ |
85 |
+ cmake_src_configure |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ cmake_src_install |
90 |
+ |
91 |
+ if use set-as-default ; then |
92 |
+ echo 'LIBVA_DRIVER_NAME="iHD"' > "${T}/55libva-intel-media-driver" || die |
93 |
+ doenvd "${T}/55libva-intel-media-driver" |
94 |
+ fi |
95 |
+} |