diff options
Diffstat (limited to 'source/x/mesa/mesa.SlackBuild')
-rwxr-xr-x | source/x/mesa/mesa.SlackBuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/x/mesa/mesa.SlackBuild b/source/x/mesa/mesa.SlackBuild index 578024903..8cbc8b6fd 100755 --- a/source/x/mesa/mesa.SlackBuild +++ b/source/x/mesa/mesa.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -124,6 +124,7 @@ meson setup \ -Dosmesa=gallium \ -Ddri-drivers=$DRI_DRIVERS \ -Dgallium-drivers=$GALLIUM_DRIVERS \ + -Dvulkan-device-select-layer=true \ -Dglvnd=true \ -Dllvm=enabled \ -Dshared-llvm=enabled \ @@ -131,6 +132,8 @@ meson setup \ -Degl=enabled \ -Dgles1=enabled \ -Dgles2=enabled \ + -Dopengl=true \ + -Dglx=dri \ .. || exit 1 "${NINJA:=ninja}" $NUMJOBS || exit 1 DESTDIR=$PKG $NINJA install || exit 1 @@ -141,6 +144,13 @@ if [ -r $PKG/etc/drirc ]; then mv $PKG/etc/drirc $PKG/etc/drirc.new fi +# Add a default provider for glvnd when the vendor cannot be determined: +( cd $PKG/usr/lib${LIBDIRSUFFIX} + if [ ! -r libGLX_system.so.0 ]; then + ln -sf libGLX_mesa.so.0 libGLX_system.so.0 + fi +) + if [ "$BUILD_DEMOS" = "YES" ]; then # Now build/install a small subset of the demos: export CWD SLKCFLAGS NUMJOBS PKG |