blob: 8c81954b098dc0fc50fd559e28c94957315bb790 [file] [log] [blame]
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
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-20.3.2
>=x11-libs/libva-2.9.0
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/0001-Disable-IPC-usage.patch
"${FILESDIR}"/0002-ENCODE-change-slice-header-prefix-for-AVC-Vdenc.patch
"${FILESDIR}"/0003-Explicitly-disable-media-compression.patch
"${FILESDIR}"/0004-Decode-Driver-will-derive-width-height_in_sbs_minus_.patch
"${FILESDIR}"/0005-Decode-Add-robustness-check-for-superresScaleDenomin.patch
"${FILESDIR}"/0006-Encode-Fix-for-flags-in-PAK_OBJECT_INSERT-command.patch
)
src_configure() {
local mycmakeargs=(
-DMEDIA_RUN_TEST_SUITE=OFF
-DBUILD_CMRTLIB="$(usex ihd_cmrtlib ON OFF)"
-DCMAKE_DISABLE_FIND_PACKAGE_X11=TRUE
)
cmake-utils_src_configure
}