1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/firefox/firefox.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 export MACH_USE_SYSTEM_PYTHON=1
14 export HOME=$sysroot/root
16 if [ $prefix_auto = 1 ]; then
17 prefix=$mozilla_prefix
25 hook_add inmake 5 "./mach build"
26 hook_add postmake 5 "./mach install"
28 var_remove GCC_WRAPPER_APPEND ' ' '-s'
31 cat <<-EOT >> .mozconfig
32 . \$topsrcdir/browser/config/mozconfig
34 mk_add_options MOZ_PHOENIX=1
35 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir
37 ac_add_options --enable-extensions=default # ,webservices
38 #ac_add_options --enable-mathml
39 #ac_add_options --enable-crypto
40 #ac_add_options --enable-module=psm
41 ac_add_options --enable-default-toolkit=cairo-gtk3
42 ac_add_options --without-system-png
43 #ac_add_options --disable-profilesharing
44 ac_add_options --enable-official-branding
45 ac_add_options --without-system-jpeg
46 ac_add_options --with-system-zlib
47 #ac_add_options --with-system-bz2
48 #ac_add_options --enable-system-sqlite
49 ac_add_options --enable-system-ffi
50 ac_add_options --enable-system-pixman
51 #ac_add_options --with-pthreads
52 #ac_add_options --enable-gio
53 #ac_add_options --disable-gnomevfs
54 ac_add_options --disable-crashreporter
55 ac_add_options --disable-updater
56 ac_add_options --disable-tests
57 #ac_add_options --disable-installer
58 ac_add_options --disable-webrtc
59 #ac_add_options --disable-cargo-incremental
60 ac_add_options --enable-strip
61 ac_add_options --without-wasm-sandboxed-libraries
64 #pkginstalled icu4c && echo "ac_add_options --with-system-icu" >> .mozconfig
65 pkginstalled pulseaudio || echo "ac_add_options --disable-pulseaudio" >> .mozconfig
66 pkginstalled alsa-lib && echo "ac_add_options --enable-alsa" >> .mozconfig
67 var_append GCC_WRAPPER_APPEND " " "`pkg-config glib-2.0 --cflags`" # FF 84.0, TODO: remove again!
68 var_append GCC_WRAPPER_APPEND ' ' "`pkg-config x11 --cflags --libs-only-L`"
70 [ "$SDECFG_LTO" = 1 ] && case "$arch" in
72 *) echo "ac_add_options --enable-lto" >> .mozconfig ;;
77 #echo "ac_add_options --disable-elf-hack" >> .mozconfig
80 var_append CXX_WRAPPER_INSERT ' ' "-fpermissive"
81 var_remove GCC_WRAPPER_REMOVE " " "-march*" ;;
83 echo "ac_add_options --disable-jit #--disable-sandbox" >> .mozconfig ;;
87 hook_add preconf 4 "firefox_config"
88 hook_add preconf 2 "mozilla_branding"
90 # disable legacy component registration