# Template file for 'OpenCL-CLHPP'
pkgname=OpenCL-CLHPP
version=2026.05.29
revision=1
build_style=cmake
configure_args="-DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DBUILD_DOCS=ON"
hostmakedepends="doxygen graphviz"
makedepends="OpenCL-Headers ocl-icd-devel"
depends="OpenCL-Headers"
short_desc="OpenCL API C++ bindings"
maintainer="Daniel Martinez <danielmartinez@cock.li>"
license="Apache-2.0"
homepage="https://github.com/KhronosGroup/OpenCL-CLHPP"
distfiles="https://github.com/KhronosGroup/OpenCL-CLHPP/archive/refs/tags/v${version}.tar.gz"
checksum=fafb4fd202d113992c009d46e6358e70076167e62a5baeb377fe813033a2655e

post_install() {
	ninja -C ${cmake_builddir} docs
	vmkdir usr/share/doc/${pkgname}
	vcopy ${cmake_builddir}/docs/html usr/share/doc/${pkgname}
}

OpenCL-CLHPP-doc_package() {
	short_desc+=" - documentation"
	pkg_install() {
		vmove usr/share/doc
	}
}
