commit:     67b55272ad63d16943740cb32160e9dcc40cfb88
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 27 01:01:06 2023 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 27 05:06:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67b55272

media-libs/libva-intel-media-driver: Version bump to 23.1.6

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-libs/libva-intel-media-driver/Manifest       |  1 +
 .../libva-intel-media-driver-23.1.6.ebuild         | 57 ++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/media-libs/libva-intel-media-driver/Manifest 
b/media-libs/libva-intel-media-driver/Manifest
index 8dacf4f99f6f..fb89edf34555 100644
--- a/media-libs/libva-intel-media-driver/Manifest
+++ b/media-libs/libva-intel-media-driver/Manifest
@@ -1,2 +1,3 @@
 DIST intel-media-22.6.6.tar.gz 28599397 BLAKE2B 
3a3449f0af37c431ff1224bb919de3382767044a728603b9fb3343f6a2ed92ec8f9c30796623a17fe64de617816d0961507171c06e41739c9c650145b93439e2
 SHA512 
8013ecadfc827a89eea6c72e262c220fe05fc11348ab23d46fb703f170d927739b46b21bad5e79fdebde86b646609339d2333eafb7f0798d77f9c64f20203f90
 DIST intel-media-23.1.5.tar.gz 28640412 BLAKE2B 
5b9e1d3aebb63bd0164a1fa09c33583d4b41ce5dc509b49218e370f9bcbce42ff58872fa5fcdfcca9cd4c9c08e9d744aa22fe084af71970fefa1f70cc936d859
 SHA512 
b758871618e86487af026df27aa44ccc4dd28ee6cbd3b863fc076052428b7a05a0ad104297e4da50edf298e8ee067959389e283d7479b852315371094a475bc5
+DIST intel-media-23.1.6.tar.gz 28641715 BLAKE2B 
5f0ad615c95347dc2be95280b225345aec35c88c5b7560c86221c004d0b66a9ac929d68a38252fcf66a4a798bf733794c315683ce239e7946ba285b3dbaed462
 SHA512 
4068aafb45c5dc7877aeaad5343701ba490c0a369fb3d4d26a2732d8d92e1e39cadd7c662184190bbcecece5dd65271f02a3e260b607ccda3ff7f47dbc798af1

diff --git 
a/media-libs/libva-intel-media-driver/libva-intel-media-driver-23.1.6.ebuild 
b/media-libs/libva-intel-media-driver/libva-intel-media-driver-23.1.6.ebuild
new file mode 100644
index 000000000000..4e88c88c1c0a
--- /dev/null
+++ b/media-libs/libva-intel-media-driver/libva-intel-media-driver-23.1.6.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib flag-o-matic
+
+if [[ ${PV} == *9999 ]] ; then
+       : ${EGIT_REPO_URI:="https://github.com/intel/media-driver"}
+       if [[ ${PV%9999} != "" ]] ; then
+               : ${EGIT_BRANCH:="release/${PV%.9999}"}
+       fi
+       inherit git-r3
+else
+       MY_PV="${PV%_pre}"
+       
SRC_URI="https://github.com/intel/media-driver/archive/intel-media-${MY_PV}.tar.gz";
+       S="${WORKDIR}/media-driver-intel-media-${MY_PV}"
+       if [[ ${PV} != *_pre* ]] ; then
+               KEYWORDS="~amd64"
+       fi
+fi
+
+DESCRIPTION="Intel Media Driver for VA-API (iHD)"
+HOMEPAGE="https://github.com/intel/media-driver";
+
+LICENSE="MIT BSD redistributable? ( no-source-code )"
+SLOT="0"
+IUSE="+redistributable test X"
+
+RESTRICT="!test? ( test )"
+
+DEPEND=">=media-libs/gmmlib-22.3.0:=[${MULTILIB_USEDEP}]
+       >=media-libs/libva-2.14.0[X?,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-21.4.2-Remove-unwanted-CFLAGS.patch
+       "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch
+)
+
+multilib_src_configure() {
+       # https://github.com/intel/media-driver/issues/356
+       append-cxxflags -D_FILE_OFFSET_BITS=64
+
+       local mycmakeargs=(
+               -DMEDIA_BUILD_FATAL_WARNINGS=OFF
+               -DMEDIA_RUN_TEST_SUITE=$(usex test)
+               -DBUILD_TYPE=Release
+               -DPLATFORM=linux
+               -DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex !X)
+               -DENABLE_NONFREE_KERNELS=$(usex redistributable)
+               -DLATEST_CPP_NEEDED=ON # Seems to be the best option for now
+       )
+       local CMAKE_BUILD_TYPE="Release"
+       cmake_src_configure
+}

Reply via email to