virtual/opencl: add VIDEO_CARDS=i965 support
authorMarek Szuba <marecki@gentoo.org>
Thu, 26 Jan 2017 10:39:33 +0000 (11:39 +0100)
committerMarek Szuba <marecki@gentoo.org>
Thu, 26 Jan 2017 10:40:38 +0000 (11:40 +0100)
dev-libs/beignet provides an OpenCL implementation for Intel GPUs from
Generation 7 (Ivy Bridge) onwards. Note that VIDEO_CARDS=i965 also covers three
earlier generations which are not supported by Beignet.

Package-Manager: portage-2.3.3

virtual/opencl/opencl-0-r5.ebuild [new file with mode: 0644]

diff --git a/virtual/opencl/opencl-0-r5.ebuild b/virtual/opencl/opencl-0-r5.ebuild
new file mode 100644 (file)
index 0000000..e3e82d6
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit multilib-build
+
+DESCRIPTION="Virtual for OpenCL implementations"
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+CARDS=( fglrx i965 nvidia )
+IUSE="${CARDS[@]/#/video_cards_}"
+
+DEPEND=""
+# intel-ocl-sdk is amd64-only
+RDEPEND="app-eselect/eselect-opencl
+       || (
+               >=media-libs/mesa-9.1.6[opencl,${MULTILIB_USEDEP}]
+               video_cards_fglrx? (
+                       >=x11-drivers/ati-drivers-12.1-r1 )
+               video_cards_i965? (
+                       dev-libs/beignet )
+               video_cards_nvidia? (
+                       >=x11-drivers/nvidia-drivers-290.10-r2 )
+               abi_x86_64? ( !abi_x86_32? ( dev-util/intel-ocl-sdk ) )
+       )"