CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
firefox: updated to 15.0.1
[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
9607c86f 5# Depends on: nss, libidl, gtk, python, alsa-lib, yasm, mesa3d
60b0efeb
VM
6
7name=firefox
9607c86f 8version=15.0.1
60b0efeb 9release=1
9607c86f 10source=(ftp://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.bz2
60b0efeb 11 mozconfig)
9607c86f 12
60b0efeb
VM
13build() {
14 export MOZ_CO_PROJECT=browser
15 export BUILD_OFFICIAL=1
16 export MOZILLA_OFFICIAL=1
17 export MOZILLA_FIVE_HOME=/usr/lib/firefox
60b0efeb
VM
18
19 cd mozilla-release
9607c86f
VM
20 # We avoid thumb instructions over CFLAGS
21 export CFLAGS="$(echo $CFLAGS | sed -e 's/\-mthumb//')"
22 export CXXFLAGS=$CFLAGS
60b0efeb 23 sed -e "s/#CFLAGS#/$CFLAGS/" $SRC/mozconfig > .mozconfig
60b0efeb
VM
24 ./configure --disable-elf-hack
25 make
26
27 install -d \
28 $PKG$MOZILLA_FIVE_HOME \
29 $PKG/usr/bin \
30 $PKG/usr/share/idl/firefox \
31 $PKG/usr/include/firefox
32
33 cp -rL dist/bin/* $PKG$MOZILLA_FIVE_HOME
34 ln -s /usr/lib/firefox/firefox $PKG/usr/bin/firefox
35
36 # devel stuff
37 cp -frL dist/idl/* $PKG/usr/share/idl/firefox/
38 cp -frL dist/include/* $PKG/usr/include/firefox/
39
40 install -d $PKG/etc/ld.so.conf.d
41 echo "/usr/lib/$name" > $PKG/etc/ld.so.conf.d/$name.conf
60b0efeb 42}