diff options
author | Stelios Tsampas | 2020-04-20 13:35:27 +0300 |
---|---|---|
committer | Stelios Tsampas | 2020-04-20 13:35:27 +0300 |
commit | 6de445e4f9ee9525b481e7d905b216b072d3db55 (patch) | |
tree | 79d1278fd580700a97bd350d279dd5903fbc80b9 | |
parent | 938892c991e53cc460811a3c339c0daa43d85e14 (diff) | |
download | aur-6de445e4f9ee9525b481e7d905b216b072d3db55.tar.gz |
Version 1.6.1
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 20 insertions, 21 deletions
@@ -1,6 +1,6 @@ pkgbase = dxvk-winelib pkgdesc = Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine, Winelib version - pkgver = 1.6 + pkgver = 1.6.1 pkgrel = 1 url = https://github.com/doitsujin/dxvk arch = x86_64 @@ -16,7 +16,7 @@ pkgbase = dxvk-winelib depends = bash provides = dxvk provides = d9vk - provides = dxvk=1.6 + provides = dxvk=1.6.1 conflicts = dxvk conflicts = d9vk source = git+https://github.com/doitsujin/dxvk.git#commit=3104192af717f309068d2c20fd51b339511f6552 @@ -3,7 +3,7 @@ # Contributor: AdriĆ Cereto i MassaguĆ© <ssorgatem at gmail.com> pkgname=dxvk-winelib -pkgver=1.6 +pkgver=1.6.1 pkgrel=1 pkgdesc='Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine, Winelib version' arch=('x86_64') @@ -31,46 +31,45 @@ prepare() { # Uncomment to enable extra optimizations # Patch crossfiles with extra optimizations from makepkg.conf - #patch -p1 -i ../extraopts.patch + patch -p1 -i "$srcdir"/extraopts.patch + local dxvk_cflags="$CFLAGS" + local dxvk_ldflags="$LDFLAGS" # Filter known bad flags before applying optimizations # If using -march=native and the CPU supports AVX, launching a d3d9 # game can cause an Unhandled exception. The cause seems to be the # combination of AVX instructions and tree vectorization (implied by O3), # all tested archictures from sandybridge to haswell are affected. - # Disabling either AVX (and AVX2 as a side-effect) or tree - # vectorization fixes the issue. I am not sure which one is better - # to disable so below you can choose. Append either of these flags. + # Disabling AVX (and AVX2 as a side-effect). # Relevant Wine issues # https://bugs.winehq.org/show_bug.cgi?id=45289 # https://bugs.winehq.org/show_bug.cgi?id=43516 - CFLAGS+=" -mno-avx" - #CFLAGS+=" -fno-tree-vectorize" - # Filter fstack-protector flag for MingW. + dxvk_cflags+=" -mno-avx" + # Filter fstack-protector{ ,-all,-strong} flag for MingW. # https://github.com/Joshua-Ashton/d9vk/issues/476 - #CFLAGS+=" -fno-stack-protector" - #CFLAGS="${CFLAGS// -fstack-protector+(-all|-strong)/}" - #CFLAGS="${CFLAGS// -fstack-protector+(?=[ ])/}" + #dxvk_cflags+=" -fno-stack-protector" + #dxvk_cflags="${dxvk_cflags// -fstack-protector*([\-all|\-strong])/}" # Adjust optimization level in meson arguments. This is ignored # anyway because meson sets its own optimization level. - CFLAGS="${CFLAGS// -O+([0-3s]|fast)/}" + dxvk_cflags="${dxvk_cflags// -O+([0-3s]|fast)/}" # Doesn't compile with these flags in MingW so remove them. # They are also filtered in Wine PKGBUILDs so remove them # for winelib versions too. - CFLAGS="${CFLAGS/ -fno-plt/}" - LDFLAGS="${LDFLAGS/,-z,now/}" + dxvk_cflags="${dxvk_cflags/ -fno-plt/}" + dxvk_ldflags="${dxvk_ldflags/,-z,now/}" + #dxvk_ldflags="${dxvk_ldflags/,-z,relro/}" sed -i build-wine64.txt \ - -e "s|@CARGS@|\'${CFLAGS// /\',\'}\'|g" \ - -e "s|@LDARGS@|\'${LDFLAGS// /\',\'}\'|g" + -e "s|@CARGS@|\'${dxvk_cflags// /\',\'}\'|g" \ + -e "s|@LDARGS@|\'${dxvk_ldflags// /\',\'}\'|g" sed -i build-wine32.txt \ - -e "s|@CARGS@|\'${CFLAGS// /\',\'}\'|g" \ - -e "s|@LDARGS@|\'${LDFLAGS// /\',\'}\'|g" + -e "s|@CARGS@|\'${dxvk_cflags// /\',\'}\'|g" \ + -e "s|@LDARGS@|\'${dxvk_ldflags// /\',\'}\'|g" # Uncomment to enable dxvk async patch. # Enable at your own risk. If you don't know what it is, # and its implications, leave it as is. You have been warned. # I am not liable if anything happens to you by using it. # Patch enables async by default. YOU HAVE BEEN WARNED. - #patch -p1 -i ../dxvk-async.patch + #patch -p1 -i "$srcdir"/dxvk-async.patch } build() { |