dxvk/dxvk.spec

109 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package dxvk
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dxvk
- updated to 1.7.1 - fixes and Improvements - VK_EXT_4444_formats is now used on supported drivers to resolve potential issues with sampler border colors on Intel hardware. - VK_EXT_extended_dynamic_state is now used on supported drivers to implement out-of-bounds vertex buffer access behaviour correctly. - Minor performance improvements. - Implemented NV12 video format support for D3D9. This should make the GeForce Now app usable with DXVK. - Implemented missing shader instruction for D3D9 to fix shadow rendering in a number of games. - Anarchy Online: Fixed an out-of-memory error. - Metro Exodus: Added missing DXGI entry points required to run the game. - Observation: Work around a game bug causing rendering issues on RADV. - Resident Evil 7: Disabled relaxedBarriers option again due to rendering issues. - Serious Sam 2 and others: Fixed incorrect water reflections. - SpellForce 2: Work around black water ripples. - Timeshift: Fixed shadows - TrackMania: Fixed water and other rendering issues. - Work around performance issues in Darksiders: Warmastered Edition (#1719) and Monster Hunter World on AMD and recent Nvidia drivers. - Work around Z-fighting issues in Borderlands 3, Halo, Halo CE, Mafia III: Definitive Edition, Terminator: Resistance. - Compatibility notes VK_EXT_transform_feedback is now a hard requirement for D3D10 and D3D11. This extension is supported by all Nvidia and Mesa drivers released in early 2019 or later, as well as recent AMDVLK releases and the proprietary AMD driver. OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/dxvk?expand=0&rev=2
2020-09-05 19:49:52 +02:00
Version: 1.7.1+0~git20200813T191020
Release: 0
Summary: Vulkan-based D3D11 implementation for Linux / Wine
License: zlib-acknowledgement
Group: System/Emulators/PC
Url: https://github.com/doitsujin/dxvk
Source0: %{name}-%{version}.tar.xz
BuildRequires: wine
BuildRequires: meson
BuildRequires: ninja
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: glslang-devel
BuildRequires: xz
%ifarch x86_64
BuildRequires: mingw64-cross-cpp
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-headers
#Require 32bit version
Requires: %{name}-32bit
%else
BuildRequires: mingw32-cross-cpp
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-headers
%endif
%description
Provides a Vulkan-based implementation of DXGI and D3D11 in order to run 3D applications on Linux using Wine
%prep
%setup -q
%build
export CFLAGS="-DNDEBUG -fPIC -O2 -pthread -fno-strict-aliasing -fpredictive-commoning -fuse-linker-plugin"
export CXXFLAGS="${CFLAGS} -fpermissive"
export LDFLAGS="-fPIC -Wl,--sort-common -Wl,--gc-sections -Wl,-O1 -fuse-linker-plugin"
mkdir ../build
meson \
--cross-file build-win$(arch | tail -c 3 | sed 's|86|32|g').txt \
--strip \
--buildtype "release" \
--unity off \
--prefix /%{name} \
../build
cd ../build
ninja
%install
#install wrapper scripts
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_libexecdir}/%{name}/bin
sed \
-e 's|basedir=.*|basedir="%{_libexecdir}/%{name}"|g' \
-e 's|x32|lib|g' -e 's|x64|lib64|g' \
setup_dxvk.sh > %{buildroot}%{_libexecdir}/%{name}/bin/setup_dxvk.sh
ln -s %{_libexecdir}/%{name}/bin/setup_dxvk.sh %{buildroot}%{_bindir}/wine%{name}
#install dxvk proper
cd ../build
DESTDIR=%{buildroot}%{_libexecdir} ninja install
%ifarch x86_64
if [ -d %{buildroot}%{_libexecdir}/%{name}/lib ];then
mv %{buildroot}%{_libexecdir}/%{name}/lib %{buildroot}%{_libexecdir}/%{name}/%{_lib}
fi
%endif
rm %{buildroot}%{_libexecdir}/%{name}/%{_lib}/*.dll.a && \
mv %{buildroot}%{_libexecdir}/%{name}/bin/*.dll %{buildroot}%{_libexecdir}/%{name}/%{_lib}/
%files
%defattr(644,root,root)
%doc README.md
%license LICENSE
%{_bindir}/wine%{name}
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/%{_lib}
%attr(755, root, root) %{_libexecdir}/%{name}/bin
%changelog