2011-03-22 01:19:59 +01:00
|
|
|
# Description: The Mozilla Firefox browser
|
2017-04-19 18:36:59 +02:00
|
|
|
# URL: https://www.mozilla.com/firefox/
|
2010-05-13 23:34:28 +02:00
|
|
|
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
|
2016-06-07 17:44:10 +02:00
|
|
|
# Depends on: nss, autoconf-2.13, unzip, zip, libidl, gtk, gtk3, python, alsa-lib, xorg-libxt, yasm, mesa3d
|
2014-02-04 17:58:31 +01:00
|
|
|
|
2006-02-23 18:10:28 +01:00
|
|
|
name=firefox
|
2017-09-28 23:02:05 +02:00
|
|
|
version=52.4.0esr
|
2015-10-19 21:06:25 +02:00
|
|
|
release=1
|
2017-04-19 18:36:59 +02:00
|
|
|
source=(https://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.xz
|
2016-08-02 19:08:15 +02:00
|
|
|
firefox-install-dir.patch firefox.desktop)
|
2014-02-04 17:58:31 +01:00
|
|
|
|
2006-02-23 18:10:28 +01:00
|
|
|
build() {
|
2016-08-02 19:08:15 +02:00
|
|
|
cd firefox-$version
|
2016-06-07 17:44:10 +02:00
|
|
|
|
2016-08-02 19:08:15 +02:00
|
|
|
sed -i '/^ftfntfmt.h/ i freetype/ftfntfmt.h' config/system-headers
|
|
|
|
# stupid workaround
|
|
|
|
sed -i '2,7d' js/src/configure
|
|
|
|
patch -p1 -i $SRC/firefox-install-dir.patch
|
2017-01-23 23:26:07 +01:00
|
|
|
|
2014-02-04 17:58:31 +01:00
|
|
|
cat <<- EOF > .mozconfig
|
2016-08-02 19:08:15 +02:00
|
|
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
|
|
|
|
mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS -s"
|
|
|
|
ac_add_options --prefix=/usr
|
|
|
|
ac_add_options --enable-default-toolkit=cairo-gtk3
|
|
|
|
ac_add_options --with-system-jpeg
|
|
|
|
ac_add_options --with-system-zlib
|
|
|
|
ac_add_options --with-system-png
|
|
|
|
ac_add_options --with-system-nspr
|
|
|
|
ac_add_options --with-system-nss
|
2016-09-21 19:10:20 +02:00
|
|
|
ac_add_options --with-system-cairo
|
2016-08-02 19:08:15 +02:00
|
|
|
ac_add_options --enable-system-ffi
|
|
|
|
ac_add_options --enable-system-pixman
|
|
|
|
ac_add_options --enable-system-sqlite
|
2017-03-06 23:48:22 +01:00
|
|
|
ac_add_options --enable-alsa
|
2016-08-02 19:08:15 +02:00
|
|
|
ac_add_options --with-pthreads
|
|
|
|
ac_add_options --enable-official-branding
|
|
|
|
ac_add_options --with-distribution-id=nu.crux
|
|
|
|
ac_add_options --enable-extensions=default,-gnomevfs
|
|
|
|
ac_add_options --disable-tests
|
|
|
|
ac_add_options --disable-dbus
|
|
|
|
ac_add_options --disable-debug
|
|
|
|
ac_add_options --disable-updater
|
|
|
|
ac_add_options --disable-gnomeui
|
|
|
|
ac_add_options --disable-crashreporter
|
|
|
|
ac_add_options --disable-necko-wifi
|
|
|
|
ac_add_options --disable-pulseaudio
|
|
|
|
ac_add_options --disable-gconf
|
2017-04-19 18:36:59 +02:00
|
|
|
ac_add_options --disable-rust
|
2013-12-10 18:07:37 +01:00
|
|
|
EOF
|
2011-03-22 01:19:59 +01:00
|
|
|
|
2016-08-02 19:08:15 +02:00
|
|
|
make -f client.mk build
|
|
|
|
make -f client.mk DESTDIR=$PKG install
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/share/pixmaps
|
|
|
|
ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png
|
|
|
|
install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
|
2016-09-21 19:10:20 +02:00
|
|
|
# Remove crap
|
|
|
|
rm $PKG/usr/lib/firefox/browser/features/{firefox@getpocket.com.xpi,webcompat@mozilla.org.xpi}
|
|
|
|
|
|
|
|
mkdir -p $PKG/etc/revdep.d
|
|
|
|
echo "/usr/lib/firefox" > $PKG/etc/revdep.d/firefox
|
2006-02-23 18:10:28 +01:00
|
|
|
}
|