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.

89 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. cat > .mozconfig <<-EOP
  28. # sh
  29. # Build configuration script
  30. # Options for client.mk.
  31. # mk_add_options MOZ_MAKE_FLAGS=-j4
  32. # Options for 'configure' (same as command-line options).
  33. ac_add_options --prefix=$root/usr
  34. ac_add_options --sysconfdir=$root/etc
  35. ac_add_options --localstatedir=$root/var
  36. ac_add_options --host=$arch_target
  37. ac_add_options --disable-debug
  38. ac_add_options --disable-dtd-debug
  39. ac_add_options --disable-tests
  40. ac_add_options --disable-pedantic
  41. ac_add_options --enable-calendar
  42. ac_add_options --with-extensions
  43. ac_add_options --enable-extensions=default,venkman,inspector
  44. ac_add_options --enable-jsd
  45. ac_add_options --enable-mathml
  46. #ac_add_options --enable-svg
  47. ac_add_options --enable-crypto
  48. ac_add_options --enable-module=psm
  49. ac_add_options --enable-xft
  50. ac_add_options --enable-default-toolkit=gtk2
  51. EOP
  52. eval $MAKE -f client.mk build ; eval $MAKE install
  53. echo "Copy all mozilla include files" \
  54. "(required for building galeon, evolution, etc.) ..."
  55. cp -v xpcom/base/nscore.h $root/usr/include/mozilla-$ver/xpcom/
  56. cp -v xpcom/glue/nsDebug.h $root/usr/include/mozilla-$ver/xpcom/
  57. cp -rL dist/include/* $root/usr/include/mozilla-$ver/
  58. cp -rL dist/public/* $root/usr/include/mozilla-$ver/
  59. echo "Run the component registration ..."
  60. cd $MOZILLA_FIVE_HOME
  61. LD_LIBRARY_PATH=. ./regxpcom
  62. LD_LIBRARY_PATH=. ./regchrome
  63. echo "Creating /etc/profile.d/mozilla ..."
  64. cat <<- EOT > $root/etc/profile.d/mozilla
  65. export MOZILLA_FIVE_HOME=$root/usr/lib/mozilla-$ver
  66. EOT
  67. echo "Creating library symlinks ..."
  68. cd $root/usr/lib ;
  69. for i in ldap50 nspr4 nss3 plc4 plds4 prldap50 smime3 softokn3 ssl3; do
  70. ln -sf $root/usr/lib/mozilla-$ver/lib${i}.so $root/usr/lib/lib${i}.so
  71. done
  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"