2011-03-22 01:19:59 +01:00
|
|
|
# Description: The Mozilla Firefox browser
|
2006-02-23 17:10:28 +00:00
|
|
|
# URL: http://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 17:10:28 +00:00
|
|
|
name=firefox
|
2016-06-07 17:44:10 +02:00
|
|
|
version=47.0
|
2015-10-19 21:06:25 +02:00
|
|
|
release=1
|
2015-09-22 22:26:41 +02:00
|
|
|
source=(http://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.xz
|
2016-06-07 17:44:10 +02:00
|
|
|
firefox-install-dir.patch gcc6-fix-compilation.patch firefox.desktop)
|
2014-02-04 17:58:31 +01:00
|
|
|
|
2006-02-23 17:10:28 +00:00
|
|
|
build() {
|
2016-06-07 17:44:10 +02:00
|
|
|
cd firefox-$version
|
2015-10-19 21:06:25 +02:00
|
|
|
|
2016-06-07 17:44:10 +02:00
|
|
|
# It's all broken:
|
|
|
|
#export CFLAGS="-Os -pipe -fomit-frame-pointer"
|
|
|
|
#export CXXFLAGS="-Os -pipe -fomit-frame-pointer"
|
|
|
|
|
2015-10-18 20:43:47 +02:00
|
|
|
sed -i '/^ftfntfmt.h/ i freetype/ftfntfmt.h' config/system-headers
|
2016-06-07 17:44:10 +02:00
|
|
|
# stupid workaround
|
|
|
|
sed -i '2,7d' js/src/configure
|
2015-02-24 20:57:32 +01:00
|
|
|
patch -p1 -i $SRC/firefox-install-dir.patch
|
2016-06-07 17:44:10 +02:00
|
|
|
patch -p1 -i $SRC/gcc6-fix-compilation.patch
|
2015-03-31 21:55:41 +02:00
|
|
|
|
2014-02-04 17:58:31 +01:00
|
|
|
cat <<- EOF > .mozconfig
|
2013-12-10 18:07:37 +01:00
|
|
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
|
|
|
|
mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS -s"
|
|
|
|
ac_add_options --prefix=/usr
|
2015-10-24 22:07:40 +02:00
|
|
|
ac_add_options --enable-default-toolkit=cairo-gtk3
|
2014-02-15 23:37:37 +01:00
|
|
|
ac_add_options --with-system-jpeg
|
2013-12-10 18:07:37 +01:00
|
|
|
ac_add_options --with-system-zlib
|
|
|
|
ac_add_options --with-system-mng
|
2014-02-15 22:34:55 +01:00
|
|
|
ac_add_options --with-system-png
|
2013-12-10 18:07:37 +01:00
|
|
|
ac_add_options --with-system-nspr
|
|
|
|
ac_add_options --with-system-nss
|
|
|
|
ac_add_options --enable-system-ffi
|
|
|
|
ac_add_options --enable-system-pixman
|
|
|
|
ac_add_options --enable-system-sqlite
|
2016-06-07 17:44:10 +02:00
|
|
|
# Disable the use of system upstream cairo for now since it's all broken.
|
2015-08-18 19:12:30 +02:00
|
|
|
#ac_add_options --enable-system-cairo
|
2013-12-10 18:07:37 +01:00
|
|
|
ac_add_options --with-pthreads
|
2016-06-07 17:44:10 +02:00
|
|
|
#ac_add_options --enable-optimize="$CFLAGS"
|
2013-12-10 18:07:37 +01:00
|
|
|
ac_add_options --enable-official-branding
|
2015-07-20 17:30:32 +02:00
|
|
|
ac_add_options --with-distribution-id=nu.crux
|
2013-12-10 18:07:37 +01:00
|
|
|
ac_add_options --enable-extensions=default,-gnomevfs
|
|
|
|
ac_add_options --enable-shared
|
|
|
|
ac_add_options --enable-svg
|
|
|
|
ac_add_options --enable-crypto
|
2016-03-08 22:05:29 +01:00
|
|
|
ac_add_options --enable-elf-hack
|
2016-01-26 18:54:40 +01:00
|
|
|
ac_add_options --disable-gstreamer
|
2013-12-10 18:07:37 +01:00
|
|
|
ac_add_options --disable-tests
|
|
|
|
ac_add_options --disable-mochitest
|
|
|
|
ac_add_options --disable-dbus
|
|
|
|
ac_add_options --disable-debug
|
|
|
|
ac_add_options --disable-installer
|
|
|
|
ac_add_options --disable-updater
|
|
|
|
ac_add_options --disable-xprint
|
|
|
|
ac_add_options --disable-profilesharing
|
|
|
|
ac_add_options --disable-gnomevfs
|
|
|
|
ac_add_options --disable-gnomeui
|
|
|
|
ac_add_options --disable-mailnews
|
|
|
|
ac_add_options --disable-crashreporter
|
|
|
|
ac_add_options --disable-necko-wifi
|
|
|
|
ac_add_options --disable-libnotify
|
2014-03-19 13:22:23 +01:00
|
|
|
ac_add_options --disable-pulseaudio
|
2015-09-22 22:26:41 +02:00
|
|
|
ac_add_options --disable-gconf
|
2013-12-10 18:07:37 +01:00
|
|
|
EOF
|
2011-03-22 01:19:59 +01:00
|
|
|
|
2014-02-04 17:58:31 +01:00
|
|
|
make -f client.mk build
|
|
|
|
make -f client.mk DESTDIR=$PKG install
|
|
|
|
|
2013-06-25 18:18:06 +02:00
|
|
|
mkdir -p $PKG/usr/share/pixmaps
|
2014-02-09 21:04:57 +01:00
|
|
|
ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png
|
2013-06-25 18:18:06 +02:00
|
|
|
install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
|
2006-02-23 17:10:28 +00:00
|
|
|
}
|