blob: 19f2dccbbd755ac437cc1454a297eca755ed7ff5 [file] [log] [blame]
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
SRC_URI="https://github.com/intel/media-driver/archive/intel-media-${PV}.tar.gz"
S="${WORKDIR}/media-driver-intel-media-${PV}"
KEYWORDS="*"
DESCRIPTION="Intel Media Driver for VAAPI (iHD)"
HOMEPAGE="https://github.com/intel/media-driver"
LICENSE="MIT BSD"
SLOT="0"
IUSE="ihd_cmrtlib"
DEPEND=">=media-libs/gmmlib-21.2.1
>=x11-libs/libva-2.12.0
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/0001-Disable-IPC-usage.patch
"${FILESDIR}"/0002-change-slice-header-prefix-for-AVC-Vdenc.patch
"${FILESDIR}"/0003-Fix-MMD-Device-Init-Fail-issue.patch
"${FILESDIR}"/0004-reset-brc-when-frame-rate-changes-for-VP8e.patch
"${FILESDIR}"/0005-Encode-Fix-default-MMC-enabling-for-JPEG-encoder.patch
"${FILESDIR}"/0006-Encode-Enable-Jpeg-MMC-for-G12.patch
)
src_configure() {
local mycmakeargs=(
-DMEDIA_RUN_TEST_SUITE=OFF
-DBUILD_TYPE=Release
-DPLATFORM=linux
-DBUILD_CMRTLIB="$(usex ihd_cmrtlib ON OFF)"
-DCMAKE_DISABLE_FIND_PACKAGE_X11=TRUE
)
cmake_src_configure
}