From: Matt Turner Date: Fri, 3 Mar 2017 22:30:21 +0000 (-0800) Subject: media-libs/vulkan-loader: Add wayland and X USE flags. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=17b0cbe42483cffbe1fa6002276128e345603020;p=gentoo.git media-libs/vulkan-loader: Add wayland and X USE flags. Bug: https://bugs.gentoo.org/607154 --- diff --git a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild index 3ffa6bfad768..a70dc0dc6471 100644 --- a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild +++ b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild @@ -20,10 +20,12 @@ HOMEPAGE="https://www.khronos.org/vulkan/" LICENSE="Apache-2.0" SLOT="0" -IUSE="" +IUSE="wayland X" -DEPEND="${PYTHON_DEPS}" RDEPEND="" +DEPEND="${PYTHON_DEPS} + wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) + X? ( x11-libs/libX11:=[${MULTILIB_USEDEP}] )" DOCS=( README.md LICENSE.txt ) @@ -36,6 +38,9 @@ multilib_src_configure() { -DBUILD_VKJSON=False -DBUILD_LOADER=True -DBUILD_WSI_MIR_SUPPORT=False + -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) + -DBUILD_WSI_XCB_SUPPORT=$(usex X) + -DBUILD_WSI_XLIB_SUPPORT=$(usex X) ) cmake-utils_src_configure }