pentoo-overlay/pentoo/pentoo-opencl/pentoo-opencl-0-r3.ebuild
Rick Farina (Zero_Chaos) 200b7a6e19
pentoo-opencl: add pocl support
set some use flags that make sense
mask the use flag that breaks hashcat
optimize the cflags from default
2021-12-13 12:28:29 -05:00

29 lines
721 B
Bash

# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Virtual for pulling in appropriate opencl stuffs"
HOMEPAGE="https://pentoo.ch"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="opencl-cpu video_cards_amdgpu video_cards_nvidia"
REQUIRED_USE="|| ( opencl-cpu video_cards_amdgpu video_cards_nvidia )"
DEPEND=""
RDEPEND=""
BDEPEND=""
PDEPEND="virtual/opencl
opencl-cpu? ( amd64? ( || ( dev-libs/pocl dev-util/intel-ocl-sdk ) ) )
video_cards_amdgpu? ( dev-libs/rocm-opencl-runtime )
video_cards_nvidia? ( x11-drivers/nvidia-drivers )
"
pkg_setup() {
if ! use amd64; then
die "opencl-cpu is only available for 64 bit systems"
fi
}