1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 MY_PN="compute-runtime"
11 DESCRIPTION="Intel Graphics Compute Runtime for OpenCL, for Gen8 (Broadwell) and beyond"
12 HOMEPAGE="https://github.com/intel/compute-runtime"
13 SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
20 BDEPEND="virtual/pkgconfig"
21 COMMON="dev-libs/ocl-icd
22 dev-util/intel-graphics-compiler
23 >=media-libs/gmmlib-19.0.0
25 x11-libs/libdrm[video_cards_intel]
26 >=x11-libs/libva-2.0.0
29 media-libs/mesa" # for Khronos OpenGL headers
35 documentation/LIMITATIONS.md
39 "${FILESDIR}"/${PN}-19.16.12873_cmake_no_libva_automagic.patch
42 S="${WORKDIR}"/${MY_P}
46 -DKHRONOS_GL_HEADERS_DIR="${EPREFIX}/usr/include"
47 -DENABLE_VAAPI_MEDIA_SHARING=$(usex vaapi "ON" "OFF")
48 # If enabled, tests are automatically run during the compile phase
49 # - and we cannot run them because they require permissions to access
53 cmake-utils_src_configure
57 "${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd