From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E8BC158021 for ; Tue, 6 Dec 2022 18:09:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84253E07EF; Tue, 6 Dec 2022 18:09:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6621CE07EF for ; Tue, 6 Dec 2022 18:09:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 28525341148 for ; Tue, 6 Dec 2022 18:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7CEE5777 for ; Tue, 6 Dec 2022 18:09:04 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1670349633.ce4e532b38ecd1875c635137951563c4614c8677.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/intel-mediasdk/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/intel-mediasdk/Manifest media-libs/intel-mediasdk/intel-mediasdk-22.6.3.ebuild media-libs/intel-mediasdk/intel-mediasdk-9999.ebuild media-libs/intel-mediasdk/metadata.xml X-VCS-Directories: media-libs/intel-mediasdk/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: ce4e532b38ecd1875c635137951563c4614c8677 X-VCS-Branch: master Date: Tue, 6 Dec 2022 18:09:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8e0a0677-de7d-49ad-9d3d-289ef6d59e61 X-Archives-Hash: a3e546e7150d6cb33e3e85024a61eb7e commit: ce4e532b38ecd1875c635137951563c4614c8677 Author: Andrew Ammerlaan gentoo org> AuthorDate: Mon Nov 21 13:44:47 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Tue Dec 6 18:00:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce4e532b media-libs/intel-mediasdk: add version 22.6.3 Closes: https://bugs.gentoo.org/799746 Signed-off-by: Andrew Ammerlaan gentoo.org> media-libs/intel-mediasdk/Manifest | 1 + .../intel-mediasdk/intel-mediasdk-22.6.3.ebuild | 82 ++++++++++++++++++++++ .../intel-mediasdk/intel-mediasdk-9999.ebuild | 47 +++++++++++-- media-libs/intel-mediasdk/metadata.xml | 16 ++++- 4 files changed, 139 insertions(+), 7 deletions(-) diff --git a/media-libs/intel-mediasdk/Manifest b/media-libs/intel-mediasdk/Manifest index cdb35d54327a..4936a453e419 100644 --- a/media-libs/intel-mediasdk/Manifest +++ b/media-libs/intel-mediasdk/Manifest @@ -1 +1,2 @@ DIST intel-mediasdk-20.3.0.tar.gz 10810941 BLAKE2B 5c5bc1a8444b6780ee7ea13711e7c59f62e8c9d8a7577ff848a6fbc5fc416d3e03580fe44dd9df7a506c19dd677986804a055cb16b34a06a55897623d25298d5 SHA512 2bd2604e6f17aeeea661352fd52c19b0ff2361919ad67b858287e507e0356cc805f1d22b39ff28294d303efefc33e10c2c5912d774f1bc40751c2c6c3c9e90c4 +DIST intel-mediasdk-22.6.3.tar.gz 11657130 BLAKE2B 3f63cf85716159f38f52cd0941cb716d9a25d2635e8b6da295a8fb78898ae007c3216148db580b94aa83742803effc0c1c2b0a431414a85f6feb44c93ae04738 SHA512 bd9fb9ca5b96bb2911db7fdf2622127f0dc3e86de8dc732bc6df6f4fcb343406e3ab14ffa5ce4595ed9b3bf19a73652681137fbe5b473c812c5b74554998a2b0 diff --git a/media-libs/intel-mediasdk/intel-mediasdk-22.6.3.ebuild b/media-libs/intel-mediasdk/intel-mediasdk-22.6.3.ebuild new file mode 100644 index 000000000000..a42d8290d2f3 --- /dev/null +++ b/media-libs/intel-mediasdk/intel-mediasdk-22.6.3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake optfeature + +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="https://github.com/Intel-Media-SDK/MediaSDK" +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" + +IUSE="dri test +tools wayland X" +# Test not working at the moment +#RESTRICT="!test? ( test )" +RESTRICT="test" +# # Most of these flags only have an effect on the tools +REQUIRED_USE=" + dri? ( X ) + wayland? ( tools ) + X? ( tools ) +" + +# x11-libs/libdrm[video_cards_intel] for intel_bufmgr.h in samples +# bug #805224 +DEPEND=" + x11-libs/libpciaccess + >=media-libs/libva-intel-media-driver-${PV} + media-libs/libva[X?,wayland?] + x11-libs/libdrm[video_cards_intel] + wayland? ( + dev-libs/wayland + dev-util/wayland-scanner + dev-libs/wayland-protocols + ) + X? ( + x11-libs/libX11 + x11-libs/libxcb + ) +" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + # OpenCL only has an effect if we build kernels + -DENABLE_OPENCL=OFF + -DBUILD_TUTORIALS=OFF + # Need to package the cm-compiler to build kernels, use pre-built instead + -DBUILD_KERNELS=OFF + -DBUILD_RUNTIME=ON + -DBUILD_DISPATCHER=ON + -DBUILD_TOOLS="$(usex tools)" + # Cannot build tools without samples + -DBUILD_SAMPLES="$(usex tools)" + -DBUILD_TESTS="$(usex test)" + -DENABLE_X11="$(usex X)" + -DENABLE_X11_DRI3="$(usex dri)" + -DENABLE_WAYLAND="$(usex wayland)" + ) + + cmake_src_configure +} + +pkg_postinst() { + optfeature "Intel GPUs newer then, and including, Intel Xe" media-libs/oneVPL-intel-gpu +} diff --git a/media-libs/intel-mediasdk/intel-mediasdk-9999.ebuild b/media-libs/intel-mediasdk/intel-mediasdk-9999.ebuild index 5e9ab6853a42..a42d8290d2f3 100644 --- a/media-libs/intel-mediasdk/intel-mediasdk-9999.ebuild +++ b/media-libs/intel-mediasdk/intel-mediasdk-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit cmake +inherit cmake optfeature if [[ ${PV} == *9999 ]] ; then : ${EGIT_REPO_URI:="https://github.com/Intel-Media-SDK/MediaSDK"} @@ -14,7 +14,7 @@ if [[ ${PV} == *9999 ]] ; then fi DESCRIPTION="Intel Media SDK" -HOMEPAGE="http://mediasdk.intel.com" +HOMEPAGE="https://github.com/Intel-Media-SDK/MediaSDK" if [[ ${PV} == *9999 ]] ; then SRC_URI="" else @@ -26,18 +26,57 @@ fi LICENSE="MIT" SLOT="0" +IUSE="dri test +tools wayland X" +# Test not working at the moment +#RESTRICT="!test? ( test )" +RESTRICT="test" +# # Most of these flags only have an effect on the tools +REQUIRED_USE=" + dri? ( X ) + wayland? ( tools ) + X? ( tools ) +" + # x11-libs/libdrm[video_cards_intel] for intel_bufmgr.h in samples # bug #805224 DEPEND=" + x11-libs/libpciaccess >=media-libs/libva-intel-media-driver-${PV} + media-libs/libva[X?,wayland?] x11-libs/libdrm[video_cards_intel] + wayland? ( + dev-libs/wayland + dev-util/wayland-scanner + dev-libs/wayland-protocols + ) + X? ( + x11-libs/libX11 + x11-libs/libxcb + ) " RDEPEND="${DEPEND}" src_configure() { local mycmakeargs=( + # OpenCL only has an effect if we build kernels -DENABLE_OPENCL=OFF + -DBUILD_TUTORIALS=OFF + # Need to package the cm-compiler to build kernels, use pre-built instead + -DBUILD_KERNELS=OFF + -DBUILD_RUNTIME=ON + -DBUILD_DISPATCHER=ON + -DBUILD_TOOLS="$(usex tools)" + # Cannot build tools without samples + -DBUILD_SAMPLES="$(usex tools)" + -DBUILD_TESTS="$(usex test)" + -DENABLE_X11="$(usex X)" + -DENABLE_X11_DRI3="$(usex dri)" + -DENABLE_WAYLAND="$(usex wayland)" ) cmake_src_configure } + +pkg_postinst() { + optfeature "Intel GPUs newer then, and including, Intel Xe" media-libs/oneVPL-intel-gpu +} diff --git a/media-libs/intel-mediasdk/metadata.xml b/media-libs/intel-mediasdk/metadata.xml index 716be526394b..888102391fdf 100644 --- a/media-libs/intel-mediasdk/metadata.xml +++ b/media-libs/intel-mediasdk/metadata.xml @@ -1,7 +1,17 @@ - - media-video@gentoo.org - + + media-video@gentoo.org + + + andrewammerlaan@gentoo.org + Andrew Ammerlaan + + + Intel-Media-SDK/MediaSDK + + + Build analyse and inspect tools +