diff options
author | Nick Sarnie <sarnex@gentoo.org> | 2023-11-09 17:01:46 -0500 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2023-11-09 17:56:32 -0500 |
commit | 77bca445b9251ca52d28988991048a4efa02e513 (patch) | |
tree | 2e7d264c5d6ca204e539bb2c5b23f05739524358 /media-libs/vulkan-layers | |
parent | dev-util/vulkan-utility-libraries: new package, add 1.3.268, 9999 (diff) | |
download | gentoo-77bca445b9251ca52d28988991048a4efa02e513.tar.gz gentoo-77bca445b9251ca52d28988991048a4efa02e513.tar.bz2 gentoo-77bca445b9251ca52d28988991048a4efa02e513.zip |
media-libs/vulkan-layers: add 1.3.268
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'media-libs/vulkan-layers')
-rw-r--r-- | media-libs/vulkan-layers/Manifest | 1 | ||||
-rw-r--r-- | media-libs/vulkan-layers/vulkan-layers-1.3.268.ebuild | 61 | ||||
-rw-r--r-- | media-libs/vulkan-layers/vulkan-layers-9999.ebuild | 1 |
3 files changed, 63 insertions, 0 deletions
diff --git a/media-libs/vulkan-layers/Manifest b/media-libs/vulkan-layers/Manifest index f9e3970951a8..3d8c0929b1d3 100644 --- a/media-libs/vulkan-layers/Manifest +++ b/media-libs/vulkan-layers/Manifest @@ -1 +1,2 @@ DIST vulkan-layers-1.3.261.tar.gz 5005066 BLAKE2B 76eee1121e58892be3b608d4fda17d1ef67bf1e8a361ff9b51651fb9dd80c14b52798e8978d4167d51f7dfe09a680f10868d2a4b576ff5af8938cbf2d0f943fa SHA512 cadd44773701b0937956c1b1f7c6a9f8c574c857af044271a64065367ec8c453dbda04c5bd42e307d7997441e9ad67df5656f18b5a81b315174ec8618cfe0e1a +DIST vulkan-layers-1.3.268.tar.gz 5004147 BLAKE2B 228a146e436f3c91df85d853d9fb5f58fe244a3dbbd66ffdaff2fcd27734969b041c1fe8df7cc2142857ac5742c14465cbc6f86a6401c75736e712222c1d2123 SHA512 74282cede73f67ee39ab78b99cd53f78ac0427ec6ca897ec41eb28b0e2d1106006d688bfbfdb2f0924b84149d516d42b1abe3680cdc6019c66457451f19b44dd diff --git a/media-libs/vulkan-layers/vulkan-layers-1.3.268.ebuild b/media-libs/vulkan-layers/vulkan-layers-1.3.268.ebuild new file mode 100644 index 000000000000..184e17dc30bd --- /dev/null +++ b/media-libs/vulkan-layers/vulkan-layers-1.3.268.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=Vulkan-ValidationLayers +PYTHON_COMPAT=( python3_{9..12} ) +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/vulkan-sdk-${PV}.0.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}"/${MY_PN}-vulkan-sdk-${PV}.0 +fi + +DESCRIPTION="Vulkan Validation Layers" +HOMEPAGE="https://github.com/KhronosGroup/Vulkan-ValidationLayers" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="wayland X" + +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/spirv-headers-${PV} + ~dev-util/vulkan-headers-${PV} + ~dev-util/vulkan-utility-libraries-${PV}:=[${MULTILIB_USEDEP}] + wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) + X? ( + x11-libs/libX11:=[${MULTILIB_USEDEP}] + x11-libs/libXrandr:=[${MULTILIB_USEDEP}] + ) +" + +PATCHES="${FILESDIR}/${PN}-1.3.250-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 + ) + cmake_src_configure +} + +multilib_src_install_all() { + find "${ED}" -type f -name \*.a -delete || die +} diff --git a/media-libs/vulkan-layers/vulkan-layers-9999.ebuild b/media-libs/vulkan-layers/vulkan-layers-9999.ebuild index baa63961b68d..eb1869aef56b 100644 --- a/media-libs/vulkan-layers/vulkan-layers-9999.ebuild +++ b/media-libs/vulkan-layers/vulkan-layers-9999.ebuild @@ -31,6 +31,7 @@ DEPEND="${RDEPEND} ~dev-util/glslang-${PV}:=[${MULTILIB_USEDEP}] ~dev-util/spirv-headers-99999999 ~dev-util/vulkan-headers-${PV} + ~dev-util/vulkan-utility-libraries-${PV}:=[${MULTILIB_USEDEP}] wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) X? ( x11-libs/libX11:=[${MULTILIB_USEDEP}] |