1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 PYTHON_COMPAT=( python3_{6,7,8} )
9 inherit flag-o-matic cmake-multilib python-any-r1 toolchain-funcs
11 if [[ ${PV} == *9999* ]]; then
12 EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git"
16 SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64 ~ppc64 ~x86"
18 S="${WORKDIR}"/${MY_PN}-${PV}
21 DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader"
22 HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Loader"
26 IUSE="layers wayland X"
28 BDEPEND=">=dev-util/cmake-3.10.2"
29 DEPEND="${PYTHON_DEPS}
30 >=dev-util/vulkan-headers-${PV}
31 wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
33 x11-libs/libX11:=[${MULTILIB_USEDEP}]
34 x11-libs/libXrandr:=[${MULTILIB_USEDEP}]
37 PDEPEND="layers? ( media-libs/vulkan-layers:=[${MULTILIB_USEDEP}] )"
39 multilib_src_configure() {
40 # Integrated clang assembler doesn't work with x86 - Bug #698164
41 if tc-is-clang && [[ ${ABI} == x86 ]]; then
42 append-cflags -fno-integrated-as
49 -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
50 -DBUILD_WSI_XCB_SUPPORT=$(usex X)
51 -DBUILD_WSI_XLIB_SUPPORT=$(usex X)
52 -DVULKAN_HEADERS_INSTALL_DIR="${EPREFIX}/usr"
57 multilib_src_install() {
58 keepdir /etc/vulkan/icd.d
64 einfo "USE=demos has been dropped as per upstream packaging"
65 einfo "vulkaninfo is now available in the dev-util/vulkan-tools package"