diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-03-05 14:06:27 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-03-05 14:08:42 +0100 |
commit | fd5741f1396dc1900c5671be4a3fad88b12951fd (patch) | |
tree | 07d68cd0de3fc8fa2232aedcdf0a55532714c011 | |
parent | media-fonts/fonts-meta: keyword ~riscv, #834599 (diff) | |
download | gentoo-fd5741f1396dc1900c5671be4a3fad88b12951fd.tar.gz gentoo-fd5741f1396dc1900c5671be4a3fad88b12951fd.tar.bz2 gentoo-fd5741f1396dc1900c5671be4a3fad88b12951fd.zip |
x11-libs/libva-intel-media-driver: drop versions
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
8 files changed, 0 insertions, 498 deletions
diff --git a/x11-libs/libva-intel-media-driver/Manifest b/x11-libs/libva-intel-media-driver/Manifest index 8a4b2cf287ed..eb6a0e5daa75 100644 --- a/x11-libs/libva-intel-media-driver/Manifest +++ b/x11-libs/libva-intel-media-driver/Manifest @@ -1,6 +1 @@ -DIST intel-media-20.4.5.tar.gz 22437981 BLAKE2B 136be5280b463879e47ce8a1dae1befbe3907a2429b799b972dffbdcb8b21512e3161dc209abf7b4dfb0d3695512963c40cdd85fb6fb2f3158bee12e8e42ddcd SHA512 dfd70dc83eae181830844f9055ad728d91a51a55ea29ea5d272b154f16a92dfba86568d9b4e8f8c56d500582056b73602c999d2e877386fcf46df1633fc5e2ea -DIST intel-media-21.3.5.tar.gz 23110985 BLAKE2B 1dbbc1efa9ae2c8f3b4a34596c71173101f8a43591bf9e07d269a8499b7a57969d9af5c1d4ffb7774a6947947e572b441f871760d3ca695335bfa2976ac2cf6f SHA512 e7836b19050677e81aa34ce5d7cea661ca3b5ac55d73d5aa0bab93f1daba8ee010d84b1c585f62fcec65a4361ef2b7f14ed574858f56b85b4c4d59840ecb6cb6 -DIST intel-media-21.4.0.tar.gz 23116624 BLAKE2B d913e379c4990bd0f5a5d07654baeb374d3b4f7adbe607338a96ac6555631560005d6124fb0124bafe5e94107b54acdfd0fbcfdabc820210b453ebb61c828c36 SHA512 e338e645677d90d4c2e91d5096a9002b87cec602ec354283b67e4ee31fcd6a2454918c4e179b86189126d30742ab2814bc8400072fb1d06638c3bc0bf66385e4 -DIST intel-media-21.4.2.tar.gz 23185132 BLAKE2B 257f1a8a65928aee897d84ed8df69a129958bcf5fd6ea263283e1f2341a845651a86367cff7988c0d4b04accf48664dbd4d1e0bd106883e92feff095e5f88225 SHA512 1b906ce75ef70395e36296de1e1e4b39d4a82c8b8532497faf47bcb101cf2103bba67a125da7ea1be9f901699288520f704b43fef01339a1f1b7691040d7618e -DIST intel-media-21.4.3.tar.gz 23192939 BLAKE2B d013b60c330df97dc29e51a95a78bd91a38c789c4690fde12c304e1bf0695024e5488d0485b60fa603e8490b932210163aec590bcfca031c1f19d7b16161b420 SHA512 d2e2db1ddc2cbdc022273f53d873f2156e992420d382285de0b9559340d912e847a4780ed2adfe67f06a7c4bcac83aadca1104cf051b9a3d43b3ffd931a3db22 DIST intel-media-22.1.0.tar.gz 26188730 BLAKE2B 7ade4b25d2fe50ed6c3498c37f0fb39ecf7241ba21485c423a4a8769628b78d8134471639aad12bcac79a7d107682e36cb5954227528601eb5253be5ce00acac SHA512 dd444608fd15fc7f05a0d2c9e6e2c8be3a588a1253ac014c045c207d5d59c9d172c89d248e94688078097a224f57025c11e86b9392271cd111bb9dce6d07617e diff --git a/x11-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.4.5_custom_cflags.patch b/x11-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.4.5_custom_cflags.patch deleted file mode 100644 index 436e2fe892e6..000000000000 --- a/x11-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.4.5_custom_cflags.patch +++ /dev/null @@ -1,136 +0,0 @@ - Prevent overriding of user-define CFLAGS, including -march flag. - - The flag -msse4.1 is required otherwise compile will not be able to inline sse4.1 code. - ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -52,6 +52,8 @@ option (BUILD_CMRTLIB "Build and Install cmrtlib together with media driver" ON) - - option (ENABLE_PRODUCTION_KMD "Enable Production KMD header files" OFF) - -+option (OVERRIDE_COMPILER_FLAGS "Override user compiler FLAGS and use lib defaults" ON) -+ - include(GNUInstallDirs) - - if (BUILD_CMRTLIB) - ---- a/cmrtlib/linux/CMakeLists.txt -+++ b/cmrtlib/linux/CMakeLists.txt -@@ -33,15 +33,19 @@ endif() - - # Set up compile options that will be used for the Linux build - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STANDARD_OPTION} -fPIC -fpermissive -fstack-protector-all -Werror") -+if (OVERRIDE_COMPILER_FLAGS) - if(CMAKE_SIZEOF_VOID_P EQUAL 8) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1") - endif() -+endif() - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-strict-aliasing -D_FORTIFY_SOURCE=2") - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG -D__DEBUG -O0") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CPP_STANDARD_OPTION} -fPIC -fpermissive -fstack-protector-all -Werror") -+if (OVERRIDE_COMPILER_FLAGS) - if(CMAKE_SIZEOF_VOID_P EQUAL 8) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.1") - endif() -+endif() - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fno-strict-aliasing -D_FORTIFY_SOURCE=2") - set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG -D__DEBUG -O0") - - ---- a/media_driver/cmake/linux/media_compile_flags_linux.cmake -+++ b/media_driver/cmake/linux/media_compile_flags_linux.cmake -@@ -36,7 +36,10 @@ set(MEDIA_COMPILER_FLAGS_COMMON - -Werror=format-security - -Werror=non-virtual-dtor - -Werror=return-type -+) - -+if (OVERRIDE_COMPILER_FLAGS) -+ list (APPEND MEDIA_COMPILER_FLAGS_COMMON - # General optimization options - -march=${UFO_MARCH} - -mpopcnt -@@ -44,23 +47,33 @@ set(MEDIA_COMPILER_FLAGS_COMMON - -msse2 - -msse3 - -mssse3 -- -msse4.1 - -msse4.2 - -msse4 -+) -+endif(OVERRIDE_COMPILER_FLAGS) -+ -+list (APPEND MEDIA_COMPILER_FLAGS_COMMON -+ -msse4.1 # SSE4.1 support is required to build the library - -mfpmath=sse - -finline-functions - -funswitch-loops - -fno-short-enums - -Wa,--noexecstack - -fno-strict-aliasing -+) - -+if (OVERRIDE_COMPILER_FLAGS) -+ list (APPEND MEDIA_COMPILER_FLAGS_COMMON - # Common defines - -DUSE_MMX - -DUSE_SSE - -DUSE_SSE2 - -DUSE_SSE3 - -DUSE_SSSE3 -+) -+endif(OVERRIDE_COMPILER_FLAGS) - -+list (APPEND MEDIA_COMPILER_FLAGS_COMMON - # Other common flags - -fmessage-length=0 - -fvisibility=hidden -@@ -68,16 +81,26 @@ set(MEDIA_COMPILER_FLAGS_COMMON - -fdata-sections - -ffunction-sections - -Wl,--gc-sections -+) - -+if (OVERRIDE_COMPILER_FLAGS) -+ list (APPEND MEDIA_COMPILER_FLAGS_COMMON - # -m32 or -m64 - -m${ARCH} -+) -+endif(OVERRIDE_COMPILER_FLAGS) - -+list (APPEND MEDIA_COMPILER_FLAGS_COMMON - # Global defines - -DLINUX=1 - -DLINUX - -DNO_RTTI - -DNO_EXCEPTION_HANDLING - -DINTEL_NOT_PUBLIC -+) -+ -+if (OVERRIDE_COMPILER_FLAGS) -+ list (APPEND MEDIA_COMPILER_FLAGS_COMMON - -g - ) - -@@ -90,6 +113,7 @@ if(${UFO_MARCH} STREQUAL "slm") - -mtune=atom - ) - endif() -+endif(OVERRIDE_COMPILER_FLAGS) - - if(${ARCH} STREQUAL "64") - set(MEDIA_COMPILER_FLAGS_COMMON -@@ -206,9 +230,11 @@ include(${MEDIA_EXT_CMAKE}/ext/linux/media_compile_flags_linux_ext.cmake OPTIONA - if(${PLATFORM} STREQUAL "linux") - #set predefined compiler flags set - add_compile_options("${MEDIA_COMPILER_FLAGS_COMMON}") -+if (OVERRIDE_COMPILER_FLAGS) - add_compile_options("$<$<CONFIG:Debug>:${MEDIA_COMPILER_FLAGS_DEBUG}>") - add_compile_options("$<$<CONFIG:Release>:${MEDIA_COMPILER_FLAGS_RELEASE}>") - add_compile_options("$<$<CONFIG:ReleaseInternal>:${MEDIA_COMPILER_FLAGS_RELEASEINTERNAL}>") -+endif(OVERRIDE_COMPILER_FLAGS) - - foreach (flag ${MEDIA_COMPILER_CXX_FLAGS_COMMON}) - SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}") - - diff --git a/x11-libs/libva-intel-media-driver/files/libva-intel-media-driver-21.2.2_custom_cflags.patch b/x11-libs/libva-intel-media-driver/files/libva-intel-media-driver-21.2.2_custom_cflags.patch deleted file mode 100644 index c0f598ce6cd0..000000000000 --- a/x11-libs/libva-intel-media-driver/files/libva-intel-media-driver-21.2.2_custom_cflags.patch +++ /dev/null @@ -1,52 +0,0 @@ - Prevent overriding of user-defined CFLAGS. - - ---- a/media_driver/cmake/linux/media_compile_flags_linux.cmake -+++ b/media_driver/cmake/linux/media_compile_flags_linux.cmake -@@ -51,16 +51,26 @@ set(MEDIA_COMPILER_FLAGS_COMMON - -fdata-sections - -ffunction-sections - -Wl,--gc-sections -+) - -+if (OVERRIDE_COMPILER_FLAGS) -+ list (APPEND MEDIA_COMPILER_FLAGS_COMMON - # -m32 or -m64 - -m${ARCH} -+) -+endif(OVERRIDE_COMPILER_FLAGS) - -+list (APPEND MEDIA_COMPILER_FLAGS_COMMON - # Global defines - -DLINUX=1 - -DLINUX - -DNO_RTTI - -DNO_EXCEPTION_HANDLING - -DINTEL_NOT_PUBLIC -+) -+ -+if (OVERRIDE_COMPILER_FLAGS) -+ list (APPEND MEDIA_COMPILER_FLAGS_COMMON - -g - ) - -@@ -73,6 +83,7 @@ if(${UFO_MARCH} STREQUAL "slm") - -mtune=atom - ) - endif() -+endif(OVERRIDE_COMPILER_FLAGS) - - if(${ARCH} STREQUAL "64") - set(MEDIA_COMPILER_FLAGS_COMMON -@@ -189,9 +200,11 @@ include(${MEDIA_EXT_CMAKE}/ext/linux/media_compile_flags_linux_ext.cmake OPTIONA - if(${PLATFORM} STREQUAL "linux") - #set predefined compiler flags set - add_compile_options("${MEDIA_COMPILER_FLAGS_COMMON}") -+if (OVERRIDE_COMPILER_FLAGS) - add_compile_options("$<$<CONFIG:Debug>:${MEDIA_COMPILER_FLAGS_DEBUG}>") - add_compile_options("$<$<CONFIG:Release>:${MEDIA_COMPILER_FLAGS_RELEASE}>") - add_compile_options("$<$<CONFIG:ReleaseInternal>:${MEDIA_COMPILER_FLAGS_RELEASEINTERNAL}>") -+endif(OVERRIDE_COMPILER_FLAGS) - - foreach (flag ${MEDIA_COMPILER_CXX_FLAGS_COMMON}) - SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}") diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-20.4.5-r2.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-20.4.5-r2.ebuild deleted file mode 100644 index 00f2befa1f19..000000000000 --- a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-20.4.5-r2.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -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 - SRC_URI="https://github.com/intel/media-driver/archive/intel-media-${PV}.tar.gz" - S="${WORKDIR}/media-driver-intel-media-${PV}" - KEYWORDS="amd64" -fi - -DESCRIPTION="Intel Media Driver for VAAPI (iHD)" -HOMEPAGE="https://github.com/intel/media-driver" - -LICENSE="MIT BSD" -SLOT="0" -IUSE="+custom-cflags set-as-default test X" - -RESTRICT="!test? ( test )" - -DEPEND=">=media-libs/gmmlib-20.4.1:= - media-libs/gmmlib:0/0 - >=x11-libs/libva-2.10.0[X?] - >=x11-libs/libpciaccess-0.13.1-r1:= -" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch - "${FILESDIR}"/${PN}-20.4.5_custom_cflags.patch - "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch -) - -src_configure() { - local mycmakeargs=( - -DMEDIA_BUILD_FATAL_WARNINGS=OFF - -DMEDIA_RUN_TEST_SUITE=$(usex test) - -DBUILD_TYPE=Release - -DPLATFORM=linux - -DUSE_X11=$(usex X) - -DLATEST_CPP_NEEDED=ON # Seems to be the best option for now - -DOVERRIDE_COMPILER_FLAGS=$(usex !custom-cflags) - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use set-as-default ; then - echo 'LIBVA_DRIVER_NAME="iHD"' > "${T}/55libva-intel-media-driver" || die - doenvd "${T}/55libva-intel-media-driver" - fi -} diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.3.5-r2.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.3.5-r2.ebuild deleted file mode 100644 index 05829c3b4ed6..000000000000 --- a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.3.5-r2.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -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 VAAPI (iHD)" -HOMEPAGE="https://github.com/intel/media-driver" - -LICENSE="MIT BSD" -SLOT="0" -IUSE="+custom-cflags set-as-default test X" - -RESTRICT="!test? ( test )" - -DEPEND=">=media-libs/gmmlib-21.3.1:= - media-libs/gmmlib:0/0 - >=x11-libs/libva-2.13.0[X?] -" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch - "${FILESDIR}"/${PN}-21.2.2_custom_cflags.patch - "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch -) - -src_configure() { - local mycmakeargs=( - -DMEDIA_BUILD_FATAL_WARNINGS=OFF - -DMEDIA_RUN_TEST_SUITE=$(usex test) - -DBUILD_TYPE=Release - -DPLATFORM=linux - -DUSE_X11=$(usex X) - -DLATEST_CPP_NEEDED=ON # Seems to be the best option for now - -DOVERRIDE_COMPILER_FLAGS=$(usex !custom-cflags) - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use set-as-default ; then - echo 'LIBVA_DRIVER_NAME="iHD"' > "${T}/55libva-intel-media-driver" || die - doenvd "${T}/55libva-intel-media-driver" - fi -} diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.0-r2.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.0-r2.ebuild deleted file mode 100644 index 5573b2b96933..000000000000 --- a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.0-r2.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -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 VAAPI (iHD)" -HOMEPAGE="https://github.com/intel/media-driver" - -LICENSE="MIT BSD" -SLOT="0" -IUSE="+custom-cflags set-as-default test X" - -RESTRICT="!test? ( test )" - -DEPEND=">=media-libs/gmmlib-21.3.1:= - media-libs/gmmlib:0/0 - >=x11-libs/libva-2.13.0[X?] -" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch - "${FILESDIR}"/${PN}-21.2.2_custom_cflags.patch - "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch -) - -src_configure() { - local mycmakeargs=( - -DMEDIA_BUILD_FATAL_WARNINGS=OFF - -DMEDIA_RUN_TEST_SUITE=$(usex test) - -DBUILD_TYPE=Release - -DPLATFORM=linux - -DUSE_X11=$(usex X) - -DLATEST_CPP_NEEDED=ON # Seems to be the best option for now - -DOVERRIDE_COMPILER_FLAGS=$(usex !custom-cflags) - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use set-as-default ; then - echo 'LIBVA_DRIVER_NAME="iHD"' > "${T}/55libva-intel-media-driver" || die - doenvd "${T}/55libva-intel-media-driver" - fi -} diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.2-r2.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.2-r2.ebuild deleted file mode 100644 index 5ce014edf7eb..000000000000 --- a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.2-r2.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -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 VAAPI (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-21.3.1:= - media-libs/gmmlib:0/0 - >=x11-libs/libva-2.13.0[X?] -" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch - "${FILESDIR}"/${PN}-21.4.2-Remove-unwanted-CFLAGS.patch - "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch -) - -src_configure() { - local mycmakeargs=( - -DMEDIA_BUILD_FATAL_WARNINGS=OFF - -DMEDIA_RUN_TEST_SUITE=$(usex test) - -DBUILD_TYPE=Release - -DPLATFORM=linux - -DUSE_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 -} diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.3.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.3.ebuild deleted file mode 100644 index 8da9f2236e58..000000000000 --- a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.3.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -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 VAAPI (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-21.3.1:= - media-libs/gmmlib:0/0 - >=x11-libs/libva-2.13.0[X?] -" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch - "${FILESDIR}"/${PN}-21.4.2-Remove-unwanted-CFLAGS.patch - "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch -) - -src_configure() { - local mycmakeargs=( - -DMEDIA_BUILD_FATAL_WARNINGS=OFF - -DMEDIA_RUN_TEST_SUITE=$(usex test) - -DBUILD_TYPE=Release - -DPLATFORM=linux - -DUSE_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 -} |