29 lines
811 B
Bash
29 lines
811 B
Bash
# Template file for 'OpenCL-CLHPP'
|
|
pkgname=opencl-clhpp
|
|
version=2.0.10
|
|
revision=1
|
|
wrksrc=OpenCL-CLHPP-${version}
|
|
noarch="yes"
|
|
hostmakedepends="python"
|
|
short_desc="OpenCL Host API C++ bindings (cl.hpp and cl2.hpp)"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="MIT"
|
|
homepage="http://www.khronos.org/registry/cl/"
|
|
distfiles="https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v2.0.10.tar.gz"
|
|
checksum=fa27456295c3fa534ce824eb0314190a8b3ebd3ba4d93a0b1270fc65bf378f2b
|
|
|
|
do_build() {
|
|
python gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/include/CL
|
|
install -m644 cl.hpp ${DESTDIR}/usr/include/CL
|
|
install -m644 input_cl2.hpp ${DESTDIR}/usr/include/CL/cl2.hpp
|
|
|
|
# LICENSE.txt from git master. Check on next update whether it can be
|
|
# removed again
|
|
|
|
vlicense ${FILESDIR}/LICENSE.txt
|
|
}
|