1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/seamonkey/seamonkey.conf
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # Copyright (C) 1998 - 2004 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 if [ $prefix_auto = 1 ]; then
17 prefix=$mozilla_prefix
21 var_insert makeinstopt ' ' '-f client.mk INSTALL_SDK='
26 cat >> .mozconfig <<-EOT
27 mk_add_options MOZ_OBJDIR=$PWD/objdir
29 ac_add_options --enable-application=suite
30 ac_add_options --with-extensions
31 ac_add_options --enable-extensions=default,inspector
32 ac_add_options --enable-jsd
33 ac_add_options --enable-mathml
34 ac_add_options --enable-module=psm
35 ac_add_options --enable-default-toolkit=cairo-gtk2
36 ac_add_options --without-system-jpeg
37 ac_add_options --without-system-png
38 #ac_add_options --disable-ldap
41 if pkginstalled gstreamer; then
42 echo "ac_add_options --enable-gstreamer=1.0" >> .mozconfig
44 echo "ac_add_options --disable-gstreamer" >> .mozconfig
47 pkginstalled icu4c && echo "ac_add_options --with-system-icu" >> .mozconfig
51 mozilla_postinstall() {
52 echo "Copy all mozilla include files" \
53 "(required for building galeon, evolution, etc.) ..."
54 mkdir -p $includedir/$pkg-$ver/xpcom
55 cp -v mozilla/xpcom/base/nscore.h $includedir/$pkg-$ver/xpcom/
56 cp -v mozilla/xpcom/glue/nsDebug.h $includedir/$pkg-$ver/xpcom/
57 cp -rL mozilla/dist/include/* $includedir/$pkg-$ver/
58 cp -rL mozilla/dist/public/* $includedir/$pkg-$ver/
60 echo "Creating /etc/profile.d/$pkg ..."
61 cat <<- EOT > $root/etc/profile.d/$pkg
62 export MOZILLA_FIVE_HOME=$MOZILLA_FIVE_HOME
65 echo "Creating library symlinks ..."
67 for i in ldap50 nspr4 nss3 plc4 plds4 prldap50 smime3 softokn3 ssl3; do
68 ln -sf $libdir/$pkg-$ver/lib${i}.so $libdir/lib${i}.so
72 hook_add preconf 4 'mozilla_config'
73 #hook_add postmake 8 'mozilla_postinstall'