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
2.9 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=/usr/lib/mozilla-$ver
  25. export MOZ_INTERNAL_LIBART_LGPL=1
  26. # replace the 00... build-id with s.th. useful
  27. sed "s,0000000000,ROCK Linux - $rockver," \
  28. xpfe/global/build.dtd.in > xpfe/global/build.dtd.in.new
  29. mv xpfe/global/build.dtd.in.new xpfe/global/build.dtd.in
  30. cp security/coreconf/Linux2.5.mk security/coreconf/Linux2.6.mk
  31. cat > .mozconfig <<-EOP
  32. # sh
  33. # Build configuration script
  34. # Options for client.mk.
  35. # mk_add_options MOZ_MAKE_FLAGS=-j4
  36. # Options for 'configure' (same as command-line options).
  37. ac_add_options --prefix=/usr
  38. ac_add_options --sysconfdir=/etc
  39. ac_add_options --localstatedir=/var
  40. ac_add_options --host=$arch_target
  41. ac_add_options --disable-debug
  42. ac_add_options --disable-dtd-debug
  43. ac_add_options --disable-pedantic
  44. ac_add_options --with-extensions
  45. ac_add_options --enable-extensions=default,venkman,inspector
  46. ac_add_options --enable-jsd
  47. ac_add_options --enable-mathml
  48. ac_add_options --enable-svg
  49. ac_add_options --enable-crypto
  50. ac_add_options --enable-module=psm
  51. ac_add_options --enable-xft
  52. ac_add_options --enable-default-toolkit=gtk2
  53. EOP
  54. eval $MAKE -f client.mk build ; eval $MAKE install
  55. echo "Copy all mozilla include files" \
  56. "(required for building galeon, evolution, etc.) ..."
  57. cp -v xpcom/base/nscore.h /usr/include/mozilla-$ver/xpcom/
  58. cp -v xpcom/glue/nsDebug.h /usr/include/mozilla-$ver/xpcom/
  59. cp -rL dist/include/* /usr/include/mozilla-$ver/
  60. cp -rL dist/public/* /usr/include/mozilla-$ver/
  61. echo "Run the component registration ..."
  62. cd $MOZILLA_FIVE_HOME
  63. LD_LIBRARY_PATH=. ./regxpcom
  64. LD_LIBRARY_PATH=. ./regchrome
  65. echo "Creating /etc/profile.d/mozilla ..."
  66. cat <<- EOT > /etc/profile.d/mozilla
  67. export MOZILLA_FIVE_HOME=/usr/lib/mozilla-$ver
  68. EOT
  69. echo "Creating /usr/lib/libnspr4.so symlink ..."
  70. cd /usr/lib ; ln -sf mozilla-$ver/libnspr4.so .
  71. }
  72. custmain="main_mozilla"
  73. #export CC="${CXX//++/cc}"
  74. #export CXX="$CXX -fpermissive -Wno-deprecated"