|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: package/.../nvidia/nvidia.conf |
|
|
|
# Copyright (C) 2007 - 2008 The OpenSDE Project |
|
|
|
# Copyright (C) 2007 - 2012 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
@ -23,20 +23,47 @@ main() { |
|
|
|
[ "$f" ] || abort "No binary for this architecture detected!" |
|
|
|
|
|
|
|
sh $f --extract-only |
|
|
|
cd N*-Linux-*-pkg* |
|
|
|
cd N*-Linux-* |
|
|
|
|
|
|
|
patch -p0 < $base/package/x11/nvidia/module-install-26.patch |
|
|
|
|
|
|
|
apply_patchfiles |
|
|
|
|
|
|
|
# install the X driver and extensions that do not conflict ... |
|
|
|
mv -fv usr/X11R6/lib/libXvMCNVIDIA* $root/usr/X11/${libdir##*/}/ |
|
|
|
mv -fv usr/X11R6/lib/modules/drivers/* $root/usr/X11/${libdir##*/}/xorg/modules/drivers/ |
|
|
|
mv -fv usr/X11R6/lib/modules/extensions/* $root/usr/X11/${libdir##*/}/xorg/modules/extensions/ |
|
|
|
|
|
|
|
# copy the "shared" files the user might later munge into the system ... |
|
|
|
cd usr |
|
|
|
mkdir -p $root/$prefix/src/nvidia |
|
|
|
cp -arv X11R6 include lib $root/$prefix/src/nvidia/ |
|
|
|
cp -arv share/doc/* $docdir/ |
|
|
|
mv -fv libXvMCNVIDIA* $root/usr/X11/${libdir##*/}/ |
|
|
|
mv -fv libvdpau* $root/usr/X11/${libdir##*/}/ |
|
|
|
mv -fv nvidia_drv.so $root/usr/X11/${libdir##*/}/xorg/modules/drivers/ |
|
|
|
mv -fv libglx.so* $root/usr/X11/${libdir##*/}/xorg/modules/extensions/libglx_nvidia.so |
|
|
|
mkdir -p $root/usr/${libdir##*/} |
|
|
|
|
|
|
|
mv -fv libnvidia-glcore.so* $root/usr/${libdir##*/} |
|
|
|
mv -fv libnvidia-compiler.so* $root/usr/${libdir##*/} |
|
|
|
mv -fv libcuda.so* $root/usr/${libdir##*/} |
|
|
|
mv -fv libnvcuvid.so* $root/usr/${libdir##*/} |
|
|
|
mv -fv libnvidia-ml.so* $root/usr/${libdir##*/} |
|
|
|
mv -fv libnvidia-cfg.so* $root/usr/${libdir##*/} |
|
|
|
mv -fv tls/libnvidia-tls.so* $root/usr/${libdir##*/} |
|
|
|
mv -fv libGL.so* $root/usr/${libdir##*/}/libGL_nvidia.so.1 |
|
|
|
|
|
|
|
mkdir -p $root/usr/bin |
|
|
|
mv -fv nvidia-smi $root/usr/bin/ |
|
|
|
mv -fv nvidia-xconfig $root/usr/bin/ |
|
|
|
mv -fv nvidia-settings $root/usr/bin/ |
|
|
|
|
|
|
|
# Fancyness |
|
|
|
mkdir -p $root/etc/OpenCL/vendors |
|
|
|
mv -fv nvidia.icd $root/etc/OpenCL/vendors/ |
|
|
|
mkdir -p $root/usr/share/man/man1 |
|
|
|
mv -fv nvidia-settings.1.gz $root/usr/share/man/man1/ |
|
|
|
mv -fv nvidia-xconfig.1.gz $root/usr/share/man/man1/ |
|
|
|
|
|
|
|
mkdir -p $root/usr/share/applications |
|
|
|
mkdir -p $root/usr/share/pixmaps |
|
|
|
sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i "nvidia-settings.desktop" |
|
|
|
mv -fv nvidia-settings.desktop $root/usr/share/applications/ |
|
|
|
mv -fv nvidia-settings.png $root/usr/share/pixmaps |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
autoextract=0 |
|
|
|