commit:     7683a9778c44a300795de046ef2fee7ec05a96a4
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 26 15:56:43 2023 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sat Aug 26 16:03:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7683a977

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

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

 media-libs/libva-intel-media-driver/Manifest       |  1 +
 .../libva-intel-media-driver-23.3.1.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 afd4c17bbd2a..03e27082d956 100644
--- a/media-libs/libva-intel-media-driver/Manifest
+++ b/media-libs/libva-intel-media-driver/Manifest
@@ -1,2 +1,3 @@
 DIST intel-media-23.2.4.tar.gz 28664669 BLAKE2B 
01092c5786a7c665a3f1b61fdf306ba9fcb8957900fba987c9bca4716f48d7b006cb71a456cf75ea59f3dc9076e628dc4261bae5c3afe7da3bdc928c300cf4d4
 SHA512 
b02a50d5820cf22999c39ab2ff559c444682576018f2cb9aa669014f5c1fd07b01737fab706ec100929d3493a8b9e25bba7bcbae2af304d51c93b667af2884db
 DIST intel-media-23.3.0.tar.gz 28669245 BLAKE2B 
3554ba23eef4adc0b24196bed96669b68f3a6eb3fc74817c155f2d88d041226feaea384f6e1f1602dfb45630dd826f02835ead670b311384b18e3082855eb9e5
 SHA512 
9eddb4294c8718a133144736c536b30e3a7a1cb0e96467ffc9565cc14f94659c59559b3bf59540b9e605325ee186afe9e359fbe2e64ab167dcbbd965ace68e9e
+DIST intel-media-23.3.1.tar.gz 28670977 BLAKE2B 
7c546db40ecb65a1d6fc02779106c9cf7575f00d35614e9eb8b992a01b7fb5421b6fe7abd2192408caacb4b135d8c4677922c1710558c3835de0e482233628ad
 SHA512 
b7944c94d89f456e017223c937d3e7dcd5d831fd6eb8b47c17e38a68227699953301d740119a8cf648e8d404cd8a02e4d4308472892b062858668d34272bed7d

diff --git 
a/media-libs/libva-intel-media-driver/libva-intel-media-driver-23.3.1.ebuild 
b/media-libs/libva-intel-media-driver/libva-intel-media-driver-23.3.1.ebuild
new file mode 100644
index 000000000000..4b8e3b107c7b
--- /dev/null
+++ b/media-libs/libva-intel-media-driver/libva-intel-media-driver-23.3.1.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.9:=[${MULTILIB_USEDEP}]
+       >=media-libs/libva-2.19.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