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

#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../firefox/firefox.conf
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2004 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
if [ $prefix_auto = 1 ] ; then
prefix=$mozilla_prefix
set_confopt
fi
firefox_config() {
cat <<-EOT >> .mozconfig
. \$topsrcdir/browser/config/mozconfig
export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --enable-extensions=default,cookie,permissions,xml-rpc,xmlextras,pref,transformiix,webservices,auth
ac_add_options --enable-mathml
ac_add_options --enable-crypto
ac_add_options --enable-module=psm
ac_add_options --disable-profilesharing
EOT
# checking for LDAP support
if pkginstalled openldap ; then
echo "ac_add_options --enable-ldap" >> .mozconfig
else
echo "ac_add_options --disable-ldap" >> .mozconfig
fi
if pkginstalled libsvg-cairo ; then
cat <<-EOT >> .mozconfig
ac_add_options --enable-svg
ac_add_options --enable-svg-renderer=cairo
EOT
fi
}
hook_add preconf 4 "firefox_config"
# this annoying javascript (tm) based whatever component registration
hook_add postmake 6 "$root$bindir/firefox -register"
# work around for version 2.0
# Merged from T2
var_append GCC_WRAPPER_INSERT ' ' "-c?:-L`pkgprefix libdir libx11` -lX11 -lXrender"