79 lines
3.3 KiB
Plaintext
79 lines
3.3 KiB
Plaintext
# Description: NVIDIA Linux Display Driver (feature branch)
|
|
# URL: http://www.nvidia.com/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libglvnd-32
|
|
|
|
name=nvidia-fb-32
|
|
version=565.77
|
|
release=1
|
|
source=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version.run)
|
|
|
|
build() {
|
|
sh NVIDIA-Linux-x86_64-$version.run --extract-only
|
|
cd NVIDIA-Linux-x86_64-$version/32
|
|
|
|
install -d -m 0755 $PKG/usr/lib32
|
|
|
|
# EGL and OpenGL ES libraries and config
|
|
install -m 0755 libGLESv1_CM_nvidia.so.$version $PKG/usr/lib32/
|
|
ln -s libGLESv1_CM_nvidia.so.$version $PKG/usr/lib32/libGLESv1_CM_nvidia.so.1
|
|
install -m 0755 libGLESv2_nvidia.so.$version $PKG/usr/lib32/
|
|
ln -s libGLESv2_nvidia.so.$version $PKG/usr/lib32/libGLESv2_nvidia.so.2
|
|
|
|
# GLVND vendor implementation libraries
|
|
install -m 0755 libGLX_nvidia.so.$version $PKG/usr/lib32/
|
|
ln -s libGLX_nvidia.so.$version $PKG/usr/lib32/libGLX_nvidia.so.0
|
|
install -m 0755 libEGL_nvidia.so.$version $PKG/usr/lib32/
|
|
ln -s libEGL_nvidia.so.$version $PKG/usr/lib32/libEGL_nvidia.so.0
|
|
|
|
# driver component libraries
|
|
for C in allocator {e,}glcore gl{si,vkspirv} gpucomp; do
|
|
install -m 0755 libnvidia-${C}.so.$version $PKG/usr/lib32/
|
|
ln -s libnvidia-${C}.so.$version $PKG/usr/lib32/libnvidia-${C}.so.1
|
|
ln -s libnvidia-${C}.so.$version $PKG/usr/lib32/libnvidia-${C}.so
|
|
done
|
|
|
|
# vendor VDPAU library
|
|
install -D -m 0755 libvdpau_nvidia.so.$version $PKG/usr/lib32/vdpau/libvdpau_nvidia.so.$version
|
|
ln -s libvdpau_nvidia.so.$version $PKG/usr/lib32/vdpau/libvdpau_nvidia.so.1
|
|
ln -s libvdpau_nvidia.so.$version $PKG/usr/lib32/vdpau/libvdpau_nvidia.so
|
|
|
|
# CUDA libraries
|
|
install -m 0755 libcuda.so.$version $PKG/usr/lib32/
|
|
ln -s libcuda.so.$version $PKG/usr/lib32/libcuda.so.1
|
|
ln -s libcuda.so.$version $PKG/usr/lib32/libcuda.so
|
|
install -m 0755 libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib32/
|
|
ln -s libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib32/libnvidia-ptxjitcompiler.so.1
|
|
ln -s libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib32/libnvidia-ptxjitcompiler.so
|
|
install -m 0755 libnvidia-nvvm.so.$version $PKG/usr/lib32/
|
|
ln -s libnvidia-nvvm.so.$version $PKG/usr/lib32/libnvidia-nvvm.so.1
|
|
ln -s libnvidia-nvvm.so.$version $PKG/usr/lib32/libnvidia-nvvm.so
|
|
|
|
# OpenCL libraries and config
|
|
install -m 0755 libOpenCL.so.1.0.0 $PKG/usr/lib32/
|
|
install -m 0755 libnvidia-opencl.so.$version $PKG/usr/lib32/
|
|
ln -s libnvidia-opencl.so.$version $PKG/usr/lib32/libnvidia-opencl.so.1
|
|
ln -s libnvidia-opencl.so.$version $PKG/usr/lib32/libnvidia-opencl.so
|
|
|
|
# TLS libraries
|
|
install -m 0755 libnvidia-tls.so.$version $PKG/usr/lib32/
|
|
ln -s libnvidia-tls.so.$version $PKG/usr/lib32/libnvidia-tls.so.1
|
|
ln -s libnvidia-tls.so.$version $PKG/usr/lib32/libnvidia-tls.so
|
|
#install -d $PKG/usr/lib32/tls
|
|
|
|
# monitoring and management API library
|
|
install -m 0755 libnvidia-ml.so.$version $PKG/usr/lib32/
|
|
|
|
# encoding/decoding libraries
|
|
for C in nvcuvid nvidia-{encode,fbc}; do
|
|
install -m 0755 lib${C}.so.$version $PKG/usr/lib32/
|
|
ln -s lib${C}.so.$version $PKG/usr/lib32/lib${C}.so.1
|
|
ln -s lib${C}.so.$version $PKG/usr/lib32/lib${C}.so
|
|
done
|
|
|
|
# optical flow library
|
|
install -m 0755 libnvidia-opticalflow.so.$version $PKG/usr/lib32/
|
|
ln -s libnvidia-opticalflow.so.$version $PKG/usr/lib32/libnvidia-opticalflow.so.1
|
|
ln -s libnvidia-opticalflow.so.$version $PKG/usr/lib32/libnvidia-opticalflow.so
|
|
}
|