diff --git a/firefox_esr.be0 b/firefox_esr.be0 index 405e080f0..5ac301ee2 100755 --- a/firefox_esr.be0 +++ b/firefox_esr.be0 @@ -1,74 +1,64 @@ #!/bin/env beesh -# BEE_VERSION firefox_esr-91.1.0-0 +# BEE_VERSION firefox_esr-78.9.0-2 -# https://www.linuxfromscratch.org/blfs/view/svn/xsoft/firefox.html +#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80' #SRCURL[0]="https://ftp.mozilla.org/pub/firefox/releases/${PKGVERSION}${PKGEXTRANAME}/source/firefox-${PKGVERSION}${PKGEXTRANAME}.source.tar.xz" -SRCURL[0]="https://beehive.molgen.mpg.de/61350e551a90d199ca4a1f93e69092ee/firefox-91.1.0esr.source.tar.xz" -# PATCHURL+=('https://www.linuxfromscratch.org/patches/blfs/svn/firefox-91.1.0esr-disable_rust_test-1.patch') -PATCHURL+=("https://beehive.molgen.mpg.de/5a35bd2578dc20e1d9b9152a96c5ef1c/firefox-91.1.0esr-disable_rust_test-1.patch") +SRCURL[0]="https://beehive.molgen.mpg.de/10529ea05d2a1b46eb239330a3ae5471/firefox-78.9.0esr.source.tar.xz" mee_configure() { - - . /pkg/node-14.17.1-0/profile - . /pkg/rustc-1.52.1-0/profile - - cat > ${S}/mozconfig < ${S}/mozconfig <<-EOF + ac_add_options --enable-application=browser + ac_add_options --disable-necko-wifi + ac_add_options --enable-official-branding + ac_add_options --without-system-icu + ac_add_options --without-system-nspr + ac_add_options --disable-elf-hack + ac_add_options --disable-updater + ac_add_options --disable-crashreporter + ac_add_options --disable-tests + ac_add_options --enable-optimize + mk_add_options MOZ_MAKE_FLAGS="${BEE_MAKEFLAGS}" + mk_add_options MOZ_OBJDIR=$B + unset MOZ_TELEMETRY_REPORTING + EOF ${S}/mach configure } mee_build() { - export MOZBUILD_STATE_PATH=${B}/mozbuild export CARGO_HOME=$B/.cargo - export MACH_USE_SYSTEM_PYTHON=1 - sh -vx ${S}/mach build --verbose + export CC=gcc CXX=g++ + export MOZBUILD_STATE_PATH=${B}/mozbuild + ${S}/mach build } mee_build_post() { # create menu entry - cat >${B}/firefoxesr.desktop <${B}/firefoxesr.desktop <<-EOF + [Desktop Entry] + Version=1.0 + Name=Firefox-ESR-${PKGVERSION[1]} + GenericName=Web Browser + Comment=Surf the World Wide Web + Exec=firefoxesr${PKGVERSION[1]} -ProfileManager %u + Icon=firefox + Terminal=false + Type=Application + StartupNotify=true + Categories=Network;WebBrowser; + EOF } mee_install() { - MACH_USE_SYSTEM_PYTHON=1 \ - DESTDIR=$D \ - ${S}/mach install + DESTDIR=$D ${S}/mach install } mee_install_post() { @@ -274,5 +264,12 @@ defaultPref("extensions.legacy.enabled",true); //disable firefox refresh request defaultPref("browser.disableResetPrompt",true); + +//disable firefox hardware acceleration +defaultPref("layers.acceleration.disabled",true); + +//enable gfx, boost for X11 forwarding +defaultPref("gfx.xrender.enabled",true); + EOF }