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-neo/
Date: Sun, 22 Aug 2021 13:07:11
Message-Id: 1629637620.7ed9d833b3fc06b2835bb7494685f1a417afdd71.conikost@gentoo
1 commit: 7ed9d833b3fc06b2835bb7494685f1a417afdd71
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 22 13:05:52 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 22 13:07:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ed9d833
7
8 dev-libs/intel-neo: add support for firmware upgrade
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 dev-libs/intel-neo/intel-neo-21.33.20678-r1.ebuild | 61 ++++++++++++++++++++++
14 1 file changed, 61 insertions(+)
15
16 diff --git a/dev-libs/intel-neo/intel-neo-21.33.20678-r1.ebuild b/dev-libs/intel-neo/intel-neo-21.33.20678-r1.ebuild
17 new file mode 100644
18 index 00000000000..4ed6c18c8d0
19 --- /dev/null
20 +++ b/dev-libs/intel-neo/intel-neo-21.33.20678-r1.ebuild
21 @@ -0,0 +1,61 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit cmake
28 +
29 +MY_PN="compute-runtime"
30 +MY_P="${MY_PN}-${PV}"
31 +
32 +DESCRIPTION="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver"
33 +HOMEPAGE="https://github.com/intel/compute-runtime"
34 +SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
35 +S="${WORKDIR}/${MY_P}"
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~amd64"
40 +IUSE="+l0 +vaapi"
41 +
42 +RDEPEND="
43 + dev-libs/libnl:3
44 + dev-libs/libxml2:2
45 + >=dev-util/intel-graphics-compiler-1.0.8365
46 + dev-util/intel-graphics-system-controller
47 + >=media-libs/gmmlib-21.2.1
48 + >=virtual/opencl-3
49 + l0? ( >=dev-libs/level-zero-1.4.1 )
50 + vaapi? (
51 + x11-libs/libdrm[video_cards_intel]
52 + x11-libs/libva
53 + )
54 +"
55 +
56 +# for Khronos OpenGL headers
57 +DEPEND="
58 + ${RDEPEND}
59 + media-libs/mesa
60 +"
61 +
62 +BDEPEND="virtual/pkgconfig"
63 +
64 +DOCS=( "README.md" "FAQ.md" )
65 +
66 +PATCHES=( "${FILESDIR}/${PN}-21.31.20514-no_Werror.patch" )
67 +
68 +src_configure() {
69 + local mycmakeargs=(
70 + -DBUILD_WITH_L0="$(usex l0)"
71 + -DDISABLE_LIBVA="$(usex !vaapi)"
72 + -DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
73 + -DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
74 +
75 + # If enabled, tests are automatically run during
76 + # the compile phase and we cannot run them because
77 + # they require permissions to access the hardware.
78 + -DSKIP_UNIT_TESTS="ON"
79 + )
80 +
81 + cmake_src_configure
82 +}