summaryrefslogtreecommitdiff
path: root/dev-libs/intel-neo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-05-04 12:02:00 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-05-04 12:02:00 +0100
commiteab5731cdf11d4ae8cdf111461d46fd96c5bdd37 (patch)
treece35c6d01b5ff5de95c3a20fef853b9a6518ad2e /dev-libs/intel-neo
parentb7ebc951da8800f711142f69d9d958bde67a112d (diff)
gentoo resync : 04.05.2019
Diffstat (limited to 'dev-libs/intel-neo')
-rw-r--r--dev-libs/intel-neo/Manifest4
-rw-r--r--dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch14
-rw-r--r--dev-libs/intel-neo/intel-neo-19.16.12873.ebuild56
-rw-r--r--dev-libs/intel-neo/metadata.xml22
4 files changed, 96 insertions, 0 deletions
diff --git a/dev-libs/intel-neo/Manifest b/dev-libs/intel-neo/Manifest
new file mode 100644
index 000000000000..1e0bc309f18d
--- /dev/null
+++ b/dev-libs/intel-neo/Manifest
@@ -0,0 +1,4 @@
+AUX intel-neo-19.16.12873_cmake_no_libva_automagic.patch 330 BLAKE2B a38c4a03d1837102168b907049c1a8fec93035f7efadd5e5cfb17296fd5fbf17dac1961affaa625847cd7c0cb3694d9d5c36b96d45f8c036334e8dc707100db0 SHA512 5c7133d355e0f4f8c0f8f0c84264d5f2a8cba6126d59b8a509354759a97d1a6f96b5deddcaacbce2ceb32e2014dd2f13e613a7db1973d3f865b906b803e8866e
+DIST intel-neo-19.16.12873.tar.gz 2370395 BLAKE2B 2efc76c9729d3ec000455270e923df1e3d0ec5d0a5c31cd156401b37c63ba01ee2a6051f487a98c4db10f61c2a70434f994f15472f54741ef4a80a71b036636f SHA512 1ec8b7883bfeefc1ed2095eac6111803a44e3c88e8bd1a478fb89a5baa4484fc96894f7ef0c01f4b6b9cb94731cdfc633f38ef2f636fdeb2d5e4344ca4aaa2ae
+EBUILD intel-neo-19.16.12873.ebuild 1239 BLAKE2B 9f656d45ae8dd12435ee39fbfc0c47b00d4556482db1dbd1298940d140e0dca46e5c58684f7388a3e04a68a67cf3d6cba8996c3d3f331135c59077e487054551 SHA512 4fb62c57384aca36eecc1734401ef7a7262811e27650f25fd84d854d217dc9209015ac9685662cf09becf355bf9fa5f6f3826ba11c6bb6aeb453bcf8183cfa10
+MISC metadata.xml 871 BLAKE2B 2e394b97e0147760965e10f7d43f3b7f189a0f146df84adbcfd5adf22937587982b113fe4d7f07d436265746eb9339d5141dbe2655846a1b10ebcc0751f1a763 SHA512 1092d3b8c8dd26fac3822f0b4d25f19ea74726df3f3978a6d596a97b5019465a8a7a853fb98512a07f51c5b81ecc3a7fb9350fb796a2fb7fb27fd16b937eff93
diff --git a/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch b/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch
new file mode 100644
index 000000000000..fbfdfd32dffe
--- /dev/null
+++ b/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch
@@ -0,0 +1,14 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -374,9 +374,9 @@
+ endif()
+
+ # LibVA detection
+-if(UNIX)
++if(UNIX AND ENABLE_VAAPI_MEDIA_SHARING)
+ set(IGDRCL__LIBVA_IS_REQUIRED "")
+- if(IGDRCL_FORCE_USE_LIBVA)
++ if(IGDRCL_FORCE_USE_LIBVA OR ENABLE_VAAPI_MEDIA_SHARING)
+ set(IGDRCL__LIBVA_IS_REQUIRED "REQUIRED")
+ endif()
+
diff --git a/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild b/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild
new file mode 100644
index 000000000000..ac08c8c0ab25
--- /dev/null
+++ b/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_PN="compute-runtime"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Intel Graphics Compute Runtime for OpenCL, for Gen8 (Broadwell) and beyond"
+HOMEPAGE="https://github.com/intel/compute-runtime"
+SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="vaapi"
+
+COMMON="dev-libs/ocl-icd
+ dev-util/intel-graphics-compiler
+ >=media-libs/gmmlib-19.0.0
+ vaapi? (
+ x11-libs/libdrm[video_cards_intel]
+ >=x11-libs/libva-2.0.0
+ )"
+DEPEND="${COMMON}
+ virtual/pkgconfig"
+RDEPEND="${COMMON}"
+
+DOCS=(
+ README.md
+ documentation/FAQ.md
+ documentation/LIMITATIONS.md
+)
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-19.16.12873_cmake_no_libva_automagic.patch
+)
+
+S="${WORKDIR}"/${MY_P}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_VAAPI_MEDIA_SHARING=$(usex vaapi "ON" "OFF")
+ # 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=ON
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ "${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd
+}
diff --git a/dev-libs/intel-neo/metadata.xml b/dev-libs/intel-neo/metadata.xml
new file mode 100644
index 000000000000..2c902f213320
--- /dev/null
+++ b/dev-libs/intel-neo/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marecki@gentoo.org</email>
+ <name>Marek Szuba</name>
+ </maintainer>
+ <longdescription>The Intel Graphics Compute Runtime for OpenCL, informally
+ known as NEO, is an open source project to converge Intel's development
+ efforts on OpenCL compute stacks supporting Gen8 graphics devices
+ (Broadwell architecture) and newer.
+ For OpenCL support on Sandy Bridge, Ivy Bridge and Haswell architectures
+ please have a look at <pkg>dev-libs/beignet</pkg> instead.</longdescription>
+ <use>
+ <flag name="vaapi">Support the sharing of surfaces with Video Acceleration API
+ (OpenCL Extension #36)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">intel/compute-runtime</remote-id>
+ </upstream>
+</pkgmetadata>
+