mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
app-eselect/eselect-opencl: use ${ED} for prefix compatibility
Package-Manager: Portage-2.3.8, Repoman-2.3.3
This commit is contained in:
@@ -52,17 +52,17 @@ src_install() {
|
||||
|
||||
# We install all versions of OpenCL headers
|
||||
for CL_ABI in 1.0 1.1 1.2 2.0 2.1; do
|
||||
mkdir -p "${D}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}"
|
||||
mkdir -p "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}"
|
||||
for f in ${headers[@]}; do
|
||||
cp "${WORKDIR}"/OpenCL-Headers-opencl${CL_ABI/./}/${f} "${D}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/${f}" > /dev/null
|
||||
cp "${WORKDIR}"/OpenCL-Headers-opencl${CL_ABI/./}/${f} "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/${f}" > /dev/null
|
||||
done
|
||||
done
|
||||
|
||||
for i in 1.1 1.2 2.1; do
|
||||
cp "${WORKDIR}"/$i/cl.hpp "${D}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/"
|
||||
cp "${WORKDIR}"/$i/cl.hpp "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/"
|
||||
done
|
||||
# Create symlinks to newest. Maybe this should be switchable?
|
||||
for f in ${headers[@]}; do
|
||||
dosym "${D}/usr/$(get_libdir)/OpenCL/global/include/CL-1.2/${f}" "/usr/include/CL/${f}"
|
||||
dosym "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-1.2/${f}" "/usr/include/CL/${f}"
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user