1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{4,5,6} )
7 if [[ "${PV}" == "9999" ]]; then
8 EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-Tools.git"
12 EGIT_COMMIT="384fff68c802a10b5d7f4f352a4bb43b3efe5f23"
14 SRC_URI="https://github.com/KhronosGroup/Vulkan-Tools/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
15 S="${WORKDIR}/Vulkan-Tools-${EGIT_COMMIT}"
18 inherit python-any-r1 cmake-multilib
20 DESCRIPTION="Official Vulkan Tools and Utilities for Windows, Linux, Android, and MacOS"
21 HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Tools"
27 # Old packaging will cause file collisions
28 RDEPEND="!<=media-libs/vulkan-loader-1.1.70.0-r999"
29 DEPEND="${PYTHON_DEPS}
30 dev-util/glslang:=[${MULTILIB_USEDEP}]
31 dev-util/vulkan-headers
32 media-libs/vulkan-loader:=[${MULTILIB_USEDEP},wayland?,X?]
33 wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
35 x11-libs/libX11:=[${MULTILIB_USEDEP}]
36 x11-libs/libXrandr:=[${MULTILIB_USEDEP}]
39 multilib_src_configure() {
41 -DCMAKE_SKIP_RPATH=True
42 -DBUILD_WSI_MIR_SUPPORT=False
43 -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
44 -DBUILD_WSI_XCB_SUPPORT=$(usex X)
45 -DBUILD_WSI_XLIB_SUPPORT=$(usex X)
46 -DGLSLANG_INSTALL_DIR="/usr"
47 -DVULKAN_HEADERS_INSTALL_DIR="/usr"
49 cmake-utils_src_configure