summaryrefslogtreecommitdiffstats
path: root/base/nvidia/Pkgfile
diff options
context:
space:
mode:
authorguy <guy@rougemin.(none)>2011-02-19 19:17:14 +0100
committerguy <guy@rougemin.(none)>2011-02-19 19:17:14 +0100
commit260a7414149ea2c18c5250d1617dd1f547815910 (patch)
tree4f6c98135c8cf314d19f8c6ab13fffcc80f98145 /base/nvidia/Pkgfile
parent5e2a1dc9fa7573a30d2b2b14cfd82f8e67b1a6d2 (diff)
parent3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42 (diff)
downloadnutyx-pakxe-260a7414149ea2c18c5250d1617dd1f547815910.tar.gz
nutyx-pakxe-260a7414149ea2c18c5250d1617dd1f547815910.tar.bz2
nutyx-pakxe-260a7414149ea2c18c5250d1617dd1f547815910.tar.xz
nutyx-pakxe-260a7414149ea2c18c5250d1617dd1f547815910.zip
Merge branch 'master' of ssh://kiao.no-ip.info:443/~/pakxe
Diffstat (limited to 'base/nvidia/Pkgfile')
-rwxr-xr-xbase/nvidia/Pkgfile53
1 files changed, 53 insertions, 0 deletions
diff --git a/base/nvidia/Pkgfile b/base/nvidia/Pkgfile
new file mode 100755
index 000000000..458d330cf
--- /dev/null
+++ b/base/nvidia/Pkgfile
@@ -0,0 +1,53 @@
+# 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=260.19.36
+release=1
+[ "`uname -m`" == "i686" ] && _ARCH=x86
+[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
+source=(http://us.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/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
+ ln -s libglx.so.$version $PKG/usr/lib/xorg/modules/extensions/libglx.so
+ install -m 0755 libnvidia-wfb.so.$version $PKG/usr/lib/xorg/modules
+ # build the module
+ cd kernel
+ ln -s Makefile{.kbuild,}
+ IGNORE_CC_MISMATCH=1 make module
+
+ # install it
+ install -m 0644 -D nvidia.ko \
+ $PKG/lib/modules/`uname -r`/kernel/video/nvidia/nvidia.ko
+ 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
+}