diff options
Diffstat (limited to 'extra/webkitgtk2/PKGBUILD')
-rw-r--r-- | extra/webkitgtk2/PKGBUILD | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/extra/webkitgtk2/PKGBUILD b/extra/webkitgtk2/PKGBUILD index 3b4810329..035ad7e92 100644 --- a/extra/webkitgtk2/PKGBUILD +++ b/extra/webkitgtk2/PKGBUILD @@ -4,7 +4,7 @@ pkgname=webkitgtk2 pkgver=1.10.2 pkgrel=5 -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://webkitgtk.org/" license=('custom') makedepends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gstreamer0.10-base' 'gperf' 'gobject-introspection' 'python2' 'mesa' 'ruby' 'gtk-doc') @@ -16,6 +16,20 @@ build() { cd "$srcdir/webkitgtk-$pkgver" mkdir build-gtk2 + if [ "$CARCH" = "mips64el" ]; then + # Fix MIPS N32 support. + sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \ + Source/WTF/wtf/Platform.h + # Don't enable JIT even if configure finds that it's not supported. + sed -i 's/#define ENABLE_JIT 1/#define ENABLE_JIT 0/' \ + Source/WTF/wtf/Platform.h + +# --disable-optimizations will add -O0 + export CFLAGS="${CFLAGS/-O[0-9]}" + + extra="--disable-fast-malloc --disable-optimizations" + fi + cd build-gtk2 PYTHON=/usr/bin/python2 ../configure --prefix=/usr \ --enable-introspection \ @@ -23,7 +37,7 @@ build() { --libexecdir=/usr/lib/webkitgtk2 \ --with-gstreamer=0.10 \ --with-gtk=2.0 \ - --disable-webkit2 + --disable-webkit2 $extra make all stamp-po } |