New package: OpenCL-CLHPP-2.0.10

This commit is contained in:
lemmi 2016-10-04 10:51:36 +02:00
parent 37a4e3782f
commit c9447015f4
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,25 @@
Copyright (c) 2008-2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
https://www.khronos.org/registry/
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.

View File

@ -0,0 +1,28 @@
# 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
}