2015-01-01 21:13:37 +01:00
|
|
|
# Description: nVIDIA Linux Display Driver (long lived branch version)
|
2006-02-23 16:26:10 +01:00
|
|
|
# URL: http://www.nvidia.com/
|
2013-02-13 18:27:08 +01:00
|
|
|
# Maintainer: Matt Housh, jaeger at morpheus dot net
|
2013-11-07 05:08:28 +01:00
|
|
|
# Depends on: gtk gl-select
|
2006-03-30 18:19:32 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
name=nvidia
|
2015-07-31 06:55:28 +02:00
|
|
|
version=352.30
|
2015-02-26 06:23:11 +01:00
|
|
|
release=1
|
2014-10-01 15:01:11 +02:00
|
|
|
source=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version-no-compat32.run \
|
2015-02-13 21:31:36 +01:00
|
|
|
90-nvidia-uvm.rules $name-3.18.patch)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2012-11-22 19:50:35 +01:00
|
|
|
sh NVIDIA-Linux-x86_64-$version-no-compat32.run --extract-only
|
|
|
|
cd NVIDIA-Linux-x86_64-$version-no-compat32
|
2010-06-25 22:07:43 +02:00
|
|
|
|
2015-02-13 21:31:36 +01:00
|
|
|
patch -p1 -i $SRC/$name-3.18.patch
|
|
|
|
|
2010-06-25 22:07:43 +02:00
|
|
|
# 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 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
|
2012-11-17 04:30:47 +01:00
|
|
|
install -m 0755 libnvidia-encode.so.$version $PKG/usr/lib
|
2014-02-21 22:46:13 +01:00
|
|
|
install -m 0755 libnvidia-fbc.so.$version $PKG/usr/lib
|
2010-06-25 22:07:43 +02:00
|
|
|
install -m 0755 libnvidia-glcore.so.$version $PKG/usr/lib
|
2015-01-18 20:39:45 +01:00
|
|
|
install -m 0755 libnvidia-gtk2.so.$version $PKG/usr/lib
|
|
|
|
install -m 0755 libnvidia-gtk3.so.$version $PKG/usr/lib
|
2014-02-21 22:46:13 +01:00
|
|
|
install -m 0755 libnvidia-ifr.so.$version $PKG/usr/lib
|
2011-03-21 17:17:59 +01:00
|
|
|
install -m 0755 libnvidia-ml.so.$version $PKG/usr/lib
|
2012-11-17 04:30:47 +01:00
|
|
|
install -m 0755 libnvidia-opencl.so.$version $PKG/usr/lib
|
2010-06-25 22:07:43 +02:00
|
|
|
install -m 0755 libnvidia-tls.so.$version $PKG/usr/lib
|
2010-10-16 16:40:19 +02:00
|
|
|
install -m 0755 libnvcuvid.so.$version $PKG/usr/lib
|
2010-06-25 22:07:43 +02:00
|
|
|
install -m 0755 tls/libnvidia-tls.so.$version $PKG/usr/lib/tls
|
|
|
|
install -m 0755 libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau
|
2014-06-16 06:08:23 +02:00
|
|
|
|
2011-01-09 12:45:17 +01:00
|
|
|
ln -s libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so.1
|
|
|
|
ln -s libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so
|
|
|
|
|
2012-11-17 04:30:47 +01:00
|
|
|
ln -s libnvcuvid.so.$version $PKG/usr/lib/libnvcuvid.so.1
|
|
|
|
ln -s libnvcuvid.so.$version $PKG/usr/lib/libnvcuvid.so
|
|
|
|
|
2014-11-29 06:50:02 +01:00
|
|
|
ln -s libnvidia-ml.so.$version $PKG/usr/lib/libnvidia-ml.so.1
|
|
|
|
ln -s libnvidia-ml.so.$version $PKG/usr/lib/libnvidia-ml.so
|
|
|
|
|
2014-06-16 06:08:23 +02:00
|
|
|
ln -s libOpenCL.so.1.0.0 $PKG/usr/lib/libOpenCL.so
|
|
|
|
|
2010-06-25 22:07:43 +02:00
|
|
|
# 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
|
2014-06-16 06:08:23 +02:00
|
|
|
|
2010-06-25 22:07:43 +02:00
|
|
|
# nvidia programs amd man-pages
|
|
|
|
install -d $PKG/usr/{bin,man/man1}
|
2014-02-21 22:46:13 +01:00
|
|
|
install -m 0755 nvidia-{debugdump,persistenced,settings,smi,xconfig} \
|
|
|
|
$PKG/usr/bin
|
|
|
|
install -m 0644 nvidia-{persistenced,settings,smi,xconfig}.1.gz \
|
|
|
|
$PKG/usr/man/man1
|
2010-06-25 22:07:43 +02:00
|
|
|
|
2011-01-09 12:59:53 +01:00
|
|
|
# desktop file and icon
|
|
|
|
install -d $PKG/usr/share/{applications,pixmaps}
|
|
|
|
sed -i 's:__UTILS_PATH__:/usr/bin: ; s:__PIXMAP_PATH__:/usr/share/pixmaps:' nvidia-settings.desktop
|
|
|
|
install -m 0644 nvidia-settings.desktop $PKG/usr/share/applications
|
|
|
|
install -m 0644 nvidia-settings.png $PKG/usr/share/pixmaps
|
|
|
|
|
2010-06-25 22:07:43 +02:00
|
|
|
# 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
|
|
|
|
|
2013-09-20 01:58:53 +02:00
|
|
|
# opencl icd file
|
|
|
|
install -m 0644 -D nvidia.icd $PKG/etc/OpenCL/vendors/nvidia.icd
|
|
|
|
|
2014-06-16 06:08:23 +02:00
|
|
|
# nvidia-uvm module udev rule
|
|
|
|
install -d $PKG/lib/udev/rules.d
|
|
|
|
install -m 0644 $SRC/90-nvidia-uvm.rules $PKG/lib/udev/rules.d/90-nvidia-uvm.rules
|
|
|
|
|
2015-01-18 20:39:45 +01:00
|
|
|
# nvidia-settings registry key file
|
|
|
|
install -D -m 0644 nvidia-application-profiles-$version-key-documentation \
|
|
|
|
$PKG/usr/share/nvidia/nvidia-application-profiles-$version-key-documentation
|
|
|
|
|
2013-09-20 01:58:53 +02:00
|
|
|
# kernel module
|
2010-06-25 22:07:43 +02:00
|
|
|
cd kernel
|
|
|
|
IGNORE_CC_MISMATCH=1 make module
|
|
|
|
install -D -m 0644 nvidia.ko $PKG/lib/modules/`uname -r`/extra/nvidia.ko
|
2014-06-16 06:08:23 +02:00
|
|
|
|
|
|
|
# nvidia-uvm module
|
|
|
|
cd uvm
|
|
|
|
IGNORE_CC_MISMATCH=1 make module
|
|
|
|
install -D -m 0644 nvidia-uvm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-uvm.ko
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|