60 lines
2.6 KiB
Plaintext
60 lines
2.6 KiB
Plaintext
# Description: nVIDIA Linux Display Driver
|
|
# URL: http://www.nvidia.com/
|
|
# Packager: Matt Housh, jaeger at morpheus dot net
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
|
# Depends on: gtk gl-select
|
|
|
|
name=nvidia
|
|
version=256.52
|
|
release=1
|
|
source=(ftp://download.nvidia.com/XFree86/Linux-x86/$version/NVIDIA-Linux-x86-$version.run \
|
|
$name-makefile.patch)
|
|
|
|
build() {
|
|
sh NVIDIA-Linux-x86-$version.run --extract-only
|
|
cd NVIDIA-Linux-x86-$version
|
|
|
|
# includes for CUDA and VDPAU
|
|
install -d $PKG/usr/include/{cuda,vdpau}
|
|
install -m 0644 vdpau*.h $PKG/usr/include/vdpau
|
|
install -m 0644 cuda*.h $PKG/usr/include/cuda
|
|
|
|
# libraries
|
|
install -d $PKG/usr/lib/{tls,vdpau}
|
|
install -m 0755 libGL.so.$version $PKG/usr/lib
|
|
install -m 0755 libOpenCL.so.1.0.0 $PKG/usr/lib
|
|
install -m 0755 libXvMCNVIDIA.so.$version $PKG/usr/lib
|
|
install -m 0644 libXvMCNVIDIA.a $PKG/usr/lib
|
|
install -m 0755 libcuda.so.$version $PKG/usr/lib
|
|
install -m 0755 libnvidia-cfg.so.$version $PKG/usr/lib
|
|
install -m 0755 libnvidia-compiler.so.$version $PKG/usr/lib
|
|
install -m 0755 libnvidia-glcore.so.$version $PKG/usr/lib
|
|
install -m 0755 libnvidia-tls.so.$version $PKG/usr/lib
|
|
install -m 0755 libvdpau.so.$version $PKG/usr/lib
|
|
install -m 0755 tls/libnvidia-tls.so.$version $PKG/usr/lib/tls
|
|
install -m 0755 libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau
|
|
install -m 0755 libvdpau_trace.so.$version $PKG/usr/lib/vdpau
|
|
|
|
# xorg driver/extensions
|
|
install -d $PKG/usr/lib/xorg/modules/{drivers,extensions}
|
|
install -m 0755 nvidia_drv.so $PKG/usr/lib/xorg/modules/drivers
|
|
install -m 0755 libglx.so.$version $PKG/usr/lib/xorg/modules/extensions
|
|
install -m 0755 libnvidia-wfb.so.$version $PKG/usr/lib/xorg/modules
|
|
|
|
# nvidia programs amd man-pages
|
|
install -d $PKG/usr/{bin,man/man1}
|
|
install -m 0755 nvidia-{settings,xconfig} $PKG/usr/bin
|
|
install -m 0644 nvidia-{settings,xconfig}.1.gz $PKG/usr/man/man1
|
|
|
|
# additional symlinks required by gl-select
|
|
ln -s libGL.so.$version $PKG/usr/lib/libGL_so_1_2_nvidia
|
|
ln -s libglx.so.$version $PKG/usr/lib/xorg/modules/extensions/libglx_so_nvidia
|
|
|
|
# kernel module, patch Makefile.kbuild for normal users and no load during build
|
|
cd kernel
|
|
patch -p0 -i $SRC/$name-makefile.patch
|
|
ln -s Makefile.kbuild Makefile
|
|
IGNORE_CC_MISMATCH=1 make module
|
|
install -D -m 0644 nvidia.ko $PKG/lib/modules/`uname -r`/extra/nvidia.ko
|
|
}
|