diff options
author | 2011-12-25 21:48:55 +0100 | |
---|---|---|
committer | 2011-12-25 21:48:55 +0100 | |
commit | ab1b078944bd11f8327b775af79423fe0daa22a8 (patch) | |
tree | 3965bfe265598650c9b6f6aa15d11fa1db91be13 | |
parent | [dev-util/intel-ocl-sdk] move headers to vendor dir (diff) | |
download | xarthisius-ab1b078944bd11f8327b775af79423fe0daa22a8.tar.gz xarthisius-ab1b078944bd11f8327b775af79423fe0daa22a8.tar.bz2 xarthisius-ab1b078944bd11f8327b775af79423fe0daa22a8.zip |
[app-admin/eselect-opencl] initial import
-rw-r--r-- | app-admin/eselect-opencl/Manifest | 10 | ||||
-rw-r--r-- | app-admin/eselect-opencl/eselect-opencl-1.1.0.ebuild | 59 | ||||
-rw-r--r-- | app-admin/eselect-opencl/metadata.xml | 11 |
3 files changed, 80 insertions, 0 deletions
diff --git a/app-admin/eselect-opencl/Manifest b/app-admin/eselect-opencl/Manifest new file mode 100644 index 0000000..d5416a6 --- /dev/null +++ b/app-admin/eselect-opencl/Manifest @@ -0,0 +1,10 @@ +DIST cl.h.1.1.xz 6940 RMD160 697d52b04bba416c233433ff5b9cba47d7327631 SHA1 2092a622e1494f0a31c1371147bc87478226b44b SHA256 11b0249ec6c35000686cfe775b1789fa010b6d058e123b00c720e8408881f13f +DIST cl.hpp.1.1.xz 14764 RMD160 009ff35d03da82b8271785077d94f046193f91d6 SHA1 096b0e0fd42d841effa24c6323cf109aa2f6ecce SHA256 5d90ef4d964a6365d8e9305913c85dd0ffe6916df0a151a116b1b58b0e6c7ef4 +DIST cl_ext.h.1.1.xz 2740 RMD160 f2debb481b3f3c94cbca5a50bb77fb571c9538dd SHA1 f7c759f6d8077e6d1eb222d1acb4a9638bee4741 SHA256 aeb729345004bf67d2564e1dc55feb326ff017f3b291ffb8e1391de353e09620 +DIST cl_gl.h.1.1.xz 1856 RMD160 e92b5e843322c9e78f3fe72da43c1502109dc1f5 SHA1 3c4ad063ea5e4ee232b273cecbb85abf17dbf112 SHA256 eeddf3403c13776b3d13a25c9e47a01eee750c0120f74d402fad5d78b29f925a +DIST cl_gl_ext.h.1.1.xz 1356 RMD160 0ba4c5d6f3c1d119d7a8844abd43b83db987b565 SHA1 829ae549cdd0de3878626858fb041d5a424ebd96 SHA256 594e463e3a24e62870c5c1914b05e796aeda8892bf6830ee8db3f722993fdf02 +DIST cl_platform.h.1.1.xz 5584 RMD160 034d4be552aa3ddb6cc45718c5aa7a195d7f3f59 SHA1 bdc027789de959d1aa33e70de8af90dd103780d3 SHA256 2f70eb47285fd46f75d48476e90ee3b7e9ba62166bc573bbb35cb0f9d7a2ea53 +DIST eselect-opencl-1.1.0.tar.xz 3272 RMD160 e6538d2207823487288dabce18e1baf8bd59ddf3 SHA1 fef7bf2949fb9b9f9f73a8fd30fca2f063abeb51 SHA256 0b49d847d4475119f969fc7bbcdc4ceb1905e37e102b10d0bdad4f8e6010bbbe +DIST opencl.h.1.1.xz 944 RMD160 d9c8ee867a0068fbb05624d48d9e236d0f43acd3 SHA1 2b94aff101b7a3ee4261957b6d46edd6b81faf24 SHA256 c076e410eaffd9fbb056528f31a59fe1908481f0fd38981c13970727a0c4d096 +EBUILD eselect-opencl-1.1.0.ebuild 1897 RMD160 f982fd27006a8dd45032bffc8ae5558c63b73b9c SHA1 f44e431db0c31dcf2892294e2d9e81c085f18fb0 SHA256 689f48fc64b95efa77dd9dfbcdc2e08592db74b2dc8385545c434c72f878d722 +MISC metadata.xml 346 RMD160 0c92ffb77efabdb583731ded733cc93c90b9185e SHA1 d9fc5f5cb3457c3c9fc9718809244e865309d3a8 SHA256 1ad263671e904451c1626471f26da723d969a084dd5d7b53cdcc450a12910a5f diff --git a/app-admin/eselect-opencl/eselect-opencl-1.1.0.ebuild b/app-admin/eselect-opencl/eselect-opencl-1.1.0.ebuild new file mode 100644 index 0000000..29d4dc0 --- /dev/null +++ b/app-admin/eselect-opencl/eselect-opencl-1.1.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/eselect-opengl-1.2.4.ebuild,v 1.7 2011/10/03 17:45:54 josejx Exp $ + +EAPI=4 +CL_ABI=1.1 + +inherit multilib + +DESCRIPTION="Utility to change the OpenCL implementation being used" +HOMEPAGE="http://www.gentoo.org/" + +# Source: +# http://www.khronos.org/registry/cl/api/${CL_ABI}/opencl.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_platform.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_ext.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl_ext.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.hpp + +MIRROR="http://dev.gentoo.org/~xarthisius/distfiles/" +SRC_URI="${MIRROR}/opencl.h.${CL_ABI}.xz + ${MIRROR}/cl_platform.h.${CL_ABI}.xz + ${MIRROR}/cl.h.${CL_ABI}.xz + ${MIRROR}/cl_ext.h.${CL_ABI}.xz + ${MIRROR}/cl_gl.h.${CL_ABI}.xz + ${MIRROR}/cl_gl_ext.h.${CL_ABI}.xz + ${MIRROR}/cl.hpp.${CL_ABI}.xz + ${MIRROR}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="app-arch/xz-utils" +RDEPEND=">=app-admin/eselect-1.2.4" + + +pkg_postinst() { + local impl="$(eselect opencl show)" + if [[ -n "${impl}" && "${impl}" != '(none)' ]] ; then + eselect opengl set "${impl}" + fi +} + +src_install() { + insinto /usr/share/eselect/modules + doins opencl.eselect + #doman opencl.eselect.5 + + local headers=( opencl.h cl_platform.h cl.h cl_ext.h cl_gl.h cl_gl_ext.h cl.hpp ) + insinto /usr/$(get_libdir)/OpenCL/global/include/CL + cd "${WORKDIR}" + for f in ${headers[@]}; do + newins ${f}.${CL_ABI} ${f} + done +} diff --git a/app-admin/eselect-opencl/metadata.xml b/app-admin/eselect-opencl/metadata.xml new file mode 100644 index 0000000..0d69e85 --- /dev/null +++ b/app-admin/eselect-opencl/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>xarthisius@gentoo.org</email> + <name>Kacper Kowalik</name> + </maintainer> + <longdescription> + Utility to switch OpenCL implementations between various providers. + </longdescription> +</pkgmetadata> |