blob: 506fa5f64d2db2c5828e0b689a099da7222c5e02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2021 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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${PV}"
LICENSE="UoI-NCSA"
SLOT="12"
KEYWORDS="~amd64"
DEPEND="
>=dev-util/spirv-llvm-translator-12.0.0:12=[${MULTILIB_USEDEP}]
>=sys-devel/clang-12.0.0:12=[static-analyzer,${MULTILIB_USEDEP}]
sys-devel/llvm:12=[${MULTILIB_USEDEP}]
"
RDEPEND="${DEPEND}"
LLVM_MAX_SLOT=12
PATCHES=(
"${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch
"${FILESDIR}"/${PN}-10.0.0.1_find-llvm-tblgen.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
}
|