media-libs/vulkan-loader: Add wayland and X USE flags.
authorMatt Turner <mattst88@gentoo.org>
Fri, 3 Mar 2017 22:30:21 +0000 (14:30 -0800)
committerMatt Turner <mattst88@gentoo.org>
Fri, 3 Mar 2017 22:50:54 +0000 (14:50 -0800)
Bug: https://bugs.gentoo.org/607154

media-libs/vulkan-loader/vulkan-loader-9999.ebuild

index 3ffa6bfad76832ca70265dfe389af4d255377231..a70dc0dc6471205de746690f29f16250fe68c714 100644 (file)
@@ -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
 }