diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-06 21:11:24 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-06 21:11:24 +0000 |
commit | d479c9c5c724c7b1300a98e44975f31f4f2e51dd (patch) | |
tree | c2f5550bfe03e1b3f19014e1576dcf50e6bd818c /media-libs/oneVPL-cpu/oneVPL-cpu-2022.2.5.ebuild | |
parent | ee8ad1509f726e8fa598472117e5bbffd241ebab (diff) |
gentoo auto-resync : 06:12:2022 - 21:11:24
Diffstat (limited to 'media-libs/oneVPL-cpu/oneVPL-cpu-2022.2.5.ebuild')
-rw-r--r-- | media-libs/oneVPL-cpu/oneVPL-cpu-2022.2.5.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/media-libs/oneVPL-cpu/oneVPL-cpu-2022.2.5.ebuild b/media-libs/oneVPL-cpu/oneVPL-cpu-2022.2.5.ebuild new file mode 100644 index 000000000000..8243f74846b0 --- /dev/null +++ b/media-libs/oneVPL-cpu/oneVPL-cpu-2022.2.5.ebuild @@ -0,0 +1,57 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="oneAPI Video Processing Library CPU implementation" +HOMEPAGE="https://github.com/oneapi-src/oneVPL-cpu" +SRC_URI="https://github.com/oneapi-src/oneVPL-cpu/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT x264? ( GPL-2 )" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="experimental openh264 test +x264" +REQUIRED_USE="^^ ( openh264 x264 )" +# RESTRICT="!test? ( test )" +# Tests fail +RESTRICT="test" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + media-libs/dav1d + media-libs/oneVPL[experimental?] + media-libs/svt-av1 + media-libs/svt-hevc + media-video/ffmpeg + x264? ( media-libs/x264 ) + openh264? ( media-libs/openh264 ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-2022.2.5-use-system-libs.patch" + "${FILESDIR}/${PN}-2022.2.5-respect-user-flags.patch" +) + +src_configure() { + # Use system libraries + export VPL_BUILD_DEPENDENCIES="${ESYSROOT}/usr" + local mycmakeargs=( + -DUSE_EXPERIMENTAL_API="$(usex experimental)" + -DBUILD_OPENH264="$(usex openh264)" + -DBUILD_TESTS="$(usex test)" + -DBUILD_GPL_X264="$(usex x264)" + # Use FHS instead + -DUSE_ONEAPI_INSTALL_LAYOUT=NO + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # Remove these license files + rm -r "${ED}/usr/share/oneVPL-cpu/licensing" || die +} |