OpenSDE Packages Database (without history before r20070)
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.

64 lines
1.8 KiB

  1. #!/bin/sh
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: package/.../firefox/firefox.conf
  6. # Copyright (C) 2006 The OpenSDE Project
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. # Copyright (C) 1998 - 2004 Clifford Wolf
  9. #
  10. # More information can be found in the files COPYING and README.
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; version 2 of the License. A copy of the
  15. # GNU General Public License can be found in the file COPYING.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. if [ $prefix_auto = 1 ] ; then
  18. prefix=$mozilla_prefix
  19. set_confopt
  20. fi
  21. firefox_config() {
  22. cat <<-EOT >> .mozconfig
  23. . \$topsrcdir/browser/config/mozconfig
  24. export MOZ_PHOENIX=1
  25. mk_add_options MOZ_PHOENIX=1
  26. ac_add_options --disable-mailnews
  27. ac_add_options --disable-composer
  28. ac_add_options --enable-extensions=default,cookie,permissions,xml-rpc,xmlextras,pref,transformiix,webservices,auth
  29. ac_add_options --enable-mathml
  30. ac_add_options --enable-crypto
  31. ac_add_options --enable-module=psm
  32. ac_add_options --disable-profilesharing
  33. EOT
  34. # checking for LDAP support
  35. if pkginstalled openldap ; then
  36. echo "ac_add_options --enable-ldap" >> .mozconfig
  37. else
  38. echo "ac_add_options --disable-ldap" >> .mozconfig
  39. fi
  40. if pkginstalled libsvg-cairo ; then
  41. cat <<-EOT >> .mozconfig
  42. ac_add_options --enable-svg
  43. ac_add_options --enable-svg-renderer=cairo
  44. EOT
  45. fi
  46. }
  47. hook_add preconf 4 "firefox_config"
  48. # this annoying javascript (tm) based whatever component registration
  49. hook_add postmake 6 "$root$bindir/firefox -register"
  50. # work around for version 2.0
  51. # Merged from T2
  52. var_append GCC_WRAPPER_INSERT ' ' "-c?:-L`pkgprefix libdir libx11` -lX11 -lXrender"