CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 475 -
(show annotations)
Sun Oct 4 15:03:44 2009 UTC (3 years, 7 months ago) by cjg
File size: 1009 byte(s)
Sun Oct 4 15:03:44 2009 UTC (3 years, 7 months ago) by cjg
File size: 1009 byte(s)
xulrunner: added .footprint.powerpc
| 1 | # Description: Mozilla Web Browser Component |
| 2 | # URL: http://www.mozilla.com/firefox/ |
| 3 | # Maintainer: Tilman Sauerbeck, tilman at crux dot nu |
| 4 | # Depends on: libidl, nss, gtk, perl, python, dbus-glib |
| 5 | # PPC!= |
| 6 | |
| 7 | name=xulrunner |
| 8 | version=1.9.0.6 |
| 9 | release=1 |
| 10 | source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0.6/source/firefox-3.0.6-source.tar.bz2 |
| 11 | mozconfig $name.diff) |
| 12 | |
| 13 | build() { |
| 14 | export MOZ_CO_PROJECT="xulrunner" |
| 15 | # if [ "$HOSTTYPE" == "powerpc64" ]; then |
| 16 | export CFLAGS="$CFLAGS -fno-optimize-sibling-calls -mminimal-toc" |
| 17 | # fi |
| 18 | export XCFLAGS="$CFLAGS" |
| 19 | |
| 20 | cd mozilla |
| 21 | |
| 22 | patch -Np1 -i $SRC/$name.diff |
| 23 | |
| 24 | # make configure accept our version of sqlite |
| 25 | sed -i -e 's/^SQLITE_VERSION=3.5.9$/SQLITE_VERSION=3.5/' configure |
| 26 | |
| 27 | sed -e "s/#CFLAGS#/$CFLAGS/g" \ |
| 28 | -e "s/#MAKEFLAGS#/$MAKEFLAGS/g" \ |
| 29 | $SRC/mozconfig > .mozconfig |
| 30 | |
| 31 | ./configure --host=$MACHTYPE |
| 32 | make |
| 33 | make DESTDIR=$PKG install |
| 34 | |
| 35 | install -d $PKG/etc/ld.so.conf.d |
| 36 | echo "/usr/lib/$name-$version" > $PKG/etc/ld.so.conf.d/$name.conf |
| 37 | } |