xref: /OK3568_Linux_fs/buildroot/package/opencl-clhpp/opencl-clhpp.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# opencl-clhpp
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunOPENCL_CLHPP_VERSION = 2.0.16
8*4882a593SmuzhiyunOPENCL_CLHPP_SITE = $(call github,KhronosGroup,OpenCL-CLHPP,v$(OPENCL_CLHPP_VERSION))
9*4882a593SmuzhiyunOPENCL_CLHPP_LICENSE = Apache-2.0
10*4882a593SmuzhiyunOPENCL_CLHPP_LICENSE_FILES = LICENSE.txt
11*4882a593SmuzhiyunOPENCL_CLHPP_DEPENDENCIES = libopencl
12*4882a593SmuzhiyunOPENCL_CLHPP_INSTALL_STAGING = YES
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun# OpenCL_CLHPP is a header-only library
15*4882a593SmuzhiyunOPENCL_CLHPP_INSTALL_TARGET = NO
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun# This package has a CMake build system, and it checks for C++11
18*4882a593Smuzhiyun# compliant compiler, but all we need to do is install two headers, so
19*4882a593Smuzhiyun# let's do it manually.
20*4882a593SmuzhiyunOPENCL_CLHPP_HEADERS = cl2.hpp opencl.hpp
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundefine OPENCL_CLHPP_INSTALL_STAGING_CMDS
23*4882a593Smuzhiyun	$(foreach header,$(OPENCL_CLHPP_HEADERS), \
24*4882a593Smuzhiyun		$(INSTALL) -D -m 0644 $(@D)/include/CL/$(header) \
25*4882a593Smuzhiyun			$(STAGING_DIR)/usr/include/CL/$(header)
26*4882a593Smuzhiyun	)
27*4882a593Smuzhiyunendef
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun$(eval $(generic-package))
30