mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
Update done using: ``` git grep -l sys-libs/zlib dev-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Followed by manual revert in dev-python/zlib-ng where it accidentally caught sys-libs/zlib-ng dependencies. Signed-off-by: Michał Górny <mgorny@gentoo.org>
83 lines
1.8 KiB
Bash
83 lines
1.8 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..14} )
|
|
inherit cmake flag-o-matic
|
|
|
|
if [[ ${PV} == 9999* ]]; then
|
|
EGIT_REPO_URI="https://github.com/LunarG/gfxreconstruct.git"
|
|
EGIT_SUBMODULES=( external/{Vulkan-Headers,SPIRV-Headers,SPIRV-Reflect} )
|
|
inherit git-r3
|
|
else
|
|
SRC_URI="
|
|
https://github.com/LunarG/${PN}/archive/vulkan-sdk-${PV}.tar.gz -> ${P}.tar.gz
|
|
https://github.com/KhronosGroup/SPIRV-Reflect/archive/vulkan-sdk-${PV}.tar.gz -> SPIRV-Reflect-${PV}.tar.gz
|
|
"
|
|
KEYWORDS="~amd64"
|
|
S="${WORKDIR}"/${PN}-vulkan-sdk-${PV}
|
|
fi
|
|
|
|
DESCRIPTION="Graphics API Capture and Replay Tools"
|
|
HOMEPAGE="https://github.com/LunarG/gfxreconstruct"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
IUSE="wayland X"
|
|
|
|
RDEPEND="
|
|
app-arch/lz4:=
|
|
app-arch/zstd:=
|
|
virtual/zlib:=
|
|
|
|
media-libs/vulkan-loader[wayland?,X?]
|
|
wayland? ( dev-libs/wayland )
|
|
X? (
|
|
x11-libs/libX11
|
|
x11-libs/libxcb
|
|
x11-libs/xcb-util-keysyms
|
|
)
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
X? ( x11-libs/libXrandr )
|
|
"
|
|
if [[ ${PV} != 9999* ]]; then
|
|
DEPEND+="
|
|
~dev-util/spirv-headers-${PV}
|
|
~dev-util/vulkan-headers-${PV}
|
|
"
|
|
PATCHES=(
|
|
"${FILESDIR}"/1.3.313.0-use-system-vulkan.patch
|
|
)
|
|
fi
|
|
|
|
src_unpack() {
|
|
if [[ ${PV} == 9999* ]]; then
|
|
git-r3_src_unpack
|
|
else
|
|
default
|
|
rmdir "${S}"/external/SPIRV-Reflect || die
|
|
mv "${WORKDIR}"/SPIRV-Reflect-vulkan-sdk-${PV} "${S}"/external/SPIRV-Reflect || die
|
|
fi
|
|
}
|
|
|
|
src_configure() {
|
|
# -Werror=strict-aliasing
|
|
# https://bugs.gentoo.org/956019
|
|
# https://github.com/LunarG/gfxreconstruct/issues/2358
|
|
append-flags -fno-strict-aliasing
|
|
filter-lto
|
|
|
|
local mycmakeargs=(
|
|
-DCMAKE_SKIP_RPATH=ON
|
|
-DBUILD_WERROR=OFF
|
|
-DBUILD_WSI_DISPLAY_SUPPORT=ON
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
|
|
-DBUILD_WSI_XCB_SUPPORT=$(usex X)
|
|
-DBUILD_WSI_XLIB_SUPPORT=$(usex X)
|
|
-DGFXRECON_ENABLE_OPENXR=OFF
|
|
)
|
|
cmake_src_configure
|
|
}
|