You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.2 KiB
48 lines
1.2 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
4 years ago
|
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
|
||
5 years ago
|
inherit autotools flag-o-matic multilib-minimal ruby-single
|
||
|
|
||
|
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"
|
||
4 years ago
|
KEYWORDS="amd64 x86"
|
||
5 years ago
|
|
||
4 years ago
|
# Does nothing now but by keeping it here we avoid having to have virtual/opencl
|
||
|
# handle ebuilds both with and without this flag.
|
||
5 years ago
|
IUSE="+khronos-headers"
|
||
|
|
||
|
BDEPEND="${RUBY_DEPS}"
|
||
3 years ago
|
DEPEND="~dev-util/opencl-headers-2020.06.16"
|
||
4 years ago
|
DEPEND="dev-util/opencl-headers"
|
||
|
RDEPEND="${DEPEND}
|
||
|
!app-eselect/eselect-opencl
|
||
4 years ago
|
!dev-libs/opencl-icd-loader"
|
||
5 years ago
|
|
||
4 years ago
|
PATCHES=("${FILESDIR}"/${P}-gcc-10.patch)
|
||
|
|
||
5 years ago
|
src_prepare() {
|
||
|
replace-flags -Os -O2 # bug 646122
|
||
|
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
multilib_src_configure() {
|
||
4 years ago
|
# 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
|
||
5 years ago
|
}
|
||
|
|
||
|
multilib_src_install() {
|
||
|
default
|
||
|
|
||
|
# Drop .la files
|
||
5 years ago
|
find "${ED}" -name '*.la' -delete || die
|
||
5 years ago
|
}
|