system/nvidia-driver: Fix Vulkan path.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edward W. Koenig 2017-03-12 14:51:51 +07:00 committed by Willy Sudiarto Raharjo
parent 1eebf93498
commit ec0f161ca5

View file

@ -31,7 +31,7 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CPROXY=${CPROXY:-yes}
GLVND=${GLVND:-yes}
# Note: libglvnd may land in X.org Mesa and Nvidia recommended
# Note: libglvnd may land in X.org Mesa and Nvidia recommended
set -e
@ -104,7 +104,7 @@ mkdir -p $PKG/install $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/{drivers,extensions
$PKG/etc/OpenCL/vendors/ $PKG/usr/lib$LIBDIRSUFFIX/{tls,vdpau} \
$PKG/etc/X11/glvnd/egl_vendor.d \
$PKG/usr/{bin,man/man1,sbin} $PKG/usr/share/{applications,nvidia,pixmaps} \
$PKG/usr/include/GL $PKG/etc/vulcan/icd.d $PKG/usr/doc/$PRGNAM-$VERSION
$PKG/usr/include/GL $PKG/etc/vulkan/icd.d $PKG/usr/doc/$PRGNAM-$VERSION
# Main X driver and modules
install -m 755 nvidia_drv.so $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/drivers/
@ -113,7 +113,7 @@ install -m 755 libglx.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/extensi
install -m 755 libnvidia-wfb.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/libnvidia-wfb.so.$VERSION
if [ "$GLVND" = "no" ]; then
# The non-GLVND GLX client libraries
# The non-GLVND GLX client libraries
install -m 755 libGL.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libEGL.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
else
@ -213,8 +213,8 @@ if [ "$ARCH" = "x86_64" -a "${COMPAT32}" = "yes" ]; then
install -m 755 32/libnvidia-tls.so.$VERSION $PKG/usr/lib/
install -m 755 32/tls/libnvidia-tls.so.$VERSION $PKG/usr/lib/tls/
install -m 755 32/libvdpau_nvidia.so.$VERSION $PKG/usr/lib/vdpau/
# non-conflict symlinks for optional 32-bit support; see also 'nvidia-switch'
# non-conflict symlinks for optional 32-bit support; see also 'nvidia-switch'
cd $PKG/usr/lib
ln -sf libcuda.so.$VERSION libcuda.so
ln -sf libGLX.so.0 libGLX.so
@ -234,7 +234,7 @@ fi
#ICDs
install -m 644 nvidia.icd $PKG/etc/OpenCL/vendors/
install -m 644 nvidia_icd.json $PKG/etc/vulcan/icd.d
install -m 644 nvidia_icd.json $PKG/etc/vulkan/icd.d
# Shouldn't hurt to have this as well regardless of GLX client libraries used
install -m 644 10_nvidia.json $PKG/etc/X11/glvnd/egl_vendor.d/