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.

100 lines
2.3 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 - 2006 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_extract_gatos
  30. xf_patch
  31. xf_config
  32. xf_build
  33. xf_install
  34. xf_build_install_gatos
  35. }
  36. x11base_stage0() {
  37. touch config/cf/host.def
  38. touch config/cf/version.def
  39. touch config/cf/date.def
  40. cd config/imake
  41. mv imakemdep.h imakemdep.h.bak
  42. cat <<EOT > imakemdep.h
  43. #define ARGUMENTS 50
  44. char *cpp_argv[50] = {
  45. "cc",
  46. "-I.",
  47. "-Uunix",
  48. "-D__${arch_machine}__",
  49. "-m$(( arch_sizeof_long * 8 ))",
  50. "-traditional",
  51. "-D${arch_machine}",
  52. "-Dlinux",
  53. };
  54. EOT
  55. make -f Makefile.ini
  56. cp -v imake $root/bin/
  57. mv imakemdep.h.bak imakemdep.h
  58. make -f Makefile.ini clean
  59. make -f Makefile.ini
  60. cd ../util
  61. ../imake/imake -I../cf -DTOPDIR=../.. -DCURDIR=config/util
  62. make
  63. cd ../makedepend
  64. ../imake/imake -I../cf -DTOPDIR=../.. -DCURDIR=config/makedepend
  65. make
  66. cd ../..
  67. cp -v config/util/rman $root/bin/
  68. cp -v config/makedepend/makedepend $root/bin/
  69. }
  70. if [ $stagelevel -gt 0 ]; then
  71. custmain=x11base_main
  72. autoextract=0
  73. createdocs=0
  74. else
  75. custmain=x11base_stage0
  76. fi
  77. # don't put the modules in a :dev package
  78. splitreg 45 . '/lib/modules/'
  79. # this is fixes many cyclic dependencies..
  80. var_append flistrfilter "|" ".*mkhtmlindex.pl.*X11/doc/html.*"
  81. # auto-create missing *.a files
  82. autoso2a=1
  83. forcefpic=0