summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-12-14 13:35:53 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-12-14 13:35:53 +0300
commite559b4d6f25bfd739e6ea8dddf1578af83d06177 (patch)
tree28a4b8140d12ada63d2aa35f947b554015a5841e /media-libs
parent8ee3deafbb593d7dd1639daf4b7c39a6d88b90d0 (diff)
vulkan-loader: merged new options from gentoo-gpu repo
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/vulkan-loader/vulkan-loader-scm.ebuild29
1 files changed, 27 insertions, 2 deletions
diff --git a/media-libs/vulkan-loader/vulkan-loader-scm.ebuild b/media-libs/vulkan-loader/vulkan-loader-scm.ebuild
index 8c5bfdf..dc4801d 100644
--- a/media-libs/vulkan-loader/vulkan-loader-scm.ebuild
+++ b/media-libs/vulkan-loader/vulkan-loader-scm.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers"
LICENSE="Apache-2.0"
SLOT="0"
-IUSE="wayland X"
+IUSE="+layers wayland X vulkaninfo"
RDEPEND=""
DEPEND="${PYTHON_DEPS}
@@ -44,6 +44,12 @@ multilib_src_configure() {
-DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
-DBUILD_WSI_XCB_SUPPORT=$(usex X)
-DBUILD_WSI_XLIB_SUPPORT=$(usex X)
+ -DBUILD_LAYERS=$(usex layers)
+ # Build all demos to get vulkaninfo
+ -DBUILD_DEMOS=$(usex vulkaninfo)
+ -DCMAKE_C_FLAGS="${CFLAGS}"
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
+ -DCMAKE_LD_FLAGS="${LDFLAGS}"
)
cmake-utils_src_configure
if [[ ${ABI} == x86 ]]; then
@@ -52,7 +58,26 @@ multilib_src_configure() {
}
multilib_src_install() {
+ dolib.so loader/libvulkan.so*
+ dolib.so layers/*.so
+
+ if multilib_is_native_abi; then
+ use vulkaninfo && dobin demos/vulkaninfo
+
+ insinto /usr/lib/pkgconfig/
+ doins loader/vulkan.pc
+ fi
+}
+
+multilib_src_install_all() {
keepdir /etc/vulkan/icd.d
- default
+ cd "${S}"
+ insinto /usr/include/vulkan
+ doins include/vulkan/*.h
+
+ insinto /usr/share/vulkan/explicit_layer.d
+ doins layers/linux/*.json
+
+ einstalldocs
}