Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 580076
Collapse All | Expand All

(-)eselect-opencl-1.1.0-r4.ebuild (-7 / +9 lines)
Lines 1-9 Link Here
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 1999-2019 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=5
4
EAPI=7
5
6
inherit multilib
7
5
8
DESCRIPTION="Utility to change the OpenCL implementation being used"
6
DESCRIPTION="Utility to change the OpenCL implementation being used"
9
HOMEPAGE="https://www.gentoo.org/"
7
HOMEPAGE="https://www.gentoo.org/"
Lines 34-40 Link Here
34
IUSE=""
32
IUSE=""
35
33
36
DEPEND="app-arch/xz-utils"
34
DEPEND="app-arch/xz-utils"
37
RDEPEND=">=app-admin/eselect-1.2.4"
35
RDEPEND="app-admin/eselect"
38
36
39
pkg_postinst() {
37
pkg_postinst() {
40
	local impl="$(eselect opencl show)"
38
	local impl="$(eselect opencl show)"
Lines 54-65 Link Here
54
	for CL_ABI in 1.0 1.1 1.2 2.0 2.1; do
52
	for CL_ABI in 1.0 1.1 1.2 2.0 2.1; do
55
		mkdir -p "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}"
53
		mkdir -p "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}"
56
		for f in ${headers[@]}; do
54
		for f in ${headers[@]}; do
57
			cp "${WORKDIR}"/OpenCL-Headers-opencl${CL_ABI/./}/${f} "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/${f}" > /dev/null
55
			# cl_egl.h is missing in OpenCL 1.0 and 1.1
56
			if [[ $f = "cl_egl.h" && $CL_ABI = "1.0" || $CL_ABI = "1.1" ]]; then
57
				continue
58
			fi
59
			cp "${WORKDIR}"/OpenCL-Headers-opencl${CL_ABI/./}/${f} "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/${f}" &> /dev/null
58
		done
60
		done
59
	done
61
	done
60
62
61
	for i in 1.1 1.2 2.1; do
63
	for i in 1.1 1.2 2.1; do
62
		cp "${WORKDIR}"/$i/cl.hpp "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/"
64
		cp "${WORKDIR}"/$i/cl.hpp "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/" &> /dev/null
63
	done
65
	done
64
	# Create symlinks to newest. Maybe this should be switchable?
66
	# Create symlinks to newest. Maybe this should be switchable?
65
	for f in ${headers[@]}; do
67
	for f in ${headers[@]}; do

Return to bug 580076