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.

83 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../fglrx/fglrx.conf
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. sysconfdir="/etc/ati"
  15. custextract='fglrx_extract'
  16. fglrx_extract() {
  17. sh $( match_source_file -p . ) --extract "$pkg"
  18. echo "$pkg" > untar.txt
  19. }
  20. commonsrc=common
  21. case "$arch" in
  22. x86-64) archsrc="arch/x86_64"
  23. xorgsrc="x710_64a"
  24. ;;
  25. *) archsrc="arch/$arch"
  26. xorgsrc="x710"
  27. ;;
  28. esac
  29. makeopt=
  30. makeinstopt=
  31. hook_add postmake 5 'fglrx_install'
  32. fglrx_install() {
  33. local x11_bindir= x11_libdir= xorg_libdir=
  34. pkgprefix -t xorg-server
  35. x11_bindir=$root$( pkgprefix bindir xorg-server )
  36. x11_libdir=$root$( pkgprefix libdir xorg-server )
  37. xorg_libdir=$root$( pkgprefix libdir xorg-server )/xorg
  38. # arch
  39. #
  40. mv -vf $archsrc/usr/sbin/* $root$sbindir/
  41. mv -vf $archsrc/usr/X11R6/bin/* $x11_bindir/
  42. mv -vf $archsrc/usr/X11R6/lib/modules/dri/* $xorg_libdir/modules/dri/
  43. mv -vf $archsrc/usr/X11R6/lib/lib* $x11_libdir/
  44. # TODO: install during linux26
  45. # arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4
  46. rm -rvf $archsrc/lib/modules/fglrx
  47. # X.org
  48. #
  49. mv -vf $xorgsrc/usr/X11R6/lib/modules/linux/libfglrxdrm.so $xorg_libdir/modules/linux/
  50. mv -vf $xorgsrc/usr/X11R6/lib/modules/drivers/fglrx_drv.so $xorg_libdir/modules/drivers/
  51. # common
  52. #
  53. mv -vf common/etc/ati/* $root$sysconfdir/
  54. mv -vf common/usr/include/GL/* $root$includedir/GL/
  55. mv -vf common/usr/share/icons/* $root$datadir/icons/
  56. mv -vf common/usr/share/man/man8/* $root$mandir/man8/
  57. mv -vf common/usr/sbin/* $root$sbindir/
  58. # TODO: install during linux26
  59. # common/lib/modules/fglrx <--- pkg_linux26_pre.conf
  60. rm -rvf common/lib/modules/fglrx
  61. # doc
  62. #
  63. ( cd common/usr/share/doc/fglrx; tar -cf - * ) | tar -C $docdir -xvf -
  64. rm -rf common/usr/share/doc/fglrx
  65. }
  66. # list forgoten
  67. hook_add postdoc 5 "find $xorgsrc $archsrc common ! -type d"