blob: 2ec0320195cc761edd10d72c9d00c7a82f0616f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Description: Pilotes pour les cartes graphiques NVIDIA
# URL: http://www.nvidia.com/object/unix.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
name=nvidia
version=275.09.07
release=1
[ "`uname -m`" == "i686" ] && _ARCH=x86
[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
source=(ftp://download.nvidia.com/XFree86/Linux-${_ARCH}/$version/NVIDIA-Linux-${_ARCH}-$version.run)
build() {
sh NVIDIA-Linux-${_ARCH}-$version.run --extract-only
cd NVIDIA-Linux-${_ARCH}-$version
# librairies
install -d $PKG/usr/lib/{tls,vdpau}
for i in libGL.so.$version libOpenCL.so.1.0.0 libXvMCNVIDIA.so.$version \
libcuda.so.$version libnvidia-cfg.so.$version libnvidia-compiler.so.$version \
libnvidia-glcore.so.$version libnvidia-tls.so.$version libnvidia-tls.so.$version \
libvdpau.so.$version
do
install -m 0755 $i $PKG/usr/lib
done
for i in libvdpau_nvidia.so.$version libvdpau_trace.so.$version
do
install -m 0755 $i $PKG/usr/lib/vdpau
done
install -m 0755 tls/libnvidia-tls.so.$version $PKG/usr/lib/tls
install -m 0644 libXvMCNVIDIA.a $PKG/usr/lib
# xorg driver/extensions
install -d $PKG/usr/lib/X11/modules/{drivers,extensions}
install -m 0755 nvidia_drv.so $PKG/usr/lib/X11/modules/drivers
install -m 0755 libglx.so.$version $PKG/usr/lib/X11/modules/extensions
ln -s libglx.so.$version $PKG/usr/lib/X11/modules/extensions/libglx.so
install -m 0755 libnvidia-wfb.so.$version $PKG/usr/lib/X11/modules
# xorg config
mkdir -p $PKG/etc/X11/xorg.conf.d
cat > $PKG/etc/X11/xorg.conf.d/30-nvidia.conf << "EOF"
Section "Device"
Identifier "NVIDIA"
Driver "nvidia"
EndSection
EOF
}
|