talimat 871 B

1234567891011121314151617181920212223242526
  1. # Tanım: OpenCL (Open Computing Language) başlık dosyaları
  2. # URL: https://www.khronos.org/registry/cl/
  3. # Paketçi: milisarge
  4. # Gerekler: python3
  5. # Grup: geliştirme
  6. isim=opencl-headers
  7. surum=2.2.20170516
  8. devir=1
  9. kaynak=(https://github.com/KhronosGroup/OpenCL-Headers/archive/master.tar.gz::opencl-headers-2.2.20170516.tar.gz
  10. https://github.com/KhronosGroup/OpenCL-CLHPP/archive/master.tar.gz::openclhpp-2.2.20170516.tar.gz)
  11. derle() {
  12. cd "${SRC}"/OpenCL-Headers-master/CL
  13. install -dm755 "${PKG}"/usr/include/CL
  14. for h in *.h; do
  15. install -m 644 ${h} "${PKG}"/usr/include/CL/
  16. done
  17. # remove useless headers
  18. rm "${PKG}"/usr/include/CL/{cl_d3d,cl_dx9}*.h
  19. cd "${SRC}"/OpenCL-CLHPP-master
  20. python3 gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
  21. install -m 644 cl.hpp "${PKG}"/usr/include/CL/
  22. install -m 644 input_cl2.hpp "${PKG}"/usr/include/CL/cl2.hpp
  23. }