2018-08-01 10:47:37 +02:00
|
|
|
|
# Tanım: OpenCL (Open Computing Language) başlık dosyaları
|
2018-07-01 06:10:10 +02:00
|
|
|
|
# URL: https://www.khronos.org/registry/cl/
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: python3
|
2018-08-01 10:47:37 +02:00
|
|
|
|
# Grup: geliştirme
|
2018-07-01 06:10:10 +02:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|