summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <sarnex@gentoo.org>2023-02-04 11:44:08 -0500
committerNick Sarnie <sarnex@gentoo.org>2023-02-04 12:07:24 -0500
commit01207ba90844fa5372e8be43d01e7b84f27a0221 (patch)
tree015ba00c81ce7d5b6ca452941823ca820190f4e1 /media-libs
parentdev-util/vulkan-headers: add 1.3.239 (diff)
downloadgentoo-01207ba90844fa5372e8be43d01e7b84f27a0221.tar.gz
gentoo-01207ba90844fa5372e8be43d01e7b84f27a0221.tar.bz2
gentoo-01207ba90844fa5372e8be43d01e7b84f27a0221.zip
media-libs/vulkan-layers: add 1.3.239
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/vulkan-layers/Manifest1
-rw-r--r--media-libs/vulkan-layers/files/vulkan-layers-1.3.239-Build-shared-libs.patch22
-rw-r--r--media-libs/vulkan-layers/vulkan-layers-1.3.239.ebuild57
-rw-r--r--media-libs/vulkan-layers/vulkan-layers-9999.ebuild2
4 files changed, 81 insertions, 1 deletions
diff --git a/media-libs/vulkan-layers/Manifest b/media-libs/vulkan-layers/Manifest
index 3074cdc9ac80..15bba64d83c7 100644
--- a/media-libs/vulkan-layers/Manifest
+++ b/media-libs/vulkan-layers/Manifest
@@ -1,2 +1,3 @@
DIST vulkan-layers-1.3.231.tar.gz 4408601 BLAKE2B 9b777559a540c34c5f86a93b15c42a223b8b7fd517f06e28d7bd0ba0fdc938063fd86126f7cdb43e692f3cc22296b5f8df924c2f39e3ead38325b2e1442bf3a6 SHA512 550ff2f5d718ab1a272977f3beb89f653107a7a2b89209408233cb3b969206d1d9383e0e8933343bc71fc920dd80e0cf62ad3baa588b671f24ce04cb93d4b606
DIST vulkan-layers-1.3.236.tar.gz 4519779 BLAKE2B 087ecbfc4e460dbdd65009262d3ddedbed72258742ec902ac6e6e89d779aa350f819d4aa2aad4a30d365bdfb079c25ccaec265b9c5b56066e082db4701300095 SHA512 0ebb9d44b1a465a28702e12c80c6accb55dbd6a53ce2f1eb8e8cd627583a217544e21e8eb7e1619620458d756c0cde244bcde331710ab8244e113e302839f479
+DIST vulkan-layers-1.3.239.tar.gz 4549587 BLAKE2B b5ac5afade60b048414a336dc130ae2e7c332e1a9e4b86448be9c86f17f7705990b27908721ee2f62e3425f117d3941f47525f8fa0d07e79bc3c68f7e4e48f14 SHA512 4b96951874e5b7c7abbab83b0b85cfe10b13d3ced20148ddcdd9b6e79db5d083b9ee00ae1c3605a72bcea4c3b8f1ab42ed284eb2cbc8f7e98d377108970e884c
diff --git a/media-libs/vulkan-layers/files/vulkan-layers-1.3.239-Build-shared-libs.patch b/media-libs/vulkan-layers/files/vulkan-layers-1.3.239-Build-shared-libs.patch
new file mode 100644
index 000000000000..f290164555a5
--- /dev/null
+++ b/media-libs/vulkan-layers/files/vulkan-layers-1.3.239-Build-shared-libs.patch
@@ -0,0 +1,22 @@
+diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt
+index 640ac8471..19caed0ed 100644
+--- a/layers/CMakeLists.txt
++++ b/layers/CMakeLists.txt
+@@ -23,7 +23,7 @@
+ # https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/4640
+ add_compile_definitions(XXH_NO_LONG_LONG)
+
+-add_library(VkLayer_utils STATIC)
++add_library(VkLayer_utils SHARED)
+ target_sources(VkLayer_utils PRIVATE
+ generated/vk_format_utils.h
+ generated/vk_format_utils.cpp
+@@ -158,7 +158,7 @@ else()
+ message(NOTICE "VulkanVL_generated_source target requires python 3")
+ endif()
+
+-add_library(VkLayer_khronos_validation MODULE)
++add_library(VkLayer_khronos_validation SHARED)
+
+ target_sources(VkLayer_khronos_validation PRIVATE
+ generated/best_practices.cpp
diff --git a/media-libs/vulkan-layers/vulkan-layers-1.3.239.ebuild b/media-libs/vulkan-layers/vulkan-layers-1.3.239.ebuild
new file mode 100644
index 000000000000..d1fb64baadfb
--- /dev/null
+++ b/media-libs/vulkan-layers/vulkan-layers-1.3.239.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN=Vulkan-ValidationLayers
+PYTHON_COMPAT=( python3_{9..11} )
+inherit cmake-multilib python-any-r1
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git"
+ EGIT_SUBMODULES=()
+ inherit git-r3
+else
+ SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/sdk-${PV}.0.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+ S="${WORKDIR}"/${MY_PN}-sdk-${PV}.0
+fi
+
+DESCRIPTION="Vulkan Validation Layers"
+HOMEPAGE="https://github.com/KhronosGroup/Vulkan-ValidationLayers"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="wayland X"
+
+BDEPEND=">=dev-util/cmake-3.10.2"
+RDEPEND="~dev-util/spirv-tools-${PV}:=[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ >=dev-cpp/robin-hood-hashing-3.11.5
+ ~dev-util/glslang-${PV}:=[${MULTILIB_USEDEP}]
+ ~dev-util/vulkan-headers-${PV}
+ wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
+ X? (
+ x11-libs/libX11:=[${MULTILIB_USEDEP}]
+ x11-libs/libXrandr:=[${MULTILIB_USEDEP}]
+ )
+"
+
+PATCHES="${FILESDIR}/${P}-Build-shared-libs.patch"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG"
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG"
+ -DCMAKE_SKIP_RPATH=ON
+ -DBUILD_LAYER_SUPPORT_FILES=ON
+ -DBUILD_WERROR=OFF
+ -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
+ -DBUILD_WSI_XCB_SUPPORT=$(usex X)
+ -DBUILD_WSI_XLIB_SUPPORT=$(usex X)
+ -DBUILD_TESTS=OFF
+ -DVulkanRegistry_DIR="${ESYSROOT}/usr/share/vulkan/registry"
+ )
+ cmake_src_configure
+}
diff --git a/media-libs/vulkan-layers/vulkan-layers-9999.ebuild b/media-libs/vulkan-layers/vulkan-layers-9999.ebuild
index 27cb0fa07484..edcb48708e16 100644
--- a/media-libs/vulkan-layers/vulkan-layers-9999.ebuild
+++ b/media-libs/vulkan-layers/vulkan-layers-9999.ebuild
@@ -38,7 +38,7 @@ DEPEND="${RDEPEND}
)
"
-PATCHES="${FILESDIR}/${PN}-1.3.236-Build-shared-libs.patch"
+PATCHES="${FILESDIR}/${PN}-1.3.239-Build-shared-libs.patch"
multilib_src_configure() {
local mycmakeargs=(