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.

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