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.

55 lines
1.7 KiB

  1. #!/bin/sh
  2. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # T2 SDE: package/.../seamonkey/seamonkey.conf
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2004 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  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; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. if [ $prefix_auto = 1 ] ; then
  17. prefix=$mozilla_prefix
  18. set_confopt
  19. fi
  20. mozilla_config() {
  21. cat >> .mozconfig <<-EOT
  22. ac_add_options --enable-application=suite
  23. ac_add_options --enable-calendar
  24. ac_add_options --with-extensions
  25. ac_add_options --enable-extensions=default,venkman,inspector
  26. ac_add_options --enable-jsd
  27. ac_add_options --enable-mathml
  28. ac_add_options --enable-module=psm
  29. EOT
  30. }
  31. mozilla_postinstall() {
  32. echo "Copy all mozilla include files" \
  33. "(required for building galeon, evolution, etc.) ..."
  34. cp -v xpcom/base/nscore.h $includedir/$pkg-$ver/xpcom/
  35. cp -v xpcom/glue/nsDebug.h $includedir/$pkg-$ver/xpcom/
  36. cp -rL dist/include/* $includedir/$pkg-$ver/
  37. cp -rL dist/public/* $includedir/$pkg-$ver/
  38. echo "Creating /etc/profile.d/$pkg ..."
  39. cat <<- EOT > $root/etc/profile.d/$pkg
  40. export MOZILLA_FIVE_HOME=$MOZILLA_FIVE_HOME
  41. EOT
  42. echo "Creating library symlinks ..."
  43. cd $libdir
  44. for i in ldap50 nspr4 nss3 plc4 plds4 prldap50 smime3 softokn3 ssl3 ; do
  45. ln -sf $libdir/$pkg-$ver/lib${i}.so $libdir/lib${i}.so
  46. done
  47. }
  48. hook_add preconf 8 'mozilla_config'
  49. hook_add postmake 8 'mozilla_postinstall'