commit:     b69fad51a64fecb00e54ea44f7a6acfc14fe5e8c
Author:     Nick Sarnie <sarnex <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  4 19:23:24 2024 +0000
Commit:     Nick Sarnie <sarnex <AT> gentoo <DOT> org>
CommitDate: Sun Aug  4 19:30:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b69fad51

media-libs/vulkan-loader: add 1.3.290.0

Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org>

 media-libs/vulkan-loader/Manifest                  |  1 +
 .../vulkan-loader/vulkan-loader-1.3.290.0.ebuild   | 59 ++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/media-libs/vulkan-loader/Manifest 
b/media-libs/vulkan-loader/Manifest
index 638535ea2232..1eb1ddb5594d 100644
--- a/media-libs/vulkan-loader/Manifest
+++ b/media-libs/vulkan-loader/Manifest
@@ -1 +1,2 @@
 DIST vulkan-loader-1.3.283.0.tar.gz 1713233 BLAKE2B 
13b01518f08a206ad9a66ba74bbfa5d5199deb556e1beb2d5bcd63780f399d526d9f5ff83d0bc809e47702fd1413e799e34a3e81f00b1f27f93a08aff16aab3e
 SHA512 
0e62cc29a28e9d0898aa0a29b05158f75116f5a86468e879499503a20e95e49791150a0a458317223a04c65dfbc1fdcd22e71596a8cf939a5d38f9bf186851d6
+DIST vulkan-loader-1.3.290.0.tar.gz 1711013 BLAKE2B 
72c55f07537df0e0ad0fedb4a3b913cde9b6d5038370c0e92bf15ad9ee881f5910842a1b5ee00d370b93341aefbd141414b77e7ac8823d101a861829cd9f338b
 SHA512 
42ecf05e498f6422cea9d6ef70df5a936536524c1ff4d8cb391b5c55dd409082a6b2fc2eee5b395306c782ca32a7344faceef3e5385b382fb5a7e6564cfce4b5

diff --git a/media-libs/vulkan-loader/vulkan-loader-1.3.290.0.ebuild 
b/media-libs/vulkan-loader/vulkan-loader-1.3.290.0.ebuild
new file mode 100644
index 000000000000..ca20e66ef4a1
--- /dev/null
+++ b/media-libs/vulkan-loader/vulkan-loader-1.3.290.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN=Vulkan-Loader
+inherit flag-o-matic cmake-multilib toolchain-funcs
+
+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}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+       S="${WORKDIR}"/${MY_PN}-vulkan-sdk-${PV}
+fi
+
+DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader"
+HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Loader";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="layers wayland X"
+
+DEPEND="
+       ~dev-util/vulkan-headers-${PV}
+       wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
+       X? (
+               x11-libs/libX11:=[${MULTILIB_USEDEP}]
+               x11-libs/libXrandr:=[${MULTILIB_USEDEP}]
+       )
+"
+PDEPEND="layers? ( media-libs/vulkan-layers:=[${MULTILIB_USEDEP}] )"
+
+multilib_src_configure() {
+       # Integrated clang assembler doesn't work with x86 - Bug #698164
+       if tc-is-clang && [[ ${ABI} == x86 ]]; then
+               append-cflags -fno-integrated-as
+       fi
+
+       local mycmakeargs=(
+               -DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG"
+               -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG"
+               -DCMAKE_SKIP_RPATH=ON
+               -DBUILD_TESTS=OFF
+               -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
+               -DBUILD_WSI_XCB_SUPPORT=$(usex X)
+               -DBUILD_WSI_XLIB_SUPPORT=$(usex X)
+               -DVULKAN_HEADERS_INSTALL_DIR="${ESYSROOT}/usr"
+       )
+       cmake_src_configure
+}
+
+multilib_src_install() {
+       keepdir /etc/vulkan/icd.d
+
+       cmake_src_install
+}

Reply via email to