summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-libs/vulkan-loader/vulkan-loader-scm.ebuild17
1 files changed, 16 insertions, 1 deletions
diff --git a/media-libs/vulkan-loader/vulkan-loader-scm.ebuild b/media-libs/vulkan-loader/vulkan-loader-scm.ebuild
index dc4801d..2f9bb73 100644
--- a/media-libs/vulkan-loader/vulkan-loader-scm.ebuild
+++ b/media-libs/vulkan-loader/vulkan-loader-scm.ebuild
@@ -19,16 +19,31 @@ IUSE="+layers wayland X vulkaninfo"
RDEPEND=""
DEPEND="${PYTHON_DEPS}
wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
- X? ( x11-libs/libX11:=[${MULTILIB_USEDEP}] )"
+ X? ( x11-libs/libX11:=[${MULTILIB_USEDEP}] )
+ dev-util/SPIRV-Tools
+ dev-util/glslang
+ "
src_unpack(){
git-r3_src_unpack
+
+ mkdir -p external/glslang
+ EGIT_REPO_URI="https://github.com/KhronosGroup/glslang.git"
+ EGIT_CHECKOUT_DIR=${WORKDIR}/${P}/external/glslang
+ git-r3_src_unpack
+
mkdir -p external/glslang/External/spirv-tools/
EGIT_REPO_URI="https://github.com/KhronosGroup/SPIRV-Tools"
EGIT_CHECKOUT_DIR=${WORKDIR}/${P}/external/glslang/External/spirv-tools
git-r3_src_unpack
+
+ mkdir -p external/glslang/External/spirv-headers/
+ EGIT_REPO_URI="https://github.com/KhronosGroup/SPIRV-Headers"
+ EGIT_CHECKOUT_DIR=${WORKDIR}/${P}/external/glslang/External/spirv-headers
+ git-r3_src_unpack
}
+
multilib_src_configure() {
if [[ ${ABI} == x86 ]]; then
export ASFLAGS="--32"