summaryrefslogtreecommitdiff
path: root/extra/libwebkit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libwebkit/PKGBUILD')
-rw-r--r--extra/libwebkit/PKGBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/extra/libwebkit/PKGBUILD b/extra/libwebkit/PKGBUILD
index 789fe0440..aa7574bec 100644
--- a/extra/libwebkit/PKGBUILD
+++ b/extra/libwebkit/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=(libwebkit libwebkit3)
pkgver=1.8.1
pkgrel=1
pkgdesc="An opensource web content engine"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://webkitgtk.org/"
license=('custom')
depends=('libxt' 'libxslt' 'sqlite' 'icu' 'gstreamer0.10-base' 'libsoup' 'enchant' 'libgl'
@@ -20,6 +20,15 @@ build() {
cd "$srcdir/webkit-$pkgver"
mkdir build-gtk{2,3}
+ if [ "$CARCH" = "mips64el" ]; then
+ # Fix MIPS N32 support.
+ sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \
+ Source/JavaScriptCore/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/JavaScriptCore/wtf/Platform.h
+ fi
+
# clear makeflags: race during introspection.
# WebKit*.gir should be created before WebKit*.typelib, but isn't
MAKEFLAGS=