# Template file for 'OpenCL-CLHPP'
pkgname=OpenCL-CLHPP
version=2025.07.22
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=c1031afde6e9eb042e6fcfbc17078f4b437a7e8d55482a1ca6e0fa762d262a89

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
	}
}
