Commit | Line | Data |
---|---|---|
60b0efeb VM |
1 | # Description: The Mozilla Firefox browser |
2 | # URL: http://www.mozilla.com/firefox/ | |
3 | # Maintainer: Fredrik Rinnestam, fredrik at crux dot nu | |
4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu | |
8d236139 | 5 | # Depends on: nss, libidl, gtk, python, alsa-lib, yasm, mesa3d |
60b0efeb VM |
6 | |
7 | name=firefox | |
2d19196a | 8 | version=38.0.5 |
49402045 | 9 | release=2 |
8d236139 | 10 | source=(ftp://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.bz2 |
28adcc4f | 11 | firefox-install-dir.patch 0001-Fix-build-with-USE_SKIA_GPU.patch firefox.desktop) |
8d236139 | 12 | |
60b0efeb | 13 | build() { |
60b0efeb | 14 | cd mozilla-release |
b28e1726 | 15 | |
28adcc4f VM |
16 | patch -p1 -i $SRC/firefox-install-dir.patch |
17 | patch -p1 -i $SRC/0001-Fix-build-with-USE_SKIA_GPU.patch | |
18 | ||
c1fcc872 VM |
19 | cat <<- EOF > .mozconfig |
20 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared | |
21 | mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS -s" | |
22 | ac_add_options --prefix=/usr | |
28adcc4f | 23 | ac_add_options --with-system-jpeg |
c1fcc872 VM |
24 | ac_add_options --with-system-zlib |
25 | ac_add_options --with-system-mng | |
28adcc4f | 26 | ac_add_options --with-system-png |
c1fcc872 VM |
27 | ac_add_options --with-system-nspr |
28 | ac_add_options --with-system-nss | |
29 | ac_add_options --enable-system-ffi | |
30 | ac_add_options --enable-system-pixman | |
31 | ac_add_options --enable-system-sqlite | |
32 | ac_add_options --enable-system-cairo | |
33 | ac_add_options --with-pthreads | |
34 | ac_add_options --enable-optimize="$CFLAGS" | |
35 | ac_add_options --enable-official-branding | |
36 | ac_add_options --enable-extensions=default,-gnomevfs | |
37 | ac_add_options --enable-shared | |
38 | ac_add_options --enable-svg | |
39 | ac_add_options --enable-canvas | |
40 | ac_add_options --enable-crypto | |
41 | ac_add_options --enable-single-profile | |
42 | ac_add_options --enable-places | |
43 | ac_add_options --enable-storage | |
44 | ac_add_options --enable-places_bookmarks | |
45 | ac_add_options --enable-image-encoder=all | |
46 | ac_add_options --enable-xft | |
49402045 | 47 | ac_add_options --enable-tree-freetype |
c1fcc872 VM |
48 | ac_add_options --disable-static |
49 | ac_add_options --disable-tests | |
50 | ac_add_options --disable-mochitest | |
51 | ac_add_options --disable-dbus | |
52 | ac_add_options --disable-debug | |
53 | ac_add_options --disable-installer | |
54 | ac_add_options --disable-updater | |
55 | ac_add_options --disable-xprint | |
56 | ac_add_options --disable-profilesharing | |
57 | ac_add_options --disable-gnomevfs | |
58 | ac_add_options --disable-gnomeui | |
59 | ac_add_options --disable-mailnews | |
60 | ac_add_options --disable-crashreporter | |
61 | ac_add_options --disable-necko-wifi | |
62 | ac_add_options --disable-libnotify | |
63 | ac_add_options --disable-gstreamer | |
58ede934 | 64 | ac_add_options --disable-pulseaudio |
c1fcc872 | 65 | EOF |
60b0efeb | 66 | |
28adcc4f | 67 | sed "s|\['-march=armv7-a', '-mthumb', '-mfloat-abi=softfp', '-mfpu=neon'\]|\[\]|g" -i media/libvpx/moz.build |
c1fcc872 VM |
68 | make -f client.mk build |
69 | make -f client.mk DESTDIR=$PKG install | |
28adcc4f | 70 | |
b28e1726 | 71 | mkdir -p $PKG/usr/share/pixmaps |
28adcc4f | 72 | ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png |
b28e1726 | 73 | install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop |
60b0efeb | 74 | } |