SUMMARY  = "Host API C++ bindings"
DESCRIPTION = "OpenCL compute API headers C++ bindings from Khronos Group"
LICENSE  = "Khronos"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7e4a01f0c56b39419aa287361a82df00"
SECTION = "base"

SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https"

PV = "2.0.10+git${SRCPV}"
SRCREV = "acd6972bc65845aa28bd9f670dec84cbf8b760f3"

S = "${WORKDIR}/git"

do_configure () {
:
}

# Only cl2.hpp is necessary.
# Base on the repo, Directly input_cl2.hpp copied as cl2.hpp
do_compile () {
:
}

do_install () {
	install -d ${D}${includedir}/CL/
	install -m 0644 ${S}/input_cl2.hpp ${D}${includedir}/CL/cl2.hpp
}

SUMMARY  = "Host API C++ bindings"
DESCRIPTION = "OpenCL compute API headers C++ bindings from Khronos Group"
LICENSE  = "Khronos"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7e4a01f0c56b39419aa287361a82df00"
SECTION = "base"

SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https"

PV = "2.0.10+git${SRCPV}"
SRCREV = "acd6972bc65845aa28bd9f670dec84cbf8b760f3"

S = "${WORKDIR}/git"

do_configure () {
:
}

# Only cl2.hpp is necessary.
# Base on the repo, Directly input_cl2.hpp copied as cl2.hpp
do_compile () {
:
}

do_install () {
	install -d ${D}${includedir}/CL/
	install -m 0644 ${S}/input_cl2.hpp ${D}${includedir}/CL/cl2.hpp
}

ALLOW_EMPTY_${PN} = "1"

Allow empty packages to be built
opencl-clhpp: Allow empty packages to be built

The opencl-clhpp package simply contains headers, hence they are all
contained within the opencl-clhpp-dev package.

This causes the opencl-clhpp to be empty and the default behavior is to
not create empty packages, although due to rpm packaging behavior a
dependency exists between the opencl-clhpp-dev package and the
opencl-clhpp, which causes an error when creating the rootfs.

Use ALLOW_EMPTY_${PN}= "1" to allow the empty package to be created,
that way dependencies are fullfilled when creating the rootfs.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <4808ec59fcf4a28be6636a23df6180bf66dbebe1@xilinx.com>
Signed-off-by: Manjukumar Matha <4c64a17569570cb9f1048973bce031c402b55312@xilinx.com>
