mirror of the now-defunct rocklinux.org
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.

93 lines
2.1 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x11/xfree86/xfree86.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. # include the configuration script for XFree ...
  23. . package/x11/xfree86/xf_config.sh
  24. x11base_main() {
  25. xf_dirtree
  26. xf_extract
  27. xf_extract_gl
  28. xf_extract_hallib
  29. xf_patch
  30. xf_config
  31. xf_build
  32. xf_install
  33. }
  34. x11base_stage0() {
  35. touch config/cf/host.def
  36. touch config/cf/version.def
  37. touch config/cf/date.def
  38. cd config/imake
  39. mv imakemdep.h imakemdep.h.bak
  40. cat <<EOT > imakemdep.h
  41. #define ARGUMENTS 50
  42. char *cpp_argv[50] = {
  43. "cc",
  44. "-I.",
  45. "-Uunix",
  46. "-D__${arch_machine}__",
  47. "-m$(( arch_sizeof_long * 8 ))",
  48. "-traditional",
  49. "-D${arch_machine}",
  50. "-Dlinux",
  51. };
  52. EOT
  53. make -f Makefile.ini
  54. cp -v imake $root/bin/
  55. mv imakemdep.h.bak imakemdep.h
  56. make -f Makefile.ini clean
  57. make -f Makefile.ini
  58. cd ../util
  59. ../imake/imake -I../cf -DTOPDIR=../.. -DCURDIR=config/util
  60. make
  61. cd ../makedepend
  62. ../imake/imake -I../cf -DTOPDIR=../.. -DCURDIR=config/makedepend
  63. make
  64. cd ../..
  65. cp -v config/util/rman $root/bin/
  66. cp -v config/makedepend/makedepend $root/bin/
  67. }
  68. if [ $stagelevel -gt 0 ]; then
  69. custmain=x11base_main
  70. autoextract=0
  71. createdocs=0
  72. else
  73. custmain=x11base_stage0
  74. fi
  75. # don't put the modules in a :dev package
  76. splitreg 45 . '/lib/modules/'
  77. # auto-create missing *.a files
  78. autoso2a=1