buildroot/package/opencl-clhpp/opencl-clhpp.mk
Gilles Talis ff4a71cffd package/opencl-clhpp: bump to version 2024.05.08
Change log:
https://github.com/KhronosGroup/OpenCL-CLHPP/releases/tag/v2024.05.08

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-10-10 23:44:10 +02:00

30 lines
947 B
Makefile

################################################################################
#
# opencl-clhpp
#
################################################################################
OPENCL_CLHPP_VERSION = 2024.05.08
OPENCL_CLHPP_SITE = $(call github,KhronosGroup,OpenCL-CLHPP,v$(OPENCL_CLHPP_VERSION))
OPENCL_CLHPP_LICENSE = Apache-2.0
OPENCL_CLHPP_LICENSE_FILES = LICENSE.txt
OPENCL_CLHPP_DEPENDENCIES = libopencl
OPENCL_CLHPP_INSTALL_STAGING = YES
# OpenCL_CLHPP is a header-only library
OPENCL_CLHPP_INSTALL_TARGET = NO
# This package has a CMake build system, and it checks for C++11
# compliant compiler, but all we need to do is install two headers, so
# let's do it manually.
OPENCL_CLHPP_HEADERS = cl2.hpp opencl.hpp
define OPENCL_CLHPP_INSTALL_STAGING_CMDS
$(foreach header,$(OPENCL_CLHPP_HEADERS), \
$(INSTALL) -D -m 0644 $(@D)/include/CL/$(header) \
$(STAGING_DIR)/usr/include/CL/$(header)
)
endef
$(eval $(generic-package))