Import dxvk

This commit is contained in:
Stefan Reimer 2019-07-31 10:52:34 +01:00
parent bef15d18f0
commit 3b34a8f1d1
2 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,4 @@
DIST v1.2.3.tar.gz 627504 BLAKE2B a148be0a709ef5ee22196da284b76caa855fe556a35b310ae2aba87ad38342aeeb6339cdf2e298f6da11204fb2edc3f4c90ccfad6f9f4a286cb5019cc4eb819c SHA512 bf53e38405fa8eb92e778f4dc49efbe2d559bbc58dd94f8414955fdeee47cc765d4332d7bfac43742c981a7e9524d295ee91accc7334069724d449a471d44a7f
DIST v1.3.1.tar.gz 642736 BLAKE2B e591d1ebba19caf0fb8de5ef54d36f037c52e3f74499d6b06b5f9232008e88dcb38798e3cd22a2720978118c8197c9091b940d4f6aa5f0cb1ebb8bef7d7c5e75 SHA512 cbb0618752dcf66798ea31477dc4592cc1a99693a578c9e7023260dcfbdf8e07b4b5a69e2b44c9d1969755288cb49ae66f4acc807cdb0f0d1d7b19a68c1b9dab
EBUILD dxvk-1.2.3.ebuild 2078 BLAKE2B 3af3320f8ac1ab4c619150f842ce9d88abfc9eb3c336969483e0c34378bc992b4e5ba436bb086fb855bb8a4662516ac877d040391b66fb915543bf682b6d14ce SHA512 dd28d118651319654f560ca4512f300c1a08ff37f303528e1ab1bacbd3d1bacda16a00eebee44b29b592ebaa730fac709cb7019b1c7a3afb9084e7e3867fa645
EBUILD dxvk-1.3.1.ebuild 2078 BLAKE2B 4f728e9e522852c51a34a346189548721f59142ddf739e613c909b68f0e23a19b359e58a861cc4de7d4099440c24e8c62ac75825f9b8c03d7001450c2838f30a SHA512 c8b4d86fb25331d3e4531963e7ca2f736b5eee2f02cab7ea632d54f4bfd69da49f36dcc1ee92f9e86ffea249ba080e41dc1064f2a9c40b48f141ba2725366665

View File

@ -0,0 +1,91 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MULTILIB_COMPAT=( abi_x86_{32,64} )
inherit meson multilib-minimal ninja-utils
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
fi
DESCRIPTION="Vulkan-based D3D11 and D3D10 implementation for Linux / Wine"
HOMEPAGE="https://github.com/doitsujin/dxvk"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="https://github.com/doitsujin/dxvk.git"
else
SRC_URI="https://github.com/doitsujin/dxvk/archive/v${PV}.tar.gz"
fi
LICENSE="ZLIB"
SLOT="0"
if [[ "${PV}" == "9999" ]]; then
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
fi
IUSE="video_cards_nvidia"
COMMON_DEPEND="virtual/wine[${MULTILIB_USEDEP}]"
DEPEND="
${COMMON_DEPEND}
dev-util/vulkan-headers
dev-util/glslang
"
RDEPEND="
${COMMON_DEPEND}
media-libs/vulkan-loader[${MULTILIB_USEDEP}]
|| (
>=app-emulation/wine-any-4.5
>=app-emulation/wine-d3d9-4.5
>=app-emulation/wine-staging-4.5
>=app-emulation/wine-vanilla-4.5
)
|| (
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-418.74 )
>=media-libs/mesa-19.2
)
"
src_prepare() {
default
sed -i "s|^basedir=.*$|basedir=\"${EPREFIX}\"|" setup_dxvk.sh || die
sed -i 's|"x64"|"usr/lib64/dxvk"|' setup_dxvk.sh || die
sed -i 's|"x32"|"usr/lib32/dxvk"|' setup_dxvk.sh || die
if ! use abi_x86_64; then
sed -i '|installFile "$win64_sys_path"|d' setup_dxvk.sh
fi
if ! use abi_x86_32; then
sed -i '|installFile "$win32_sys_path"|d' setup_dxvk.sh
fi
}
multilib_src_configure() {
local bit="${MULTILIB_ABI_FLAG:8:2}"
local emesonargs=(
--libdir=lib${bit}/dxvk
--bindir=lib${bit}/dxvk/bin
--cross-file=../${P}/build-wine${bit}.txt
)
meson_src_configure
}
multilib_src_compile() {
EMESON_SOURCE="${S}"
meson_src_compile
}
multilib_src_install() {
meson_src_install
}
multilib_src_install_all() {
dobin setup_dxvk.sh
}
pkg_postinst() {
elog "dxvk is installed, but not activated. You have to create DLL overrides"
elog "in order to make use of it. To do so, set WINEPREFIX and execute"
elog "setup_dxvk.sh install --symlink."
}