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.

88 lines
2.4 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 - 2012 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="xpic_64a"
  24. atilib="lib64"
  25. ;;
  26. *) archsrc="arch/$arch"
  27. xorgsrc="xpic"
  28. atilib="lib"
  29. ;;
  30. esac
  31. makeopt=
  32. makeinstopt=
  33. hook_add postmake 5 'fglrx_install'
  34. fglrx_install() {
  35. local x11_bindir= x11_libdir= xorg_libdir=
  36. pkgprefix -t xorg-server
  37. x11_bindir=$root$( pkgprefix bindir xorg-server )
  38. x11_libdir=$root$( pkgprefix libdir xorg-server )
  39. xorg_libdir=$root$( pkgprefix libdir xorg-server )/xorg
  40. # arch
  41. #
  42. mv -vf $archsrc/usr/sbin/* $root$sbindir/
  43. mv -vf $archsrc/usr/X11R6/bin/* $x11_bindir/
  44. mv -vf $archsrc/usr/X11R6/$atilib/modules/dri/* $x11_libdir/dri/
  45. mv -vf $archsrc/usr/X11R6/$atilib/lib* $x11_libdir/
  46. # TODO: install during linux26
  47. # arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4
  48. rm -rvf $archsrc/lib/modules/fglrx
  49. # X.org
  50. #
  51. mkdir -p $xorg_libdir/modules/{linux,drivers}
  52. mv -vf $xorgsrc/usr/X11R6/$atilib/modules/linux/libfglrxdrm.so $xorg_libdir/modules/linux/
  53. mv -vf $xorgsrc/usr/X11R6/$atilib/modules/drivers/fglrx_drv.so $xorg_libdir/modules/drivers/
  54. # common
  55. #
  56. mkdir -p $root$datadir/icons
  57. mkdir -p $root$mandir/man8
  58. mv -vf common/etc/ati/* $root$sysconfdir/
  59. mv -vf common/usr/include/GL/* $root$includedir/GL/
  60. mv -vf common/usr/share/icons/* $root$datadir/icons/
  61. mv -vf common/usr/share/man/man8/* $root$mandir/man8/
  62. mv -vf common/usr/sbin/* $root$sbindir/
  63. # TODO: install during linux26
  64. # common/lib/modules/fglrx <--- pkg_linux26_pre.conf
  65. rm -rvf common/lib/modules/fglrx
  66. # doc
  67. #
  68. ( cd common/usr/share/doc/fglrx; tar -cf - * ) | tar -C $docdir -xvf -
  69. rm -rf common/usr/share/doc/fglrx
  70. }
  71. # list forgoten
  72. hook_add postdoc 5 "find $xorgsrc $archsrc common ! -type d"