# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/thunderbird/thunderbird.conf # Copyright (C) 2004 - 2023 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # 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 version 2. # --- T2-COPYRIGHT-NOTE-END --- export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system export HOME=$sysroot/root if [ $prefix_auto = 1 ]; then prefix=$mozilla_prefix set_confopt fi runconf=0 autogen=0 runpipinstall=0 makeopt= makeinstopt= hook_add inmake 5 "./mach build" hook_add postmake 5 "./mach install" thunderbird_config() { cat <<-EOT >> .mozconfig export MOZ_PHOENIX=1 mk_add_options MOZ_PHOENIX=1 mk_add_options MOZ_OBJDIR=$PWD/objdir ac_add_options --enable-application=comm/mail 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 --disable-ldap ac_add_options --without-wasm-sandboxed-libraries EOT #if pkginstalled gstreamer; then echo "ac_add_options --enable-gstreamer=1.0" >> .mozconfig #else echo "ac_add_options --disable-gstreamer" >> .mozconfig #fi pkginstalled libjpeg-turbo && echo "ac_add_options --with-system-jpeg" >> .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! var_append GCC_WRAPPER_APPEND ' ' "`pkg-config x11 --cflags --libs-only-L`" } # disable legacy component registration mozilla_register() { : } hook_add prepatch 2 "cargo_clear_cksum third_party/rust/*/.cargo-checksum.json" hook_add prepatch 4 'thunderbird_config'