aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/python3-pyopencl/template
blob: f57ba9421ed35a050285bc29285a81b6091d8fe6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Template file for 'python3-pyopencl'
pkgname=python3-pyopencl
version=2024.2.7
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel python3-numpy
 python3-scikit-build-core cmake ninja python3-nanobind"
makedepends="OpenCL-Headers ocl-icd-devel python3-numpy python3-devel"
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=6ae4458a959b6ad9c138fb711a52c4d57c2c2f798eb3aecc4c26830cb2726140
# Tests require a working OpenCL platform
make_check=no

export CMAKE_ARGS="
 -DPython_INCLUDE_DIR:PATH=${XBPS_CROSS_BASE}/${py3_inc}
 -DNumPy_INCLUDE_DIR:PATH=${XBPS_CROSS_BASE}/${py3_sitelib}/numpy/core/include
"

post_install() {
	vlicense LICENSE
}