CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
keyutils: updated to 1.5.10
[ports/opt-arm.git] / firefox / Pkgfile
CommitLineData
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
77e20c75 5# Depends on: nss, unzip, autoconf-2.13, zip, libidl, gtk, gtk3, python, alsa-lib, xorg-libxt, yasm, mesa3d
60b0efeb
VM
6
7name=firefox
33a5b620 8version=51.0.1
80bee279 9release=2
d0332e1b 10source=(http://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.xz
c5082f81 11 firefox-install-dir.patch firefox.desktop)
8d236139 12
60b0efeb 13build() {
6e218fab 14 cd $name-$version
b28e1726 15
6e218fab 16 sed -i '/^ftfntfmt.h/ i freetype/ftfntfmt.h' config/system-headers
3f6fdb87
VM
17 # stupid workaround
18 sed -i '2,7d' js/src/configure
28adcc4f 19 patch -p1 -i $SRC/firefox-install-dir.patch
28adcc4f 20
c1fcc872
VM
21 cat <<- EOF > .mozconfig
22 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
23 mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS -s"
24 ac_add_options --prefix=/usr
3f6fdb87 25 ac_add_options --enable-default-toolkit=cairo-gtk3
28adcc4f 26 ac_add_options --with-system-jpeg
c1fcc872 27 ac_add_options --with-system-zlib
28adcc4f 28 ac_add_options --with-system-png
c1fcc872
VM
29 ac_add_options --with-system-nspr
30 ac_add_options --with-system-nss
80bee279 31 ac_add_options --with-system-cairo
c1fcc872
VM
32 ac_add_options --enable-system-ffi
33 ac_add_options --enable-system-pixman
34 ac_add_options --enable-system-sqlite
c1fcc872
VM
35 ac_add_options --with-pthreads
36 ac_add_options --enable-optimize="$CFLAGS"
37 ac_add_options --enable-official-branding
3f6fdb87 38 ac_add_options --with-distribution-id=nu.crux-arm
c1fcc872 39 ac_add_options --enable-extensions=default,-gnomevfs
c1fcc872 40 ac_add_options --disable-tests
c1fcc872
VM
41 ac_add_options --disable-dbus
42 ac_add_options --disable-debug
c1fcc872 43 ac_add_options --disable-updater
c1fcc872 44 ac_add_options --disable-gnomeui
c1fcc872
VM
45 ac_add_options --disable-crashreporter
46 ac_add_options --disable-necko-wifi
58ede934 47 ac_add_options --disable-pulseaudio
d0332e1b 48 ac_add_options --disable-gconf
c1fcc872 49EOF
60b0efeb 50
28adcc4f 51 sed "s|\['-march=armv7-a', '-mthumb', '-mfloat-abi=softfp', '-mfpu=neon'\]|\[\]|g" -i media/libvpx/moz.build
c1fcc872
VM
52 make -f client.mk build
53 make -f client.mk DESTDIR=$PKG install
28adcc4f 54
b28e1726 55 mkdir -p $PKG/usr/share/pixmaps
28adcc4f 56 ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png
b28e1726 57 install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
93ebab8b
VM
58 # Remove crap
59 rm $PKG/usr/lib/firefox/browser/features/{firefox@getpocket.com.xpi,webcompat@mozilla.org.xpi}
60
61 mkdir -p $PKG/etc/revdep.d
62 echo "/usr/lib/firefox" > $PKG/etc/revdep.d/firefox
60b0efeb 63}