dev-libs/beignet: fix detection of OCL ICD and installation of ICD files
authorMarek Szuba <marecki@gentoo.org>
Mon, 28 Nov 2016 13:55:34 +0000 (14:55 +0100)
committerMarek Szuba <marecki@gentoo.org>
Mon, 28 Nov 2016 13:57:46 +0000 (14:57 +0100)
commit3677ef1db84606d689bea66d9212ed2cd3346d62
treeea1c7300be772f121f11b44601f7ce77d377ec6e
parentc1a792b2ccb48b78bb63d8cd2673779c371c3123
dev-libs/beignet: fix detection of OCL ICD and installation of ICD files

In the past, Beignet CMake scripts would automatically enable its compatibility
with the OCL ICD Loader depending on whether dev-libs/ocl-icd was found in the
system or not. Patch the scripts so that ocl-icd is only searched for if an
appropriate option is set, and define a local use flag which controls the value
of this option (and of course the dependency on dev-libs/ocl-icd). Nb. the
patch has been submitted upstream.

Moreover, given we always install Beignet ICD files (they are needed by
eselect-opencl) do not install another copy when OCL ICD Loader has been
enabled.

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=599512

Package-Manager: portage-2.3.2
dev-libs/beignet/beignet-1.2.1-r1.ebuild [new file with mode: 0644]
dev-libs/beignet/files/beignet-1.2.1-oclicd_optional_gentoo.patch [new file with mode: 0644]
dev-libs/beignet/metadata.xml