commit:     1f0cc89f62bbb98a4c829755b1c3ab99cf1b98d2
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 15 22:05:57 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 22:39:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f0cc89f

dev-libs/intel-compute-runtime: add 22.43.24558

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-libs/intel-compute-runtime/Manifest            |  1 +
 .../intel-compute-runtime-22.43.24558.ebuild       | 79 ++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/dev-libs/intel-compute-runtime/Manifest 
b/dev-libs/intel-compute-runtime/Manifest
index c061589eb521..c317156ab980 100644
--- a/dev-libs/intel-compute-runtime/Manifest
+++ b/dev-libs/intel-compute-runtime/Manifest
@@ -1 +1,2 @@
 DIST intel-compute-runtime-22.39.24347.tar.gz 5774278 BLAKE2B 
27a288470f852ec87fae95a946fb87c9850cfc03e99bb869ebd474043d06f8b7beb2873b49d8fe4cc26f7db298c64d7b76d6bda6e6618c1ee8d1a9b658d5f45d
 SHA512 
aef167fd4cc31d32c411ab54cf5f0e5fe13cda7e8fe4eac6aa3f9bf391b7ce9d51033d986d9c5e854c8f1492cce5022463e4b8b0ddc49319ef7bf362435808d5
+DIST intel-compute-runtime-22.43.24558.tar.gz 5858180 BLAKE2B 
bed2ccd84424f8b4b76483d1cbffa9f587e666b8a24555d51de1edcfa23651a54b7d6b219fb27512cd8438127aa46945b181b3e94699444f36a05976b0b1206d
 SHA512 
130849d1c3ef6586abbec3a3eb96397e6b5e861d17576b68b75d18023a4864938f82067079ea0d5475a8ac4f02cd0056d74d6b634894cbb5d0e23bef1c12fae0

diff --git 
a/dev-libs/intel-compute-runtime/intel-compute-runtime-22.43.24558.ebuild 
b/dev-libs/intel-compute-runtime/intel-compute-runtime-22.43.24558.ebuild
new file mode 100644
index 000000000000..c6ac6ec0d546
--- /dev/null
+++ b/dev-libs/intel-compute-runtime/intel-compute-runtime-22.43.24558.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_BUILD_TYPE="Release"
+MY_PN="${PN/intel-/}"
+MY_P="${MY_PN}-${PV}"
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL 
Driver"
+HOMEPAGE="https://github.com/intel/compute-runtime";
+SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+l0 +vaapi"
+
+RDEPEND=">=media-libs/gmmlib-22.1.7:="
+
+DEPEND="
+       ${DEPEND}
+       >=dev-libs/intel-metrics-library-0_pre20220930:=
+       dev-libs/libnl:3
+       dev-libs/libxml2:2
+       >=dev-util/intel-graphics-compiler-1.0.12149.1
+       >=dev-util/intel-graphics-system-controller-0.8.4:=
+       media-libs/mesa
+       >=virtual/opencl-3
+       l0? ( >=dev-libs/level-zero-1.8.5:= )
+       vaapi? (
+               x11-libs/libdrm[video_cards_intel]
+               media-libs/libva
+       )
+"
+
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( "README.md" "FAQ.md" )
+
+PATCHES=( "${FILESDIR}/${PN}-22.24.23453-remove-fortify-sources.patch" )
+
+src_prepare() {
+       # Remove '-Werror' from default
+       sed -e '/Werror/d' -i CMakeLists.txt || die
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       # See https://github.com/intel/compute-runtime/issues/531
+       filter-flags -flto=* -flto
+
+       local mycmakeargs=(
+               -DCCACHE_ALLOWED="OFF"
+               -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+               -DCMAKE_INSTALL_LIBDIR="$(get_libdir)"
+               -DBUILD_WITH_L0="$(usex l0)"
+               -DDISABLE_LIBVA="$(usex !vaapi)"
+               -DNEO__METRICS_LIBRARY_INCLUDE_DIR="${ESYSROOT}/usr/include"
+               -DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
+               -DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
+               -DSUPPORT_DG1="ON"
+               -Wno-dev
+
+               # See 
https://github.com/intel/intel-graphics-compiler/issues/204
+               # -DNEO_DISABLE_BUILTINS_COMPILATION="ON"
+
+               # If enabled, tests are automatically run during
+               # the compile phase and we cannot run them because
+               # they require permissions to access the hardware.
+               -DSKIP_UNIT_TESTS="1"
+       )
+
+       cmake_src_configure
+}

Reply via email to