diff options
author | 2021-08-04 21:53:42 +0100 | |
---|---|---|
committer | 2021-08-04 21:54:15 +0100 | |
commit | 7f967315cf184fd09f6691e4381c92535efa819d (patch) | |
tree | 7d60d11d9837da2630fd2ad41e4931d924821c33 /media-libs/intel-mediasdk/intel-mediasdk-20.3.0-r1.ebuild | |
parent | dev-perl/REST-Client: EAPI=8 bump (diff) | |
download | gentoo-7f967315cf184fd09f6691e4381c92535efa819d.tar.gz gentoo-7f967315cf184fd09f6691e4381c92535efa819d.tar.bz2 gentoo-7f967315cf184fd09f6691e4381c92535efa819d.zip |
media-libs/intel-mediasdk: add missing libdrm dep, fix GCC 11 build
Closes: https://bugs.gentoo.org/805224
Closes: https://bugs.gentoo.org/789726
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/intel-mediasdk/intel-mediasdk-20.3.0-r1.ebuild')
-rw-r--r-- | media-libs/intel-mediasdk/intel-mediasdk-20.3.0-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/media-libs/intel-mediasdk/intel-mediasdk-20.3.0-r1.ebuild b/media-libs/intel-mediasdk/intel-mediasdk-20.3.0-r1.ebuild new file mode 100644 index 000000000000..2849dead015e --- /dev/null +++ b/media-libs/intel-mediasdk/intel-mediasdk-20.3.0-r1.ebuild @@ -0,0 +1,47 @@ +# 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-SDK/MediaSDK"} + if [[ ${PV%9999} != "" ]] ; then + : ${EGIT_BRANCH:="release/${PV%.9999}"} + fi + inherit git-r3 +fi + +DESCRIPTION="Intel Media SDK" +HOMEPAGE="http://mediasdk.intel.com" +if [[ ${PV} == *9999 ]] ; then + SRC_URI="" +else + SRC_URI="https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${PV}.tar.gz" + S="${WORKDIR}/MediaSDK-intel-mediasdk-${PV}" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" + +# x11-libs/libdrm[video_cards_intel] for intel_bufmgr.h in samples +# bug #805224 +DEPEND=" + >=x11-libs/libva-intel-media-driver-${PV} + x11-libs/libdrm[video_cards_intel] +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-20.3.0-missing-limits-include.patch +) + +src_configure() { + local mycmakeargs=( + -DENABLE_OPENCL=OFF + ) + + cmake_src_configure +} |