# Template file for 'python3-pyopencl'
pkgname=python3-pyopencl
version=2024.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-pybind11 python3-Cython python3-numpy"
makedepends="OpenCL-Headers ocl-icd-devel python3-pybind11"
depends="python3-numpy python3-pytools python3-platformdirs"
short_desc="OpenCL bindings for Python 3"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="X11, Apache-2.0, BSD-3-Clause"
homepage="https://mathema.tician.de/software/pyopencl"
distfiles="${PYPI_SITE}/p/pyopencl/pyopencl-${version}.tar.gz"
checksum=ecd572ee940ad8bda1639c3a7beb68834fc9a98ad7eb3f6e01aac4f7d9d4bac1
# Tests require a working OpenCL platform
make_check=no

do_configure() {
	./configure.py --cl-inc-dir=${XBPS_CROSS_BASE}/usr/include \
		--cl-lib-dir=${XBPS_CROSS_BASE}/usr/lib
}

post_install() {
	vlicense LICENSE
}
