blob: 1209d10afc5f0a54482b8c5ebf90ffcf73d8ec35 (
plain)
1 # Description: The Mozilla Firefox browser
2 # URL: http://www.mozilla.com/firefox/
3 # Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
4 # Depends on: nss, libidl, gtk, python, alsa-lib, yasm, mesa3d
5
6 name=firefox
7 version=30.0
8 release=1
9 source=(ftp://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.bz2
10 firefox-install-dir.patch firefox.desktop)
11
12 build() {
13 cd mozilla-release
14
15 patch -p 1 -i $SRC/firefox-install-dir.patch
16
17 cat <<- EOF > .mozconfig
18 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
19 mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS -s"
20 ac_add_options --prefix=/usr
21 ac_add_options --with-system-jpeg
22 ac_add_options --with-system-zlib
23 ac_add_options --with-system-mng
24 ac_add_options --with-system-png
25 ac_add_options --with-system-nspr
26 ac_add_options --with-system-nss
27 ac_add_options --enable-system-ffi
28 ac_add_options --enable-system-pixman
29 ac_add_options --enable-system-sqlite
30 ac_add_options --enable-system-cairo
31 ac_add_options --with-pthreads
32 ac_add_options --enable-optimize="$CFLAGS -mno-avx"
33 ac_add_options --enable-official-branding
34 ac_add_options --enable-extensions=default,-gnomevfs
35 ac_add_options --enable-shared
36 ac_add_options --enable-svg
37 ac_add_options --enable-canvas
38 ac_add_options --enable-crypto
39 ac_add_options --enable-single-profile
40 ac_add_options --enable-places
41 ac_add_options --enable-storage
42 ac_add_options --enable-places_bookmarks
43 ac_add_options --enable-image-encoder=all
44 ac_add_options --enable-xft
45 ac_add_options --disable-static
46 ac_add_options --disable-tests
47 ac_add_options --disable-mochitest
48 ac_add_options --disable-dbus
49 ac_add_options --disable-debug
50 ac_add_options --disable-installer
51 ac_add_options --disable-updater
52 ac_add_options --disable-xprint
53 ac_add_options --disable-profilesharing
54 ac_add_options --disable-gnomevfs
55 ac_add_options --disable-gnomeui
56 ac_add_options --disable-mailnews
57 ac_add_options --disable-crashreporter
58 ac_add_options --disable-necko-wifi
59 ac_add_options --disable-libnotify
60 ac_add_options --disable-gstreamer
61 ac_add_options --disable-pulseaudio
62 EOF
63
64 make -f client.mk build
65 make -f client.mk DESTDIR=$PKG install
66
67 install -d $PKG/etc/ld.so.conf.d
68 echo "/usr/lib/firefox" > $PKG/etc/ld.so.conf.d/$name.conf
69
70 mkdir -p $PKG/usr/share/pixmaps
71 ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png
72 install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
73 }
|