app-emulation/dxvk-nvapi-reflex-layer - 0.9.0 (thegreatmcpain)

Search

Package Information

Description:
Nvidia Reflex Vulkan Layer for DXVK-NVAPI
Homepage:
https://github.com/jp7677/dxvk-nvapi
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.9.0 8 -* ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MULTILIB_COMPAT=( abi_x86_{32,64} )
inherit flag-o-matic meson-multilib

DESCRIPTION="Nvidia Reflex Vulkan Layer for DXVK-NVAPI"
HOMEPAGE="https://github.com/jp7677/dxvk-nvapi"
VULKAN_HEADERS_HASH="d4a196d8c84e032d27f999adcea3075517c1c97f"
NVAPI_HASH="ce6d2a183f9559f717e82b80333966d19edb9c8c"
VKROOTS_HASH="a1ce1dad9a0beff57eaf925116a0e49b5e5e0be3"
SRC_URI="
	https://github.com/jp7677/dxvk-nvapi/archive/refs/tags/v${PV}.tar.gz
		-> ${P}.tar.gz
	https://github.com/KhronosGroup/Vulkan-Headers/archive/${VULKAN_HEADERS_HASH}.tar.gz
		-> ${P}-vulkan-headers.tar.gz
	https://github.com/NVIDIA/nvapi/archive/${NVAPI_HASH}.tar.gz
		-> ${P}-nvapi.tar.gz
	https://github.com/misyltoad/vkroots/archive/${VKROOTS_HASH}.tar.gz
		-> ${P}-vkroots.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="+abi_x86_32 debug"

BDEPEND="
	dev-util/glslang"

OLD_S="${WORKDIR}/dxvk-nvapi-${PV}"
S="${WORKDIR}/dxvk-nvapi-${PV}/layer"

src_prepare() {
	if [[ ${PV} != "9999" ]]; then
		rm -r "${OLD_S}/external/Vulkan-Headers" || die
		mv "${WORKDIR}/Vulkan-Headers-${VULKAN_HEADERS_HASH}" "${OLD_S}/external/Vulkan-Headers" || die
		rm -r "${OLD_S}/external/nvapi" || die
		mv "${WORKDIR}/nvapi-${NVAPI_HASH}" "${OLD_S}/external/nvapi" || die
		rm -r "${OLD_S}/external/vkroots" || die
		mv "${WORKDIR}/vkroots-${VKROOTS_HASH}" "${OLD_S}/external/vkroots" || die
	fi

	default
}

multilib_src_configure() {
	local emesonargs=(
		-Dabsolute_library_path=false
	)

	meson_src_configure
}

multilib_src_install_all() {
	dodoc "${OLD_S}/README.md"
}

pkg_postinst() {
	elog "For usage and instructions see 'Vulkan Reflex layer' section of..."
	elog
	elog "'${EROOT}/usr/share/doc/${PF}/README.md'"
}

USE Flags

abi_x86_32
Default: Enabled (+)

Dependencies

BDEPEND

	dev-util/glslang

Manifest for 0.9.0

Type File Size Source URLs
DIST dxvk-nvapi-reflex-layer-0.9.0-nvapi.tar.gz 553487 bytes https://github.com/NVIDIA/nvapi/archive/ce6d2a183f9559f717e82b80333966d19edb9c8c.tar.gz
DIST dxvk-nvapi-reflex-layer-0.9.0-vkroots.tar.gz 363013 bytes https://github.com/misyltoad/vkroots/archive/a1ce1dad9a0beff57eaf925116a0e49b5e5e0be3.tar.gz
DIST dxvk-nvapi-reflex-layer-0.9.0-vulkan-headers.tar.gz 2443691 bytes https://github.com/KhronosGroup/Vulkan-Headers/archive/d4a196d8c84e032d27f999adcea3075517c1c97f.tar.gz
DIST dxvk-nvapi-reflex-layer-0.9.0.tar.gz 583922 bytes https://github.com/jp7677/dxvk-nvapi/archive/refs/tags/v0.9.0.tar.gz