# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by scripts/Create-CopyPatch. # # T2 SDE: package/.../firefox/firefox.conf # Copyright (C) 2004 - 2020 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux Project # # 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. # --- T2-COPYRIGHT-NOTE-END --- export MACH_USE_SYSTEM_PYTHON=1 #export MOZBUILD_VIRTUALENV=0 export HOME=$sysroot/root if [ $prefix_auto = 1 ]; then prefix=$mozilla_prefix set_confopt fi runconf=0 autogen=0 makeopt= makeinstopt= hook_add inmake 5 "./mach build" hook_add postmake 5 "./mach install" var_remove GCC_WRAPPER_APPEND ' ' '-s' firefox_config() { cat <<-EOT >> .mozconfig . \$topsrcdir/browser/config/mozconfig export MOZ_PHOENIX=1 mk_add_options MOZ_PHOENIX=1 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir ac_add_options --enable-extensions=default # ,webservices #ac_add_options --enable-mathml #ac_add_options --enable-crypto #ac_add_options --enable-module=psm ac_add_options --enable-default-toolkit=cairo-gtk3 ac_add_options --without-system-png #ac_add_options --disable-profilesharing ac_add_options --enable-official-branding ac_add_options --without-system-jpeg ac_add_options --with-system-zlib #ac_add_options --with-system-bz2 #ac_add_options --enable-system-sqlite ac_add_options --enable-system-ffi ac_add_options --disable-system-cairo ac_add_options --enable-system-pixman #ac_add_options --with-pthreads #ac_add_options --enable-gio #ac_add_options --disable-gnomevfs ac_add_options --disable-crashreporter ac_add_options --disable-updater ac_add_options --disable-tests #ac_add_options --disable-installer ac_add_options --disable-webrtc #ac_add_options --disable-cargo-incremental ac_add_options --enable-strip EOT #[ "$SDECFG_LTO" = 1 ] && echo "ac_add_options --enable-lto" >> .mozconfig #pkginstalled icu4c && echo "ac_add_options --with-system-icu" >> .mozconfig pkginstalled pulseaudio || echo "ac_add_options --disable-pulseaudio" >> .mozconfig pkginstalled alsa-lib && echo "ac_add_options --enable-alsa" >> .mozconfig var_append GCC_WRAPPER_APPEND " " "`pkg-config glib-2.0 --cflags`" # FF 84.0, TODO: remove again! case $arch in x86|x86-64|arm) echo "ac_add_options --disable-elf-hack" >> .mozconfig ;; arm64) var_remove GCC_WRAPPER_REMOVE " " "-march*" ;; *) echo "ac_add_options --disable-jit #--disable-sandbox" >> .mozconfig ;; esac } hook_add preconf 4 "firefox_config" hook_add preconf 2 "mozilla_branding" # disable legacy component registration mozilla_register() { : }