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.

90 lines
3.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/mozilla/mozilla.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2003 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. main_mozilla() {
  23. export MOZILLA_OFFICIAL=1 BUILD_OFFICIAL=1
  24. export MOZILLA_FIVE_HOME=$root/usr/lib/mozilla-$ver
  25. # replace the 00... build-id with s.th. useful
  26. sed "s,0000000000,ROCK Linux - $rockver," \
  27. xpfe/global/build.dtd.in > xpfe/global/build.dtd.in.new
  28. mv xpfe/global/build.dtd.in.new xpfe/global/build.dtd.in
  29. cp security/coreconf/Linux2.5.mk security/coreconf/Linux2.6.mk
  30. cat > .mozconfig <<-EOP
  31. # sh
  32. # Build configuration script
  33. # Options for client.mk.
  34. # mk_add_options MOZ_MAKE_FLAGS=-j4
  35. # Options for 'configure' (same as command-line options).
  36. ac_add_options --prefix=$root/usr
  37. ac_add_options --sysconfdir=$root/etc
  38. ac_add_options --localstatedir=$root/var
  39. ac_add_options --host=$arch_target
  40. ac_add_options --disable-debug
  41. ac_add_options --disable-dtd-debug
  42. ac_add_options --disable-tests
  43. ac_add_options --disable-pedantic
  44. ac_add_options --enable-calendar
  45. ac_add_options --with-extensions
  46. ac_add_options --enable-extensions=default,venkman,inspector
  47. ac_add_options --enable-jsd
  48. ac_add_options --enable-mathml
  49. #ac_add_options --enable-svg
  50. ac_add_options --enable-crypto
  51. ac_add_options --enable-module=psm
  52. ac_add_options --enable-xft
  53. ac_add_options --enable-default-toolkit=gtk2
  54. EOP
  55. eval $MAKE -f client.mk build ; eval $MAKE install
  56. echo "Copy all mozilla include files" \
  57. "(required for building galeon, evolution, etc.) ..."
  58. cp -v xpcom/base/nscore.h $root/usr/include/mozilla-$ver/xpcom/
  59. cp -v xpcom/glue/nsDebug.h $root/usr/include/mozilla-$ver/xpcom/
  60. cp -rL dist/include/* $root/usr/include/mozilla-$ver/
  61. cp -rL dist/public/* $root/usr/include/mozilla-$ver/
  62. echo "Run the component registration ..."
  63. cd $MOZILLA_FIVE_HOME
  64. LD_LIBRARY_PATH=. ./regxpcom
  65. LD_LIBRARY_PATH=. ./regchrome
  66. echo "Creating /etc/profile.d/mozilla ..."
  67. cat <<- EOT > $root/etc/profile.d/mozilla
  68. export MOZILLA_FIVE_HOME=$root/usr/lib/mozilla-$ver
  69. EOT
  70. echo "Creating /usr/lib/libnspr4.so symlink ..."
  71. cd $root/usr/lib ; ln -sf mozilla-$ver/libnspr4.so .
  72. }
  73. # from time to time the tarball does include .CVS directories, and a cleanup
  74. # in this fat directory is a bit expensive, and the files should not make
  75. # and problem ...
  76. nocvsinsrcdir=0
  77. custmain="main_mozilla"