diff options
author | tnut <tnut at nutyx dot org> | 2012-04-16 02:34:25 +0200 |
---|---|---|
committer | tnut <tnut at nutyx dot org> | 2012-04-16 02:34:25 +0200 |
commit | 94df4d0fa3f57451f83245a91504e02434235dea (patch) | |
tree | 85b49c8e9b570124695375bcd03fb8b4cac0ed63 /nvidia-utils/Pkgfile | |
parent | 67e2026fb5d9c6f9b63ddcce7a1c2c70be0e05fe (diff) | |
download | nutyx-extra-94df4d0fa3f57451f83245a91504e02434235dea.tar.gz nutyx-extra-94df4d0fa3f57451f83245a91504e02434235dea.tar.bz2 nutyx-extra-94df4d0fa3f57451f83245a91504e02434235dea.tar.xz nutyx-extra-94df4d0fa3f57451f83245a91504e02434235dea.zip |
nvidia-utils, retour dans extra
Diffstat (limited to 'nvidia-utils/Pkgfile')
-rwxr-xr-x | nvidia-utils/Pkgfile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/nvidia-utils/Pkgfile b/nvidia-utils/Pkgfile new file mode 100755 index 000000000..5fa384699 --- /dev/null +++ b/nvidia-utils/Pkgfile @@ -0,0 +1,59 @@ +# 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-utils +version=295.33 +release=1 +[ "`uname -m`" == "i686" ] && _ARCH=x86 +[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64 +source=(http://fr.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 + + # install xconfig/settings programs and manpages + install -d $PKG/usr/{bin,share/man/man1} + + # install xconfig/settings programs and manpages + install -m 0755 nvidia-{xconfig,settings} $PKG/usr/bin/ + install -m 0644 nvidia-{xconfig,settings}.1.gz \ + $PKG/usr/share/man/man1/ + + install -m 0755 nvidia-{xconfig,settings} $PKG/usr/bin/ + install -m 0644 nvidia-{xconfig,settings}.1.gz \ + $PKG/usr/share/man/man1/ + # 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 +} |