Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-compute-runtime/
Date: Sun, 27 Mar 2022 22:23:18
Message-Id: 1648419666.80d011f408fa50ac5733fc2f629dc55c2abb19ee.conikost@gentoo
1 commit: 80d011f408fa50ac5733fc2f629dc55c2abb19ee
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 27 01:22:08 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 27 22:21:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80d011f4
7
8 dev-libs/intel-compute-runtime: add 22.11.22682
9
10 Closes: https://bugs.gentoo.org/817146
11 Closes: https://github.com/gentoo/gentoo/pull/23595
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 dev-libs/intel-compute-runtime/Manifest | 1 +
15 .../intel-compute-runtime-22.11.22682.ebuild | 71 ++++++++++++++++++++++
16 2 files changed, 72 insertions(+)
17
18 diff --git a/dev-libs/intel-compute-runtime/Manifest b/dev-libs/intel-compute-runtime/Manifest
19 index 6dafd299d6dc..ada3d0bc4175 100644
20 --- a/dev-libs/intel-compute-runtime/Manifest
21 +++ b/dev-libs/intel-compute-runtime/Manifest
22 @@ -1,2 +1,3 @@
23 DIST intel-compute-runtime-21.46.21636.tar.gz 4878855 BLAKE2B 0ada296b36567038b2abeba50c2dae6604981f00cdfc0d5d9d197c793534c887fa1d321ced34b37cf6760bdc9e2b8769cdc24fe3884036b78b983660c90b1ee7 SHA512 a63436d049737b955f0e23bbfc78684f665f3d1a668120e803165839792144154f3f42a52c6533611711592ba6e41408d81196a61e318746b1dae1392d1d29ac
24 DIST intel-compute-runtime-21.50.21939.tar.gz 5106368 BLAKE2B 3a8613c7178975bf930f0ccbed06d31952f05c8316e7735db759a7bcc8b81b5bd3040af62bae6e63fc9781ce2e6e8f035751cd6696b4c7cfbb6025f3d4fcfd8b SHA512 cabcb0fb9816ca8e6b93fa069c73926ccdaf3803c073b11f62477f80d38af49a7b4e814765a40e3daae50a6159560872c5b5123f64e68a570556c80d47a120c9
25 +DIST intel-compute-runtime-22.11.22682.tar.gz 5220769 BLAKE2B c5cacdb0140fe9247353b9922a2e401a866d73ea9d4fa6a4312c984d4ba0751ff60d58f15b49003020d88bef13808113ba8ca84239c140fa7c26edcd401c0d9c SHA512 0e4007b152a20e85d40e71d68144a8dab1be536800650fbd1c3f5e23a0731c733d7dfa943d7ea4e1f19548313b12474bd5b9426ef7f2057a9b106a0fc9a1762a
26
27 diff --git a/dev-libs/intel-compute-runtime/intel-compute-runtime-22.11.22682.ebuild b/dev-libs/intel-compute-runtime/intel-compute-runtime-22.11.22682.ebuild
28 new file mode 100644
29 index 000000000000..1d868e365abd
30 --- /dev/null
31 +++ b/dev-libs/intel-compute-runtime/intel-compute-runtime-22.11.22682.ebuild
32 @@ -0,0 +1,71 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +CMAKE_BUILD_TYPE="Release"
39 +MY_PN="${PN/intel-/}"
40 +MY_P="${MY_PN}-${PV}"
41 +
42 +inherit cmake
43 +
44 +DESCRIPTION="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver"
45 +HOMEPAGE="https://github.com/intel/compute-runtime"
46 +SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 +S="${WORKDIR}/${MY_P}"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~amd64"
52 +IUSE="+l0 +vaapi"
53 +
54 +RDEPEND="
55 + dev-libs/libnl:3
56 + dev-libs/libxml2:2
57 + >=dev-util/intel-graphics-compiler-1.0.10409
58 + >=dev-util/intel-graphics-system-controller-0.2.4
59 + >=media-libs/gmmlib-22.0.2:=
60 + >=virtual/opencl-3
61 + l0? ( >=dev-libs/level-zero-1.7.9 )
62 + vaapi? (
63 + x11-libs/libdrm[video_cards_intel]
64 + x11-libs/libva
65 + )
66 +"
67 +
68 +# for Khronos OpenGL headers
69 +DEPEND="
70 + ${RDEPEND}
71 + media-libs/mesa
72 +"
73 +
74 +BDEPEND="virtual/pkgconfig"
75 +
76 +DOCS=( "README.md" "FAQ.md" )
77 +
78 +PATCHES=( "${FILESDIR}/${PN}-22.11.22682-metrics.patch" )
79 +
80 +src_configure() {
81 + local mycmakeargs=(
82 + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
83 + -DCMAKE_INSTALL_LIBDIR="$(get_libdir)"
84 + -DBUILD_WITH_L0="$(usex l0)"
85 + -DDISABLE_LIBVA="$(usex !vaapi)"
86 + # -DNEO__METRICS_LIBRARY_INCLUDE_DIR="${ESYSROOT}/usr/include"
87 + -DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
88 + -DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
89 + -DSUPPORT_DG1="ON"
90 +
91 + # See https://github.com/intel/intel-graphics-compiler/issues/204
92 + -DNEO_DISABLE_BUILTINS_COMPILATION="ON"
93 +
94 + # If enabled, tests are automatically run during
95 + # the compile phase and we cannot run them because
96 + # they require permissions to access the hardware.
97 + -DSKIP_UNIT_TESTS="1"
98 +
99 + -Wno-dev
100 + )
101 +
102 + cmake_src_configure
103 +}