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.

36 lines
869 B

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CMAKE_ECLASS=cmake
inherit cmake-multilib llvm
DESCRIPTION="OpenCL-oriented thin wrapper library around clang"
HOMEPAGE="https://github.com/intel/opencl-clang"
SRC_URI="https://github.com/intel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="UoI-NCSA"
SLOT="9"
KEYWORDS="~amd64"
BDEPEND="dev-vcs/git"
DEPEND="sys-devel/clang:9=[static-analyzer,${MULTILIB_USEDEP}]
sys-devel/llvm:9=[${MULTILIB_USEDEP}]
dev-util/spirv-llvm-translator:9=[${MULTILIB_USEDEP}]"
RDEPEND="${DEPEND}"
LLVM_MAX_SLOT=9
PATCHES=(
"${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch
)
multilib_src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
-DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang
)
cmake_src_configure
}