Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Firefox_esr: New revision
beehive URL
fix build error
disable firefox hardware acceleration
enable gfx, boost for X11 forwarding
  • Loading branch information
david committed Sep 23, 2021
1 parent 405ac07 commit 59d0616
Showing 1 changed file with 45 additions and 48 deletions.
93 changes: 45 additions & 48 deletions 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 <<EOF
ac_add_options --prefix=/usr/local
ac_add_options --enable-application=browser
ac_add_options --disable-necko-wifi
ac_add_options --enable-official-branding
ac_add_options --enable-system-pixman
ac_add_options --without-system-icu
ac_add_options --without-system-nspr
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
mk_add_options MOZ_MAKE_FLAGS="${BEE_MAKEFLAGS}"
mk_add_options MOZ_OBJDIR=$B
unset MOZ_TELEMETRY_REPORTING
EOF
# ac_add_options --disable-elf-hack
export MOZBUILD_STATE_PATH=${B}/mozbuild
export CARGO_HOME=$B/.cargo
export MACH_USE_SYSTEM_PYTHON=1
. /usr/local/package/lib/node.profile
. /pkg/rustc-1.50.0-0/profile

cat > ${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 <<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
cat >${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() {
Expand Down Expand Up @@ -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
}

0 comments on commit 59d0616

Please sign in to comment.