summaryrefslogtreecommitdiff
blob: beba0c615462470da6a1bb834c7221b6aa2e7272 (plain)
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
27
28
29
30
31
32
33
34
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$

EAPI=4

DESCRIPTION="OpenCL headers from Khronos.org"
HOMEPAGE="http://www.khronos.org/"
SRC_URI="http://www.khronos.org/registry/cl/api/${PV}/opencl.h
	http://www.khronos.org/registry/cl/api/${PV}/cl_platform.h
	http://www.khronos.org/registry/cl/api/${PV}/cl.h
	http://www.khronos.org/registry/cl/api/${PV}/cl_ext.h
	http://www.khronos.org/registry/cl/api/${PV}/cl_gl.h
	http://www.khronos.org/registry/cl/api/${PV}/cl_gl_ext.h
	http://www.khronos.org/registry/cl/api/${PV}/cl.hpp"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

HEADERS=( opencl.h cl_platform.h cl.h cl_ext.h cl_gl.h cl_gl_ext.h cl.hpp )

src_unpack() {
	mkdir "${S}" || die
	for f in ${HEADERS[@]}; do
		cp "${DISTDIR}"/${f} "${S}"
	done
}

src_install() {
	insinto /usr/include/CL
	doins *
}