milis/talimatname/genel/o/opencl-headers/talimat

26 lines
853 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: OpenCL (Open Computing Language) header files
# URL: https://www.khronos.org/registry/cl/
# Paketçi: milisarge
# Gerekler: python3
# Grup:
isim=opencl-headers
surum=2.2.20170516
devir=1
kaynak=(https://github.com/KhronosGroup/OpenCL-Headers/archive/master.tar.gz::opencl-headers-2.2.20170516.tar.gz
https://github.com/KhronosGroup/OpenCL-CLHPP/archive/master.tar.gz::openclhpp-2.2.20170516.tar.gz)
derle() {
cd "${SRC}"/OpenCL-Headers-master/CL
install -dm755 "${PKG}"/usr/include/CL
for h in *.h; do
install -m 644 ${h} "${PKG}"/usr/include/CL/
done
# remove useless headers
rm "${PKG}"/usr/include/CL/{cl_d3d,cl_dx9}*.h
cd "${SRC}"/OpenCL-CLHPP-master
python3 gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
install -m 644 cl.hpp "${PKG}"/usr/include/CL/
install -m 644 input_cl2.hpp "${PKG}"/usr/include/CL/cl2.hpp
}