OpenSDE Packages Database (without history before r20070)
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

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../nvidia/nvidia.conf
  5. # Copyright (C) 2007 - 2012 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. main() {
  16. f=
  17. case $arch in
  18. x86) f="`match_source_file -p -x86-`" ;;
  19. x86-64) f="`match_source_file -p -x86_64-`" ;;
  20. ia64) f="`match_source_file -p -ia64-`" ;;
  21. esac
  22. [ "$f" ] || abort "No binary for this architecture detected!"
  23. sh $f --extract-only
  24. cd N*-Linux-*
  25. patch -p0 < $base/package/x11/nvidia/module-install-26.patch
  26. # install the X driver and extensions that do not conflict ...
  27. mv -fv libXvMCNVIDIA* $root/usr/X11/${libdir##*/}/
  28. mv -fv libvdpau* $root/usr/X11/${libdir##*/}/
  29. mv -fv nvidia_drv.so $root/usr/X11/${libdir##*/}/xorg/modules/drivers/
  30. mv -fv libglx.so* $root/usr/X11/${libdir##*/}/xorg/modules/extensions/libglx_nvidia.so
  31. mkdir -p $root/usr/${libdir##*/}
  32. mv -fv libnvidia-glcore.so* $root/usr/${libdir##*/}
  33. mv -fv libnvidia-compiler.so* $root/usr/${libdir##*/}
  34. mv -fv libcuda.so* $root/usr/${libdir##*/}
  35. mv -fv libnvcuvid.so* $root/usr/${libdir##*/}
  36. mv -fv libnvidia-ml.so* $root/usr/${libdir##*/}
  37. mv -fv libnvidia-cfg.so* $root/usr/${libdir##*/}
  38. mv -fv tls/libnvidia-tls.so* $root/usr/${libdir##*/}
  39. mv -fv libGL.so* $root/usr/${libdir##*/}/libGL_nvidia.so.1
  40. mkdir -p $root/usr/bin
  41. mv -fv nvidia-smi $root/usr/bin/
  42. mv -fv nvidia-xconfig $root/usr/bin/
  43. mv -fv nvidia-settings $root/usr/bin/
  44. # Fancyness
  45. mkdir -p $root/etc/OpenCL/vendors
  46. mv -fv nvidia.icd $root/etc/OpenCL/vendors/
  47. mkdir -p $root/usr/share/man/man1
  48. mv -fv nvidia-settings.1.gz $root/usr/share/man/man1/
  49. mv -fv nvidia-xconfig.1.gz $root/usr/share/man/man1/
  50. mkdir -p $root/usr/share/applications
  51. mkdir -p $root/usr/share/pixmaps
  52. sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i "nvidia-settings.desktop"
  53. mv -fv nvidia-settings.desktop $root/usr/share/applications/
  54. mv -fv nvidia-settings.png $root/usr/share/pixmaps
  55. }
  56. autoextract=0
  57. custmain=main