26 lines
853 B
Plaintext
26 lines
853 B
Plaintext
|
# 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
|
|||
|
}
|