diff options
Diffstat (limited to 'extra/webkitgtk')
-rw-r--r-- | extra/webkitgtk/PKGBUILD | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/extra/webkitgtk/PKGBUILD b/extra/webkitgtk/PKGBUILD index 5aaac23d4..548aab32c 100644 --- a/extra/webkitgtk/PKGBUILD +++ b/extra/webkitgtk/PKGBUILD @@ -5,7 +5,7 @@ pkgbase=webkitgtk pkgname=('webkitgtk3') pkgver=2.0.1 pkgrel=1 -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://webkitgtk.org/" license=('custom') makedepends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gtk3' 'gst-plugins-base-libs' 'gperf' 'gobject-introspection' 'python' 'mesa' 'ruby' 'gtk-doc' 'libsecret' 'libwebp') @@ -21,11 +21,25 @@ prepare() { build() { cd $pkgbase-$pkgver/build-gtk3 + 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 + # Suppress a *lot* of gcc 4.8 warnings export CPPFLAGS="$CPPFLAGS -Wno-unused-local-typedefs" ../configure --prefix=/usr --libexecdir=/usr/lib/webkitgtk3 \ - --enable-introspection + --enable-introspection $extra make all stamp-po } |