summaryrefslogtreecommitdiff
path: root/dev-libs/ocl-icd/ocl-icd-2.3.0-r10.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-31 21:12:47 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-31 21:12:47 +0100
commit8ccb4b9c101c349d9363b6a4c3d4b70bdb193c33 (patch)
tree5577999b4216fce84550c374725c2c8032a9205f /dev-libs/ocl-icd/ocl-icd-2.3.0-r10.ebuild
parent011ffa1d17d3d01e9d8c7ce46943c4d9b1a208b4 (diff)
dev-libs/ocl-icd : version bump
Diffstat (limited to 'dev-libs/ocl-icd/ocl-icd-2.3.0-r10.ebuild')
-rw-r--r--dev-libs/ocl-icd/ocl-icd-2.3.0-r10.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/ocl-icd/ocl-icd-2.3.0-r10.ebuild b/dev-libs/ocl-icd/ocl-icd-2.3.0-r10.ebuild
new file mode 100644
index 00000000..96e257fb
--- /dev/null
+++ b/dev-libs/ocl-icd/ocl-icd-2.3.0-r10.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2021 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-2021.04.29"
+RDEPEND="${DEPEND}
+ !app-eselect/eselect-opencl
+ !dev-libs/opencl-icd-loader"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-new-headers.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_compile() {
+ emake RUBY="$(type -P ruby25)"
+}
+
+multilib_src_install() {
+ default
+
+ # Drop .la files
+ find "${ED}" -name '*.la' -delete || die
+}