summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <sarnex@gentoo.org>2023-05-17 19:27:49 -0400
committerNick Sarnie <sarnex@gentoo.org>2023-05-17 19:27:49 -0400
commit77bf72c8a4972e7e2facb682ea117673e65e2f17 (patch)
tree3e9ac0505b7e966475a639b69f03b3759f426298 /dev-util
parentmedia-libs/vulkan-loader: add 1.3.246 (diff)
downloadgentoo-77bf72c8a4972e7e2facb682ea117673e65e2f17.tar.gz
gentoo-77bf72c8a4972e7e2facb682ea117673e65e2f17.tar.bz2
gentoo-77bf72c8a4972e7e2facb682ea117673e65e2f17.zip
dev-util/vulkan-tools: add 1.3.246
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/vulkan-tools/Manifest1
-rw-r--r--dev-util/vulkan-tools/vulkan-tools-1.3.246.ebuild78
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-util/vulkan-tools/Manifest b/dev-util/vulkan-tools/Manifest
index 2c04472539d1..03b83a0f1bc8 100644
--- a/dev-util/vulkan-tools/Manifest
+++ b/dev-util/vulkan-tools/Manifest
@@ -1 +1,2 @@
DIST vulkan-tools-1.3.243.tar.gz 778991 BLAKE2B 4b1e2a1b92ab4b4db7967fa01980b50845e8495c4ba638fe472968ec0069ce3d5207436e081401e7cacfd673002aff681ecd97ef2545a52decbbbb98b9150fd0 SHA512 6ba4c14073006e12615fcf054cd224b6e9f7f60215454349c19f671f4f9f987f38fe3d3dcd610d9a7dc7a39c6fdfcfae61509d31e44c86cb83b8429d1cb0febf
+DIST vulkan-tools-1.3.246.tar.gz 783735 BLAKE2B fd95f9b2dac60ab5c8231b0f600dd897a2fb16c0b3782e40f39e997caafa15c22d78df064701ff68cb8e6bd18108c8ed4357b75d569ae34f4142a9ed3cf7b0d7 SHA512 5320b25fd3ec5cd9afee3a746b1e09dac1d9aac9831cd41b58d6768316eb1c490d7fd8db27610c76a27d8e6a3b681f8a3b1408dfc6d353178594a7b74ef4f6d8
diff --git a/dev-util/vulkan-tools/vulkan-tools-1.3.246.ebuild b/dev-util/vulkan-tools/vulkan-tools-1.3.246.ebuild
new file mode 100644
index 000000000000..ae7ec142589b
--- /dev/null
+++ b/dev-util/vulkan-tools/vulkan-tools-1.3.246.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN=Vulkan-Tools
+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"
+ S="${WORKDIR}"/${MY_PN}-sdk-${PV}.0
+fi
+
+DESCRIPTION="Official Vulkan Tools and Utilities for Windows, Linux, Android, and MacOS"
+HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Tools"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="cube wayland +X"
+
+# Cube demo only supports one window system at a time
+REQUIRED_USE="cube? ( ^^ ( X wayland ) )"
+
+BDEPEND="${PYTHON_DEPS}
+ cube? ( ~dev-util/glslang-${PV}:=[${MULTILIB_USEDEP}] )
+"
+RDEPEND="
+ ~media-libs/vulkan-loader-${PV}:=[${MULTILIB_USEDEP},wayland?,X?]
+ wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
+ X? (
+ x11-libs/libX11:=[${MULTILIB_USEDEP}]
+ x11-libs/libXrandr:=[${MULTILIB_USEDEP}]
+ )
+"
+DEPEND="${RDEPEND}
+ ~dev-util/vulkan-headers-${PV}
+"
+
+pkg_setup() {
+ MULTILIB_CHOST_TOOLS=(
+ /usr/bin/vulkaninfo
+ )
+
+ use cube && MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/vkcube
+ /usr/bin/vkcubepp
+ )
+
+ python-any-r1_pkg_setup
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG"
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG"
+ -DCMAKE_SKIP_RPATH=ON
+ -DBUILD_VULKANINFO=ON
+ -DBUILD_CUBE=$(usex cube)
+ -DBUILD_WERROR=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"
+ )
+
+ use cube && mycmakeargs+=(
+ -DGLSLANG_INSTALL_DIR="${ESYSROOT}/usr"
+ -DCUBE_WSI_SELECTION=$(usex X XCB WAYLAND)
+ )
+
+ cmake_src_configure
+}