PORTNAME=	opencl
DISTVERSION=	3.0.19
CATEGORIES=	devel

MAINTAINER=	ohartmann@walstatt.org
COMMENT=	Open Computing Language specifications header files
WWW=		https://github.com/KhronosGroup/OpenCL-Headers/

LICENSE=	APACHE20

USES=		cpe

CPE_VENDOR=	khronos
USE_GITHUB=	yes
GH_ACCOUNT=	KhronosGroup
GH_PROJECT=	OpenCL-Headers OpenCL-CLHPP:clhpp
GH_TAGNAME=	${HEADER_TAG} ${CLHPP_TAG}:clhpp

# the header releases don't have tags yet, so use git commit for now
HEADER_TAG=	v2025.07.22
CLHPP_TAG=	v2025.07.22 #  include missing CL/opencl.hpp

NO_ARCH=	yes
NO_BUILD=	yes

WRKSRC_SUBDIR=	CL

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/CL
	${INSTALL_DATA} ${WRKSRC}/*.h \
			${WRKSRC_clhpp}/include/CL/*.hpp \
		${STAGEDIR}${PREFIX}/include/CL

.include <bsd.port.mk>
