diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-30 12:20:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-30 12:20:44 +0100 |
commit | 1304264d6db97d622783a1a3d6c9933e029e1dae (patch) | |
tree | 512ab2680ded6dd9cc21ecccd66c20b8da7edc20 /dev-libs/ocl-icd/ocl-icd-2.2.12-r10.ebuild | |
parent | 1ca20f8af778c6f7b860fc093f779d63804e83a2 (diff) | |
parent | b68bd360ef1c8817650e105f9c8187b82e428765 (diff) |
Merge branch 'edge' into next
Diffstat (limited to 'dev-libs/ocl-icd/ocl-icd-2.2.12-r10.ebuild')
-rw-r--r-- | dev-libs/ocl-icd/ocl-icd-2.2.12-r10.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/ocl-icd/ocl-icd-2.2.12-r10.ebuild b/dev-libs/ocl-icd/ocl-icd-2.2.12-r10.ebuild new file mode 100644 index 00000000..2f086a09 --- /dev/null +++ b/dev-libs/ocl-icd/ocl-icd-2.2.12-r10.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic multilib-minimal + +DESCRIPTION="Alternative to vendor specific OpenCL ICD loaders" +HOMEPAGE="https://github.com/OCL-dev/ocl-icd" +SRC_URI="https://github.com/OCL-dev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Does nothing now but by keeping it here we avoid having to have virtual/opencl +# handle ebuilds both with and without this flag. +IUSE="+khronos-headers" + +BDEPEND="dev-lang/ruby:2.5 + virtual/rubygems" +DEPEND="dev-util/opencl-headers" +RDEPEND="${DEPEND} + !app-eselect/eselect-opencl + !dev-libs/opencl-icd-loader" + +PATCHES=("${FILESDIR}"/${P}-gcc-10.patch) + +src_prepare() { + replace-flags -Os -O2 # bug 646122 + + default + eautoreconf +} + +multilib_src_configure() { + # dev-util/opencl-headers ARE official Khronos Group headers, what this option + # does is disable the use of the bundled ones + ECONF_SOURCE="${S}" econf --enable-pthread-once --disable-official-khronos-headers +} + +multilib_src_install() { + default + + # Drop .la files + find "${ED}" -name '*.la' -delete || die +} |