You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.4 KiB
71 lines
2.4 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../nvidia/nvidia.conf |
|
# 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. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
main() { |
|
f= |
|
case $arch in |
|
x86) f="`match_source_file -p -x86-`" ;; |
|
x86-64) f="`match_source_file -p -x86_64-`" ;; |
|
ia64) f="`match_source_file -p -ia64-`" ;; |
|
esac |
|
[ "$f" ] || abort "No binary for this architecture detected!" |
|
|
|
sh $f --extract-only |
|
cd N*-Linux-* |
|
|
|
patch -p0 < $base/package/x11/nvidia/module-install-26.patch |
|
|
|
|
|
# install the X driver and extensions that do not conflict ... |
|
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 |
|
custmain=main |
|
|
|
|